- From: Ms2ger <notifications@github.com>
- Date: Sun, 27 Sep 2015 07:25:44 -0700
- To: whatwg/dom <dom@noreply.github.com>
Received on Sunday, 27 September 2015 14:26:14 UTC
Somewhat more readable: ```html <!DOCTYPE html> <script> var es = []; var ls = [ function(event) { _handleEvent(event); }, function(event) { _handleEvent(event); }, ]; var _handleEvent = function(event) { es.push(event); ls.forEach(function(l) { document.removeEventListener("foo", l); }) }; ls.forEach(function(l) { document.addEventListener("foo", l); }); var event = new Event("foo"); document.dispatchEvent(event); w(es.length); // returns 1 in Chrome + FF </script> ``` --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/84#issuecomment-143562241
Received on Sunday, 27 September 2015 14:26:14 UTC