Merge pull request #63 from julien/master

Make it AMD compatible.
This commit is contained in:
Hyunje Alex Jun 2013-09-23 19:54:27 -07:00
commit 7a65e01ab5

View File

@ -2,7 +2,15 @@
* Licensed under the MIT License
*/
'use strict';
((function ($) {
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else {
// Browser globals
factory(jQuery);
}
}(function ($) {
// The default settings for the plugin
var defaultSettings = {
@ -432,4 +440,4 @@
return $this;
});
};
})(jQuery));
}));