Skip to content

Commit

Permalink
Set cancelable property on CustomEvent.
Browse files Browse the repository at this point in the history
Commit e820d8a introduced a couple of
regressions:

1. Details not set properly. This was fixed by commit
288aa28.

2. It also failed to properly initialize the cancelable property. This
commit fixes it.
  • Loading branch information
lddubeau committed Aug 27, 2016
1 parent 4b3b080 commit dd2f3dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/debuggability.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ var fireDomEvent = (function() {
util.global.dispatchEvent(event);
return function(name, event) {
var domEvent = new CustomEvent(name.toLowerCase(), {
detail: event
detail: event,
cancelable: true
});
return !util.global.dispatchEvent(domEvent);
};
Expand Down

0 comments on commit dd2f3dd

Please sign in to comment.