mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Minor improvement in Base.equals()
This commit is contained in:
parent
c5e43778bc
commit
94fac965ec
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue