Re: [whatwg/dom] [Proposal] Add EventTarget.getEventListeners() (#412)

If you want to copy your event listeners, you can redispatch your events on the old node. That doesn't require destroying the currently existing abstraction.
```
function redirect(event) {
  var ne = event.constructor(event.type, event);
  document.querySelector('input').dispatchEvent(ne);
}
```
https://jsfiddle.net/yrewbnes/


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/412#issuecomment-280795443

Received on Friday, 17 February 2017 23:33:02 UTC