Merge pull request #861 from danzel/master

Fix FeatureGroup.removeLayer removing popups
This commit is contained in:
Vladimir Agafonkin 2012-08-01 03:04:23 -07:00
commit f8f04c3534

View File

@ -26,7 +26,11 @@ L.FeatureGroup = L.LayerGroup.extend({
L.LayerGroup.prototype.removeLayer.call(this, layer);
if (this._popupContent) {
return this.invoke('unbindPopup');
} else {
return this;
}
},
bindPopup: function (content) {