[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

@ -58,7 +58,7 @@ export function stamp(obj) {
/*eslint-disable */
obj._leaflet_id = obj._leaflet_id || ++lastId;
return obj._leaflet_id;
/*eslint-enable */
/* eslint-enable */
}
// @function throttle(fn: Function, time: Number, context: Object): Function

View File

@ -223,7 +223,7 @@ export function setPosition(el, point) {
/*eslint-disable */
el._leaflet_pos = point;
/*eslint-enable */
/* eslint-enable */
if (Browser.any3d) {
setTransform(el, point);

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;

View File

@ -708,7 +708,7 @@ export var Map = Evented.extend({
} catch (e) {
/*eslint-disable */
this._container._leaflet_id = undefined;
/*eslint-enable */
/* eslint-enable */
this._containerId = undefined;
}