Object.unwatch() (Method)

A method to disable a watch that was set up on a property change.

Availability:

JavaScript - 1.2
Netscape - 4.0
Netscape Enterprise Server - 3.0
JavaScript syntax:NmyObject.unwatch()

This is inherited by most object classes in Netscape.

Warnings:

Example code:

   <HTML>

   <HEAD></HEAD>

   <BODY>

   <SCRIPT>

   function watchFunct()

   {

     alert("Variable changed");

   }

   watch("myVariable", watchFunct)

   myVariable = 100;

   myVariable = 200;

   unwatch("myVariable")

   myVariable = 300;

   </SCRIPT>

   </BODY>

   </HTML>

See also:Object.assign(), Object.watch()