From 56768a4c9d26edd53d1ce8b04b1a4d26ad14eb57 Mon Sep 17 00:00:00 2001 From: liabru Date: Wed, 19 Mar 2014 12:49:48 +0000 Subject: [PATCH] fixed issue with extending null properties --- src/core/Common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Common.js b/src/core/Common.js index 03575f5..08f2ecf 100644 --- a/src/core/Common.js +++ b/src/core/Common.js @@ -35,7 +35,7 @@ var Common = {}; if (source) { for (var prop in source) { - if (deepClone && source[prop].constructor === Object) { + if (deepClone && source[prop] && source[prop].constructor === Object) { if (!obj[prop] || obj[prop].constructor === Object) { obj[prop] = obj[prop] || {}; Common.extend(obj[prop], deepClone, source[prop]);