Skip to content

Commit

Permalink
Fix module definitions for Angular 1.3 and browserify
Browse files Browse the repository at this point in the history
  • Loading branch information
jukkasi committed Nov 3, 2015
1 parent 852ae48 commit eb1b273
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dist/angular-cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("angular"));
if (typeof angular === 'undefined') {
module.exports = factory(require("angular"));
} else {
module.exports = factory(angular);
}
else if(typeof define === 'function' && define.amd)
define("angular-cache", ["angular"], factory);
else if(typeof exports === 'object')
Expand Down

0 comments on commit eb1b273

Please sign in to comment.