diff --git a/dist/angular-localForage.js b/dist/angular-localForage.js index 2cccfbe..e53a2e4 100644 --- a/dist/angular-localForage.js +++ b/dist/angular-localForage.js @@ -7,16 +7,15 @@ */ (function(root, factory) { 'use strict'; - + var angular = root.angular || (window && window.angular); if(typeof define === 'function' && define.amd) { // AMD define(['localforage'], function(localforage) { - factory(root.angular, localforage); + factory(angular, localforage); }); } else if(typeof exports === 'object' || typeof global === 'object') { - var angular = root.angular || (window && window.angular); module.exports = factory(angular, require('localforage')); // Node/Browserify } else { - return factory(root.angular, root.localforage); // Browser + return factory(angular, root.localforage); // Browser } })(this, function(angular, localforage, undefined) { 'use strict'; @@ -485,4 +484,3 @@ return angularLocalForage.name; }); - diff --git a/src/angular-localForage.js b/src/angular-localForage.js index 75494ed..a02df94 100644 --- a/src/angular-localForage.js +++ b/src/angular-localForage.js @@ -1,15 +1,15 @@ (function(root, factory) { 'use strict'; + var angular = root.angular || (window && window.angular); if(typeof define === 'function' && define.amd) { // AMD define(['localforage'], function(localforage) { - factory(root.angular, localforage); + factory(angular, localforage); }); } else if(typeof exports === 'object' || typeof global === 'object') { - var angular = root.angular || (window && window.angular); module.exports = factory(angular, require('localforage')); // Node/Browserify } else { - return factory(root.angular, root.localforage); // Browser + return factory(angular, root.localforage); // Browser } })(this, function(angular, localforage, undefined) { 'use strict';