prettier.js

fixup 836c17f
This commit is contained in:
Joachim Schleicher 2023-10-22 20:52:35 +02:00
parent 86b27ceb0f
commit 9b22cb4ab7

View file

@ -72,9 +72,9 @@ L.U.Popup.Panel = L.U.Popup.extend({
// fire events as in base class Popup.js:onAdd
map.fire('popupopen', { popup: this })
if (this._source) {
this._source.fire('popupopen', {popup: this}, true);
this._source.fire('popupopen', { popup: this }, true)
if (!(this._source instanceof L.Path)) {
this._source.on('preclick', L.DomEvent.stopPropagation);
this._source.on('preclick', L.DomEvent.stopPropagation)
}
}
},
@ -83,11 +83,11 @@ 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);
this._source.fire('popupclose', { popup: this }, true)
if (!(this._source instanceof L.Path)) {
this._source.off('preclick', L.DomEvent.stopPropagation);
this._source.off('preclick', L.DomEvent.stopPropagation)
}
}
},