Skip to content

Commit

Permalink
support commonjs
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim authored and gnarf committed Jan 14, 2016
1 parent bc15d71 commit 1046b6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jquery.color.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
module.exports = factory(require('jquery'));
} else {
factory(root.jQuery);
}
Expand Down

0 comments on commit 1046b6d

Please sign in to comment.