2 ms·
> 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 2
by carussell 9y ago
> 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-EventListener https://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-...
- amelius 9y agoWell 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.
- carussell 9y ago> 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.