make lebab :p

This commit is contained in:
Yohan Boniface 2023-06-08 14:46:50 +02:00
parent 6efa674884
commit 65628fe202
2 changed files with 8 additions and 3 deletions

View file

@ -122,7 +122,12 @@ L.U.UI = L.Evented.extend({
el.textContent = action.label el.textContent = action.label
L.DomEvent.on(el, 'click', L.DomEvent.stop) L.DomEvent.on(el, 'click', L.DomEvent.stop)
if (action.callback) { 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) L.DomEvent.on(el, 'click', close, this)
} }