melanke / Watch.JS

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

Use Object.prototype.watch if possible #114

Closed frankred closed 6 years ago

frankred commented 7 years ago

Dear maintainer,

I just looked at the code of WATCH.JS and did not find the use of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/watch . Is there a reason why this has not beeing used? Maybe if browser supports it, it should be used instead of polling.

Edit:

Or maybe overwrite all the setter of the objects: https://gist.github.com/eligrey/384583

What do you think?

melanke commented 6 years ago

This method is deprecated and should not be used