mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24: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) {
|
||||
for (i = 0, l = layersArray.length; i < l; i++) {
|
||||
this.removeLayer(layersArray[i]);
|
||||
this._arraySplice(this._needsClustering, layersArray[i]);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user