Simplified method.
On advice from mourner.
This commit is contained in:
parent
ed06a52697
commit
3bdde9d7a3
@ -133,10 +133,7 @@ L.Popup = L.Layer.extend({
|
||||
},
|
||||
|
||||
isOpen: function () {
|
||||
if (this._map) {
|
||||
return this._map.hasLayer(this);
|
||||
}
|
||||
return false;
|
||||
return !!this._map && this._map.hasLayer(this);
|
||||
},
|
||||
|
||||
_close: function () {
|
||||
|
Loading…
Reference in New Issue
Block a user