perf: no iterator

This commit is contained in:
cha0s 2019-05-02 20:21:25 -05:00
parent a00287c021
commit 2be6729f20

View File

@ -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));