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:
Austin Matzko 2014-01-02 11:54:14 -05:00
Родитель 10ac08e23e
Коммит 7753b01c7d
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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,