Permalink
Browse files

Register as anonymous AMD module.

  • Loading branch information...
1 parent f1cb0e2 commit 58987fb5ba008acc4425b250218ab9ebecddbb4d @blueimp committed Feb 8, 2012
Showing with 2 additions and 4 deletions.
  1. +1 −3 load-image.js
  2. +1 −1 load-image.min.js
View
@@ -105,12 +105,10 @@
};
if (typeof define !== 'undefined' && define.amd) {
- // Register as an AMD module:
- define('loadImage', function () {
+ define(function () {
return loadImage;
});
} else {
- // Bind to the global (window) object:
$.loadImage = loadImage;
}
}(this));
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 58987fb

Please sign in to comment.