Skip to content

Commit

Permalink
Merge pull request #225 from sbedulin/Removed-mod-global-variable
Browse files Browse the repository at this point in the history
Removed "mod" global variable
  • Loading branch information
graingert committed Jun 30, 2016
2 parents 1b41c95 + e0c2b13 commit 1357270
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
8 changes: 2 additions & 6 deletions build/ng-infinite-scroll.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
/* ng-infinite-scroll - v1.2.1 - 2016-05-20 */
/* ng-infinite-scroll - v1.2.1 - 2016-06-30 */
var mod;

mod = angular.module('infinite-scroll', []);

mod.value('THROTTLE_MILLISECONDS', null);

mod.directive('infiniteScroll', [
mod = angular.module('infinite-scroll', []).value('THROTTLE_MILLISECONDS', null).directive('infiniteScroll', [
'$rootScope', '$window', '$interval', 'THROTTLE_MILLISECONDS', function($rootScope, $window, $interval, THROTTLE_MILLISECONDS) {
return {
scope: {
Expand Down
4 changes: 2 additions & 2 deletions build/ng-infinite-scroll.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions src/infinite-scroll.coffee
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
mod = angular.module('infinite-scroll', [])

mod.value('THROTTLE_MILLISECONDS', null)

mod.directive 'infiniteScroll', ['$rootScope', '$window', '$interval', 'THROTTLE_MILLISECONDS', \
($rootScope, $window, $interval, THROTTLE_MILLISECONDS) ->
.value('THROTTLE_MILLISECONDS', null)
.directive 'infiniteScroll', [
'$rootScope', '$window', '$interval', 'THROTTLE_MILLISECONDS',
($rootScope, $window, $interval, THROTTLE_MILLISECONDS) ->
scope:
infiniteScroll: '&'
infiniteScrollContainer: '='
Expand Down

0 comments on commit 1357270

Please sign in to comment.