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.
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-...