From 94fac965ec76a9e562f3859bfeb831145ee8ea58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 10 Oct 2013 20:15:56 +0200 Subject: [PATCH] Minor improvement in Base.equals() --- src/core/Base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Base.js b/src/core/Base.js index 25f2338c..ec5be099 100644 --- a/src/core/Base.js +++ b/src/core/Base.js @@ -106,7 +106,7 @@ Base.inject(/** @lends Base# */{ equals: function(obj1, obj2) { function checkKeys(o1, o2) { for (var i in o1) - if (o1.hasOwnProperty(i) && typeof o2[i] === 'undefined') + if (o1.hasOwnProperty(i) && !o2.hasOwnProperty(i)) return false; return true; }