Simplified method.

On advice from mourner.
This commit is contained in:
Nathan Mascitelli 2014-03-19 17:34:49 -04:00
parent ed06a52697
commit 3bdde9d7a3

View File

@ -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 () {