make lebab :p
This commit is contained in:
parent
6efa674884
commit
65628fe202
2 changed files with 8 additions and 3 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue