Re: [dom] removeEventListener doesn't handle currently dispatching events (#84)

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