From 9b22cb4ab71d8b7db678a25c370a0c2402a52cba Mon Sep 17 00:00:00 2001 From: Joachim Schleicher Date: Sun, 22 Oct 2023 20:52:35 +0200 Subject: [PATCH] prettier.js fixup 836c17f --- umap/static/umap/js/umap.popup.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/umap/static/umap/js/umap.popup.js b/umap/static/umap/js/umap.popup.js index d5836d3e..c79c618b 100644 --- a/umap/static/umap/js/umap.popup.js +++ b/umap/static/umap/js/umap.popup.js @@ -70,12 +70,12 @@ L.U.Popup.Panel = L.U.Popup.extend({ }) // fire events as in base class Popup.js:onAdd - map.fire('popupopen', {popup: this}) + map.fire('popupopen', { popup: this }) if (this._source) { - this._source.fire('popupopen', {popup: this}, true); - if (!(this._source instanceof L.Path)) { - this._source.on('preclick', L.DomEvent.stopPropagation); - } + this._source.fire('popupopen', { popup: this }, true) + if (!(this._source instanceof L.Path)) { + this._source.on('preclick', L.DomEvent.stopPropagation) + } } }, @@ -83,12 +83,12 @@ L.U.Popup.Panel = L.U.Popup.extend({ map.ui.closePanel() // fire events as in base class Popup.js:onRemove - map.fire('popupclose', {popup: this}); + map.fire('popupclose', { popup: this }) if (this._source) { - this._source.fire('popupclose', {popup: this}, true); - if (!(this._source instanceof L.Path)) { - this._source.off('preclick', L.DomEvent.stopPropagation); - } + this._source.fire('popupclose', { popup: this }, true) + if (!(this._source instanceof L.Path)) { + this._source.off('preclick', L.DomEvent.stopPropagation) + } } }, @@ -125,7 +125,7 @@ L.U.PopupTemplate.Default = L.Class.extend({ properties ) content = L.Util.greedyTemplate(template, properties) - content = L.Util.toHTML(content, {target: target}) + content = L.Util.toHTML(content, { target: target }) container.innerHTML = content return container },