Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Adds AMD support. #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions jquery.simplecolorpicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,16 @@
* Licensed under the MIT license
*/

(function($) {
(function(factory) {

if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
}else {
factory(jQuery);
}

})(function($) {

'use strict';

/**
Expand Down Expand Up @@ -232,4 +241,4 @@
pickerDelay: 0
};

})(jQuery);
});