Skip to content

Commit

Permalink
Fixes #1509
Browse files Browse the repository at this point in the history
  • Loading branch information
petkaantonov committed May 29, 2019
1 parent 8f39dbc commit 8991667
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/debuggability.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,11 @@ var fireDomEvent = (function() {
detail: event,
cancelable: true
};
es5.defineProperty(
eventData, "promise", {value: event.promise});
es5.defineProperty(eventData, "reason", {value: event.reason});
var domEvent = new CustomEvent(name.toLowerCase(), eventData);
es5.defineProperty(
domEvent, "promise", {value: event.promise});
es5.defineProperty(
domEvent, "reason", {value: event.reason});
return !util.global.dispatchEvent(domEvent);
};
// In Firefox < 48 CustomEvent is not available in workers but
Expand Down

0 comments on commit 8991667

Please sign in to comment.