Fix unknown var since 887a9fc7

This commit is contained in:
Yohan Boniface 2019-02-22 21:46:25 +01:00
parent 367e0ba8a8
commit ff482aedc8

View file

@ -91,7 +91,7 @@ L.U.Slideshow = L.Class.extend({
play: function () {
if (this._id) return;
if (this.map.editEnabled) return;
L.DomUtil.addClass(document.body, L.U.Slideshow.CL.USNAME);
L.DomUtil.addClass(document.body, L.U.Slideshow.CLASSNAME);
this._id = window.setInterval(L.bind(this.loop, this), this.options.delay);
this.resetSpinners();
this.loop();
@ -104,7 +104,7 @@ L.U.Slideshow = L.Class.extend({
pause: function () {
if (this._id) {
L.DomUtil.removeClass(document.body, L.U.Slideshow.CL.USNAME);
L.DomUtil.removeClass(document.body, L.U.Slideshow.CLASSNAME);
window.clearInterval(this._id);
this._id = null;
}