Closed yackermann closed 7 years ago
If there is situation where you tracking an item that has not been defined yet, a or b will be undefined, statements:
if (a.hasOwnProperty(i)) { ... if (b.hasOwnProperty(j)) {
will lead to trying to read a property of an undefined.
Lines: https://github.com/melanke/Watch.JS/blob/master/src/watch.js#L76 https://github.com/melanke/Watch.JS/blob/master/src/watch.js#L90
If there is situation where you tracking an item that has not been defined yet, a or b will be undefined, statements:
will lead to trying to read a property of an undefined.
Lines: https://github.com/melanke/Watch.JS/blob/master/src/watch.js#L76 https://github.com/melanke/Watch.JS/blob/master/src/watch.js#L90