Skip to content

Commit 467b988

Browse files
committed
added return statement to AMD loading
1 parent 99f2298 commit 467b988

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

dist/angular-localForage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* angular-localforage - Angular service & directive for https://github.com/mozilla/localForage (Offline storage, improved.)
3-
* @version v1.3.1
3+
* @version v1.3.2
44
* @link https://github.com/ocombe/angular-localForage
55
* @license MIT
66
* @author Olivier Combe <olivier.combe@gmail.com>
@@ -11,7 +11,7 @@
1111
var angular = (root && root.angular) || (window && window.angular);
1212
if(typeof define === 'function' && define.amd) { // AMD
1313
define(['localforage'], function(localforage) {
14-
factory(angular, localforage);
14+
return factory(angular, localforage);
1515
});
1616
} else if(typeof exports === 'object' || typeof global === 'object') {
1717
module.exports = factory(angular, require('localforage')); // Node/Browserify

dist/angular-localForage.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-localforage",
3-
"version": "1.3.1",
3+
"version": "1.3.2",
44
"description": "Angular service & directive for https://github.com/mozilla/localForage (Offline storage, improved.)",
55
"license": "MIT",
66
"main": "dist/angular-localForage.js",

src/angular-localForage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
var angular = (root && root.angular) || (window && window.angular);
55
if(typeof define === 'function' && define.amd) { // AMD
66
define(['localforage'], function(localforage) {
7-
factory(angular, localforage);
7+
return factory(angular, localforage);
88
});
99
} else if(typeof exports === 'object' || typeof global === 'object') {
1010
module.exports = factory(angular, require('localforage')); // Node/Browserify

0 commit comments

Comments
 (0)