Patch Leaflet bug

This has already been fixed for the next release.
This commit is contained in:
John Firebaugh 2013-11-12 16:51:24 -08:00
parent 6ecb8dbe8e
commit e8c02b49e4

View file

@ -1704,7 +1704,7 @@ L.Map = L.Class.extend({
removeLayer: function (layer) { removeLayer: function (layer) {
var id = L.stamp(layer); var id = L.stamp(layer);
if (!this._layers[id]) { return; } if (!this._layers[id]) { return this; }
if (this._loaded) { if (this._loaded) {
layer.onRemove(this); layer.onRemove(this);