mozilla

Compare Revisions

Object.prototype.watch()

Change Revisions

Revision 49874:

Revision 49874 by Sheppy on

Revision 49875:

Revision 49875 by BlindWanderer on

Title:
watch
watch
Slug:
JavaScript/Reference/Global_Objects/Object/watch
JavaScript/Reference/Global_Objects/Object/watch
Tags:
JavaScript, NeedsTechnicalReview, "JavaScript Reference"
JavaScript, NeedsTechnicalReview, "JavaScript Reference"
Content:

Revision 49874
Revision 49875
t72      <strong>Warning:</strong> Generally you should avoid using t72      <strong>Warning:</strong> Generally you should avoid using 
><code>watch()</code> and <a href="/en/JavaScript/Reference/Global><code>watch()</code> and <a href="/en/JavaScript/Reference/Global
>_Objects/Object/unwatch" title="/en/JavaScript/Reference/Global_O>_Objects/Object/unwatch" title="/en/JavaScript/Reference/Global_O
>bjects/Object/unwatch"><code>unwatch()</code></a> when possible. >bjects/Object/unwatch"><code>unwatch()</code></a> when possible. 
>Neither of these methods are implemented implemented in any other>Neither of these methods are implemented in any other browser, an
> browser, and they're intended primarily for debugging use. In ad>d they're intended primarily for debugging use. In addition, usin
>dition, using watchpoints has a serious negative impact on perfor>g watchpoints has a serious negative impact on performance, which
>mance, which is especially true when used on global objects, such> is especially true when used on global objects, such as window. 
> as window. You can usually use setters and getters or proxies in>You can usually use setters and getters or proxies instead. See {
>stead. See {{ anch("Compatibility") }} for details.>{ anch("Compatibility") }} for details.

Back to History