diff --git a/bower.json b/bower.json index 5e6cefd..8da444d 100644 --- a/bower.json +++ b/bower.json @@ -6,7 +6,6 @@ ], "moduleType": [ "amd", - "node", "globals" ], "ignore": [ diff --git a/jquery.color.js b/jquery.color.js index 99b699a..98c6dd1 100644 --- a/jquery.color.js +++ b/jquery.color.js @@ -8,7 +8,15 @@ * * Date: @DATE */ -(function( jQuery, undefined ) { + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define(['jquery'], factory); + } else { + factory(root.jQuery); + } +})(this, function( jQuery, undefined ) { var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor", @@ -660,4 +668,4 @@ colors = jQuery.Color.names = { _default: "#ffffff" }; -}( jQuery )); +});