diff --git a/umap/static/umap/js/umap.icon.js b/umap/static/umap/js/umap.icon.js index 2b316d4c..8cd125a8 100644 --- a/umap/static/umap/js/umap.icon.js +++ b/umap/static/umap/js/umap.icon.js @@ -56,7 +56,7 @@ L.U.Icon.Default = L.U.Icon.extend({ _setIconStyles: function (img, name) { L.U.Icon.prototype._setIconStyles.call(this, img, name) const color = this._getColor(), - opacity = this._getOpacity() + opacity = this._getOpacity() this.elements.container.style.backgroundColor = color this.elements.arrow.style.borderTopColor = color this.elements.container.style.opacity = opacity @@ -104,7 +104,7 @@ L.U.Icon.Circle = L.U.Icon.extend({ L.U.Icon.prototype.initialize.call(this, map, options) }, - _setIconStyles: function (img, name) { + _setIconStyles: function (img, name) { L.U.Icon.prototype._setIconStyles.call(this, img, name) this.elements.main.style.backgroundColor = this._getColor() this.elements.main.style.opacity = this._getOpacity() diff --git a/umap/static/umap/js/umap.ui.js b/umap/static/umap/js/umap.ui.js index bf5d338f..7e7a861f 100644 --- a/umap/static/umap/js/umap.ui.js +++ b/umap/static/umap/js/umap.ui.js @@ -122,7 +122,12 @@ L.U.UI = L.Evented.extend({ el.textContent = action.label L.DomEvent.on(el, 'click', L.DomEvent.stop) if (action.callback) { - L.DomEvent.on(el, 'click', action.callback, action.callbackContext || this.map) + L.DomEvent.on( + el, + 'click', + action.callback, + action.callbackContext || this.map + ) } L.DomEvent.on(el, 'click', close, this) }