Re:Finally someone makes sense of JavaScript's this keyword
by jt2190 on Monday April 25, 2011 @12:09PM
(#2481723)
The article is about 'this', not about creating closures.
I agree that in the case where you're creating a closure, you need to create a reference to the scope referenced by 'this' in order to 'enclose' it, however, that doesn't make it a best practice, all the time, as many responses are suggesting.
I agree that in the case where you're creating a closure, you need to create a reference to the scope referenced by 'this' in order to 'enclose' it, however, that doesn't make it a best practice, all the time, as many responses are suggesting.