News for hackers. Stuff that matters.
Re:‘This’ in JavaScript by carussell on Thursday August 03, 2017 @09:21AM (#14919269)
> That's a big assumption

No, it's not. At all. It's part of the DOM Level 2 standard that specifies what `addEventListener` does and has been for going on 20 years.

https://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-...

Re:‘This’ in JavaScript by amelius on Thursday August 03, 2017 @02:36PM (#14922392)
Well I don't see it used in a lot of code, so in that respect I think it is obscure. Also, using the "self" approach allows one to lexically bind to the enclosing scope, which aligns nicely with how most functional programmers think.
Re:‘This’ in JavaScript by carussell on Saturday August 05, 2017 @01:01PM (#14936631)
> Well I don't see it used in a lot of code, so in that respect I think it is obscure.

You just moved the goalposts.