From 29c1a0b0be0f67169958d1ae0917174d4a56f6d6 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Fri, 4 Apr 2008 14:35:19 +0000 Subject: Fix javascript strict warning --- itjs/it.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'itjs') 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]; } -- cgit v1.2.3