Skip to content

Commit bc15d71

Browse files
luhngnarf
authored andcommitted
Define AMD module.
1 parent d72fdfe commit bc15d71

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

bower.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
],
77
"moduleType": [
88
"amd",
9-
"node",
109
"globals"
1110
],
1211
"ignore": [

jquery.color.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,15 @@
88
*
99
* Date: @DATE
1010
*/
11-
(function( jQuery, undefined ) {
11+
12+
(function(root, factory) {
13+
if (typeof define === 'function' && define.amd) {
14+
// AMD. Register as an anonymous module.
15+
define(['jquery'], factory);
16+
} else {
17+
factory(root.jQuery);
18+
}
19+
})(this, function( jQuery, undefined ) {
1220

1321
var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",
1422

@@ -660,4 +668,4 @@ colors = jQuery.Color.names = {
660668
_default: "#ffffff"
661669
};
662670

663-
}( jQuery ));
671+
});

0 commit comments

Comments
 (0)