Here it the code-fragment for 'removeLayer':
removeLayer: function (layer) {
var id = L.Util.stamp(layer);
var _layer = this._getLayer(id);
if (_layer) {
delete this.layers[this.layers.indexOf(_layer)]; // `this.layers` should be replaced with `this._layers`
}
this._update();
return this;
}
Instead of this.layers should be this._layers i guess.