Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add utils to Colorjoe deps

  • Loading branch information...
commit 596e5db86e9056bae9d7651256f447902b6aa920 1 parent d7eadbb
@bebraw authored
Showing with 6 additions and 6 deletions.
  1. +3 −3 src/colorjoe.js
  2. +3 −3 src/rgbjoe.js
View
6 src/colorjoe.js
@@ -1,7 +1,7 @@
(function(root, factory) {
- if(typeof define === 'function' && define.amd) define([], factory);
- else root.colorjoe = factory();
-}(this, function() {
+ if(typeof define === 'function' && define.amd) define(['utils'], factory);
+ else root.colorjoe = factory(root.utils);
+}(this, function(utils) {
return function(o) {
o.cbs = o.cbs || {};
View
6 src/rgbjoe.js
@@ -1,7 +1,7 @@
(function(root, factory) {
- if(typeof define === 'function' && define.amd) define([], factory);
- else root.rgbjoe = factory();
-}(this, function() {
+ if(typeof define === 'function' && define.amd) define(['utils'], factory);
+ else root.rgbjoe = factory(root.utils);
+}(this, function(utils) {
return function(e, initialColor) {
var joe = colorjoe({element: e, initialColor: initialColor, cbs: {
change: function(c) {
Please sign in to comment.
Something went wrong with that request. Please try again.