xclone : function(o)
{
var cp = function(e) {
- print(typeof(e));
- print(typeof(e.toString()));
+
if (typeof(e) != 'object') {
return e;
}
if (typeof(e) == 'object' && Array.isArray(e)) {
var ar = [];
- for (var i =0; i < e.length;e++) {
+ for (var i =0; i < e.length;i++) {
ar.push(cp(e[i]));
}
return ar;