[VideoOverlay] Fix adding css classes (#5785)

* fix VideoOverlay css classes

* fix eslint errors
This commit is contained in:
Andrew 2017-09-19 09:01:22 +02:00 committed by Vladimir Agafonkin
parent 811cc7cf9c
commit ca6025c8bd
4 changed files with 5 additions and 5 deletions

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');
DomUtil.addClass('leaflet-image-layer');
if (this._zoomAnimated) { DomUtil.addClass('leaflet-zoom-animated'); }
DomUtil.addClass(vid, 'leaflet-image-layer');
if (this._zoomAnimated) { DomUtil.addClass(vid, 'leaflet-zoom-animated'); }
vid.onselectstart = Util.falseFn;
vid.onmousemove = Util.falseFn;