From 25a926abd5d168b69c51c49c59d8b2213614e774 Mon Sep 17 00:00:00 2001 From: Veno Server Date: Tue, 11 Aug 2009 19:35:59 -0500 Subject: [PATCH] Recursion on objects inside arrays was broken because of how I was referencing the clone method. Fixed... --- js/franz.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/franz.js b/js/franz.js index 1a6c635..091cdb3 100644 --- a/js/franz.js +++ b/js/franz.js @@ -40,8 +40,8 @@ var franz = { for(i in obj) { if(i == 'clone') continue; - if(obj[i] && typeof obj[i] == "object") { - returnObj[i] = obj[i].clone(); + if(obj[i] != null && typeof obj[i] == "object") { + returnObj[i] = franz.clone(obj[i]); } else { returnObj[i] = obj[i]; }