inner function in javascript
satya - Sun Oct 07 2012 21:35:14 GMT-0400 (Eastern Daylight Time)
inner functions in javascript
inner functions in javascript
satya - Sun Oct 07 2012 21:35:26 GMT-0400 (Eastern Daylight Time)
here is a reasonable article
satya - Sun Oct 07 2012 21:44:46 GMT-0400 (Eastern Daylight Time)
I dont know how true but...
an inner function inherits the arguments and variables of the outer function!! what about the "this.var1"?
satya - Sun Oct 07 2012 21:49:45 GMT-0400 (Eastern Daylight Time)
How can I refer to the outer function's this variable from an inner function in javascript?
How can I refer to the outer function's this variable from an inner function in javascript?
satya - Sun Oct 07 2012 21:53:35 GMT-0400 (Eastern Daylight Time)
Some stuff from stackoverflow
The this keyword in javascript refers to the object which invoked the function. If it is a function in the global object this will refer to window. If it is a constructor function and you invoke it with the new keyword, this will refer to the current instance.
satya - Sun Oct 07 2012 22:05:49 GMT-0400 (Eastern Daylight Time)
This is a pretty good article on this subject
satya - Sun Oct 07 2012 22:19:47 GMT-0400 (Eastern Daylight Time)
It appears that an inner function does not have access to the public variables of an outer function!!
It appears that an inner function does not have access to the public variables of an outer function!!
satya - Sun Oct 07 2012 22:25:22 GMT-0400 (Eastern Daylight Time)
'that' in javascript
'that' in javascript
satya - Sun Oct 07 2012 22:29:08 GMT-0400 (Eastern Daylight Time)
A good description of this issue/solution at sof
satya - Sun Oct 07 2012 22:36:24 GMT-0400 (Eastern Daylight Time)
this and that in javascript: Hard to resist to ask
this and that in javascript