update Color.Space to be able to be included in Chrome Extension (no evals)
This commit is contained in:
parent
44d5681a25
commit
5f6984123f
1 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue