franz.rbg_obj returns an obj representing the rbga format... perhaps this would make arrays more sensible?

This commit is contained in:
Veno Server 2009-08-11 19:39:11 -05:00
parent 25a926abd5
commit a602d7d657

View file

@ -34,6 +34,8 @@ var franz = {
return false;
},
rgb_obj: function(r, g, b, a) { return {r: r, b: b, g: g, a: a}; },
clone: function(obj) {
/* Recursively iterate through objects and clone them (Don't even try to put this on the Object prototype (recursion fail)) */
var returnObj = (obj instanceof Array) ? [] : {};