Make it AMD compatible
This commit is contained in:
parent
58261f2ace
commit
067b10d83d
@ -2,7 +2,15 @@
|
|||||||
* Licensed under the MIT License
|
* Licensed under the MIT License
|
||||||
*/
|
*/
|
||||||
'use strict';
|
'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
|
// The default settings for the plugin
|
||||||
var defaultSettings = {
|
var defaultSettings = {
|
||||||
@ -432,4 +440,4 @@
|
|||||||
return $this;
|
return $this;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
})(jQuery));
|
}));
|
||||||
|
Loading…
Reference in New Issue
Block a user