Closed fregante closed 7 years ago
/cc @NekR who made me remove this feature :rofl:
I'm fine adding it FWIW.
I don't know, I have never seen an event handler called without any reference to the element. Even node-land EventEmitter has a reference to the emitter in this
I had originally invoked the handler with this
as the element, but I believe this breaks for arrow functions.
Correct. Passing it as argument is more flexible anyway
@developit okay-okay, pass it if people want it (although node.js argument doesn't really work for me :-)). LGTM 👍
It's useful when the handler is defined elsewhere: