Permalink
Browse files

Tidy up

  • Loading branch information...
1 parent ccde181 commit 59e9b5e98d56e20d255691ee77aee7aa555148b9 @bebraw committed Jul 11, 2012
Showing with 7 additions and 7 deletions.
  1. +3 −3 dist/colorjoe.js
  2. +1 −1 dist/colorjoe.min.js
  3. +3 −3 src/colorjoe.js
View
@@ -1332,13 +1332,13 @@ function setupExtras(p, joe, extras) {
extras.forEach(function(e) {
if(isArray(e)) {
name = e[0];
- extra = name in picker._extras? picker._extras[name]: null;
params = e.length > 1? e[1]: {};
}
else {
- extra = e in picker._extras? picker._extras[e]: null;
+ name = e;
params = {};
}
+ extra = name in picker._extras? picker._extras[name]: null;
if(extra) {
cbs = extra(c, joe, params);
@@ -1350,7 +1350,7 @@ function setupExtras(p, joe, extras) {
function all(cb, a) {return a.map(cb).filter(id).length == a.length;}
function isArray(o) {
- return Object.prototype.toString.call(o) === "[object Array]";
+ return Object.prototype.toString.call(o) === "[object Array]";
}
function isString(o) {return typeof(o) === 'string';}
function isDefined(input) {return typeof input !== "undefined";}
Oops, something went wrong.

0 comments on commit 59e9b5e

Please sign in to comment.