update Color.Space to be able to be included in Chrome Extension (no evals)

This commit is contained in:
Michael Deal 2012-11-06 11:59:07 -08:00
parent 44d5681a25
commit 5f6984123f

View file

@ -65,10 +65,9 @@ var root = Color.Space = function(color, route) {
}
key += (pos === 0 ? "" : "_") + r[pos];
color = root[key](color);
f = "Color.Space."+key+"("+f+")";
}
functions[route] = eval("(function(color) { return "+f+" })");
// f = "Color.Space."+key+"("+f+")";
}
// functions[route] = eval("(function(color) { return "+f+" })");
return color;
};