Better way to maintain this reference on event listener functions
mkay581 at gmail.com
Mon May 9 13:38:14 UTC 2016
Wow that's so ironic because [I posted this same idea](
copied and pasted) in WHATWG's "DOM land" and they told me this was an
es-discuss issue. So which is it?
Oh and thanks for the code sample but it uses the old prototypical method
of replicating a class by creating a function which is now not the most
efficient way (there's the `class` keyword). And I don't see how what
you're doing isn't any different from a roundabout way of what I did. I
already know about the `handleEvent()` stuff, I like that it's available
and its polyfills. They are great, but my original question is to implement
sugar so that you don't have to use polyfills or the `handleEvent()`.
Sent while riding a hoverboard...
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss