- From: Anne van Kesteren <notifications@github.com>
- Date: Mon, 17 Oct 2016 01:49:37 -0700
- To: whatwg/dom <dom@noreply.github.com>
Received on Monday, 17 October 2016 08:50:12 UTC
@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