mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-30 16:14:21 +02:00
Make removeLayers when not on the map a bit less wasteful
This commit is contained in:
@@ -154,7 +154,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
|||||||
|
|
||||||
if (!this._map) {
|
if (!this._map) {
|
||||||
for (i = 0, l = layersArray.length; i < l; i++) {
|
for (i = 0, l = layersArray.length; i < l; i++) {
|
||||||
this.removeLayer(layersArray[i]);
|
this._arraySplice(this._needsClustering, layersArray[i]);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user