Skip to content

Commit

Permalink
Update VideoOverlay.js (#5731)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Dzwiedzminator authored and mourner committed Aug 28, 2017
1 parent 819f172 commit 9b73d0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layer/VideoOverlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9b73d0d

Please sign in to comment.