Update VideoOverlay.js (#5731)

* Update VideoOverlay.js

wrong keyword uses - className should be used instead
found this when testing new leaflet on ie8 - map doesn't load because of this

* Use DomUtil.addClass instead of modifying el.className
This commit is contained in:
Dzwiedzminator 2017-08-28 10:38:56 +02:00 committed by Vladimir Agafonkin
parent 819f1722af
commit 9b73d0da76

View File

@ -39,8 +39,8 @@ export var VideoOverlay = ImageOverlay.extend({
var wasElementSupplied = this._url.tagName === 'VIDEO';
var vid = this._image = wasElementSupplied ? this._url : DomUtil.create('video');
vid.class = vid.class || '';
vid.class += 'leaflet-image-layer ' + (this._zoomAnimated ? 'leaflet-zoom-animated' : '');
DomUtil.addClass('leaflet-image-layer');
if (this._zoomAnimated) { DomUtil.addClass('leaflet-zoom-animated'); }
vid.onselectstart = Util.falseFn;
vid.onmousemove = Util.falseFn;