mirror of
https://github.com/PitPik/tinyColorPicker
synced 2025-06-27 21:21:02 -06:00
Added 2 AMD wrapper; modified clors.js and jqColorPicker.js for easy usage in AMD wrapper. Colors con now also be exported more flexible.
13 lines
302 B
JavaScript
13 lines
302 B
JavaScript
(function (factory) {
|
|
if (typeof define === 'function' && define.amd) {
|
|
define([], function () {
|
|
return factory(window);
|
|
});
|
|
} else {
|
|
window.Colors = factory(window);
|
|
}
|
|
}(
|
|
// paste colors.js without self invoking part:
|
|
// beginning: drop 'window.Colors = ('
|
|
// end: drop ')(window);'
|
|
)); |