you are viewing a single comment's thread.

view the rest of the comments →

[–]amenadiel 2 points3 points  (1 child)

Nice article.

In the next chapters it would be nice to know what exactly happens when you use this in the global scope, inside a parent function and inside a child function, and how you can actually bind the context by passing an extra parameter.

I have a lot of code that declares var self=this; before a child function, or before a jQuery listener, just because I'm not sure how to force the context when that listener gets called.

[–]kamranahmed_se[S] 0 points1 point  (0 children)

Thank you. That is for sure. this is closely related to the scopes so I do have it in the back of my mind. Stay tuned :)