J
jman
here's my function
MyApp.prototype.showAddress = function()
{
this.instance_var = 10;
this.somefunction( function()
{
alert(this.instance_var);
});
}
inside the function, i can't seem to access this.instance_var
- i.e. 'this' is undefined.
w/o passing it to the inline function - how can i access the this
object.
MyApp.prototype.showAddress = function()
{
this.instance_var = 10;
this.somefunction( function()
{
alert(this.instance_var);
});
}
inside the function, i can't seem to access this.instance_var
- i.e. 'this' is undefined.
w/o passing it to the inline function - how can i access the this
object.