diff --git a/js/franz.js b/js/franz.js index 091cdb3..53c0f06 100644 --- a/js/franz.js +++ b/js/franz.js @@ -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) ? [] : {};