Skip to content

Commit

Permalink
MDL-56095 output: Properly set prototype on custom event for IE
Browse files Browse the repository at this point in the history
  • Loading branch information
cameorn1730 authored and stronk7 committed Oct 13, 2016
1 parent 1686d93 commit 3aa8696
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/javascript-static.js
Original file line number Diff line number Diff line change
Expand Up @@ -1322,8 +1322,9 @@ function updateProgressBar(id, percent, msg, estimate) {
if (!(exception instanceof TypeError)) {
throw exception;
}
event = document.createEvent('Event');
event = document.createEvent('CustomEvent');
event.initCustomEvent('update', false, true, eventData);
event.prototype = window.Event.prototype;
}

el.dispatchEvent(event);
Expand Down

0 comments on commit 3aa8696

Please sign in to comment.