- From: François REMY <notifications@github.com>
- Date: Fri, 17 Feb 2017 15:32:28 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 17 February 2017 23:33:02 UTC
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