Closed
Description
Expand to expain call
and apply
, and explain them in the context that beginners are familiar with - the notion of this
"changing" as you go from one section of code into an event handler . We should link to, if not borrow from, @wycats's Understanding JavaScript Function Invocation and “this”.
We should also explain how to use $.proxy
and/or Function.prototype.bind
to control the scope of a function later on, as well as the good old var that = this
pattern.