summaryrefslogtreecommitdiff
path: root/itjs
diff options
context:
space:
mode:
authorChristian Schneider2008-04-04 14:35:19 +0000
committerChristian Schneider2008-04-04 14:35:19 +0000
commit29c1a0b0be0f67169958d1ae0917174d4a56f6d6 (patch)
tree196343775563a172ba5e63e3cb01dcd3fc2b84c5 /itjs
parent4a448100a65bac8d8fd4b1816227e5de5290f50d (diff)
downloaditools-29c1a0b0be0f67169958d1ae0917174d4a56f6d6.tar.gz
itools-29c1a0b0be0f67169958d1ae0917174d4a56f6d6.tar.bz2
itools-29c1a0b0be0f67169958d1ae0917174d4a56f6d6.zip
Fix javascript strict warning
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];
}