JavaScript

Javascript – Object watch (on all browsers)

Javascript’s object.watch is a function which tends to work only on Firefox.. How do we make it work on other browsers? Below is the code snippet to achieve this:-   Common JS Snippet for making object.watch to work on all browsers if (!Object.prototype.watch) { Object.defineProperty(Object.prototype, “watch”, { enumerable: false , configurable: true , writable: false… Continue reading Javascript – Object watch (on all browsers)