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