melanke / Watch.JS

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

Implement object-based unwatch #98

Closed martin31821 closed 8 years ago

martin31821 commented 8 years ago

With this commit, it's possible to unwatch a whole object. Previously you had to save the used watcher function. Useful if you want to unregister all watchers from a given object, but you have no access to all of them.

This fixes #38