Minor improvement in Base.equals()

This commit is contained in:
Jürg Lehni 2013-10-10 20:15:56 +02:00
parent c5e43778bc
commit 94fac965ec

View file

@ -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;
}