MDL-56095 output: Properly set prototype on custom event for IE

This commit is contained in:
Cameron Ball
2016-10-12 13:10:30 +08:00
parent bc8a896208
commit 00d3a8c5f4
+2 -1
View File
@@ -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);