perf: no iterator
This commit is contained in:
parent
a00287c021
commit
2be6729f20
|
@ -136,7 +136,8 @@ export class Layers extends decorate(class {}) {
|
|||
|
||||
visibleEntities(query) {
|
||||
const layerEntities = [];
|
||||
for (const {index, layer} of this) {
|
||||
for (const index in this.layers) {
|
||||
const layer = this.layers[index];
|
||||
layerEntities.push(layer.visibleEntities(query));
|
||||
}
|
||||
return arrayUnique(flatten(layerEntities));
|
||||
|
|
Loading…
Reference in New Issue
Block a user