Skip to content

Commit

Permalink
add module exports
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Grainger committed Jun 30, 2016
1 parent c784179 commit c606651
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions build/ng-infinite-scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,3 +183,7 @@ angular.module('infinite-scroll', []).value('THROTTLE_MILLISECONDS', null).direc
};
}
]);

if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports) {
module.exports = 'infinite-scroll';
}
2 changes: 1 addition & 1 deletion build/ng-infinite-scroll.min.js

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

2 changes: 2 additions & 0 deletions src/infinite-scroll.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -205,3 +205,5 @@ angular.module('infinite-scroll', [])
$interval.cancel checkInterval
)
]
if typeof module != "undefined" && typeof exports != "undefined" && module.exports == exports
module.exports = 'infinite-scroll'

0 comments on commit c606651

Please sign in to comment.