melanke / Watch.JS

watch the changes of any object or attribute
Other
2.14k stars 219 forks source link

Fix comparing objects with undefined properties #110

Closed blikblum closed 6 years ago

blikblum commented 7 years ago

When an object has an undefined property, the difference will always include this property in the added and removed property even if did not changed at all. this cause an endless loop

Adapted test to show the behavior