News for hackers. Stuff that matters.
Re:‘This’ in JavaScript by kitd on Thursday August 03, 2017 @06:23AM (#14918352)
Agreed. Much prefer 'var self = this' style. Keep the model transparent for future maintenance.

One time I don't is in Jasmine, where they explicitly state that 'this' is shared across all 'beforeEach', 'it' and 'afterEach' calls. Which backs up your first point.

Re:‘This’ in JavaScript by scruple on Thursday August 03, 2017 @12:39PM (#14921112)
This is where I've landed with the JavaScript that I write. It keeps things relatively sane, at least better than the other approaches I've tried.
Re:‘This’ in JavaScript by nkozyra on Thursday August 03, 2017 @07:51AM (#14918724)
I thought self had gone out of favor due to its relatively new global purpose.
Re:‘This’ in JavaScript by kitd on Thursday August 03, 2017 @08:40AM (#14918994)
ok, call it something else. I meant to say, save away the current ref to 'this'.