Older browsers do not have "classList," but there is no reason to use it on a newly-created element anyways.
This commit is contained in:
Родитель
10ac08e23e
Коммит
7753b01c7d
|
@ -283,7 +283,7 @@ var dialogPolyfill = (function() {
|
|||
}
|
||||
|
||||
var backdrop = document.createElement('div');
|
||||
backdrop.classList.add('backdrop');
|
||||
backdrop.className = 'backdrop';
|
||||
addEventListenerFn(backdrop, 'click', function(e) {
|
||||
var redirectedEvent = document.createEvent('MouseEvents');
|
||||
redirectedEvent.initMouseEvent(e.type, e.bubbles, e.cancelable, window,
|
||||
|
|
Загрузка…
Ссылка в новой задаче