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

c# - Move local mssql database to webhosted MYSQL -

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -