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
I just have to add that because your gist I discovered the WTFPL. And according to wikipedia : "The WTFPL does not include a no-warranty disclaimer, unlike other permissive licenses, such as the MIT License." I don't know which countries should be worried about this as mine doesn't but it's still interesting to read.