Listen for change to Javascript object value
<p>Is it possible (using jQuery or otherwise) to listen for a change in the value of a non-DOM Javascript object (or variable)?  So, for instance, I have:</p>

<pre><code>function MyObject()
{
    this.myVar = 0;
}

var myObject = new MyObject();
myObject.myVar = 100;
</code></pre>

<p>Is there a way to listen for when the value of <code>myVar</code> changes and call a function?  I know that I could use getter/setters, but they aren't supported in previous versions of IE.</p>
