Object.prototype.watch "polyfill"
This implementation behave the closest way possible to Mozilla's one.
There is only one known limitation: delete object[property]
will remove the watchpoint.
It is optimized for minification, only 660 bytes using uglify2.
This is only compilation work, so big thanks to them :
- Based on Eli Grey gist
- Impovements based on Xose Lluis gist
Awesome. Does it work in IE8 as well? 😄