Deprecation warning: Do not use
watch()! These two methods were implemented only in Firefox prior to version 58, they're deprecated and removed in Firefox 58+. In addition, using watchpoints has a serious negative impact on performance, which is especially true when used on global objects, such as
window. You can usually use setters and getters or proxies instead.
unwatch() method removes a watchpoint set with the
- The name of a property of the object to stop watching.
By default, this method is inherited by every object descended from
Note: The reason for
unwatch() to take the property name prop as its only parameter is due to the "single handler allowing" behavior of the
Not part of any standard.
Documentobject throws a
TypeErrorsince Firefox 23 (bug 903332). This regression has been fixed with Firefox 27.