by jt2190 · 15y ago · 0 comments
Something I also find helpful is reminding myself that I'm not just writing a function, but a method for the current object (referenced by 'this').
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.