Re: [whatwg/dom] Consider adding Promise-based API for listerning event (#333)

@benjamingr because the code looks like:
```js
var doSomething = obj.dispatchEvent(new Event("test", {cancelable:true})
if(doSomething)
  // ...
```
So if the `preventDefault()` is not invoked during dispatch, `if(doSomething)` will go down the wrong branch.

-- 
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/333#issuecomment-254149152

Received on Monday, 17 October 2016 08:50:12 UTC