2
0
mirror of https://github.com/PitPik/tinyColorPicker synced 2025-06-27 21:21:02 -06:00
tinyColorPicker/jqColorPicker-amd-wrapper.js
peterd 3bbd372a7b AMD support
Added 2 AMD wrapper; modified clors.js and jqColorPicker.js for easy
usage in AMD wrapper. Colors con now also be exported more flexible.
2015-11-21 11:04:28 +01:00

13 lines
356 B
JavaScript

(function (factory) {
if (typeof define === 'function' && define.amd) {
define(['jquery', './colors'], function (jQuery, Colors) {
return factory(window, jQuery, Colors);
});
} else {
factory(window, jQuery, Colors);
}
}(
// jqColorPicker without self invoking part:
// beginning: drop first '('
// end: drop ')(window, jQuery, Colors);'
));