jquery - Listen for change to Javascript object value -



jquery - Listen for change to Javascript object value -

is possible (using jquery or otherwise) hear alter in value of non-dom javascript object (or variable)? so, instance, have:

function myobject() { this.myvar = 0; } var myobject = new myobject(); myobject.myvar = 100;

is there way hear when value of myvar changes , phone call function? know utilize getter/setters, aren't supported in previous versions of ie.

if ie important, guess not interested in watch

but seems have written shim makes question duplicate

javascript - watch object properties changes

javascript jquery

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -