Recursion on objects inside arrays was broken because of how I was referencing the clone method. Fixed...
This commit is contained in:
parent
5b5e236b38
commit
25a926abd5
1 changed files with 2 additions and 2 deletions
|
|
@ -40,8 +40,8 @@ var franz = {
|
||||||
|
|
||||||
for(i in obj) {
|
for(i in obj) {
|
||||||
if(i == 'clone') continue;
|
if(i == 'clone') continue;
|
||||||
if(obj[i] && typeof obj[i] == "object") {
|
if(obj[i] != null && typeof obj[i] == "object") {
|
||||||
returnObj[i] = obj[i].clone();
|
returnObj[i] = franz.clone(obj[i]);
|
||||||
} else {
|
} else {
|
||||||
returnObj[i] = obj[i];
|
returnObj[i] = obj[i];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Reference in a new issue