mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-56095 output: Properly set prototype on custom event for IE
This commit is contained in:
parent
1686d93a1c
commit
3aa8696ce6
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user