summaryrefslogtreecommitdiff
path: root/itjs
diff options
context:
space:
mode:
Diffstat (limited to 'itjs')
-rw-r--r--itjs/it.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/itjs/it.js b/itjs/it.js
index 5b914be..aa8072f 100644
--- a/itjs/it.js
+++ b/itjs/it.js
@@ -150,7 +150,10 @@ function it_set(dst, src)
for (var i in src)
{
if (typeof src[i] == 'object')
- it_set(dst[i], src[i]);
+ {
+ if (dst[i])
+ it_set(dst[i], src[i]);
+ }
else
dst[i] = src[i];
}