Skip to content

Commit

Permalink
optimize one more loop
Browse files Browse the repository at this point in the history
  • Loading branch information
chiefcll committed Sep 16, 2024
1 parent 8b5a02e commit b1add94
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/core/CoreNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1105,11 +1105,8 @@ export class CoreNode extends EventEmitter {
this.children.length > 0 &&
this.rtt === false
) {
for (let i = 0; i < this.children.length; i++) {
const child = this.children[i];
if (child === undefined) {
continue;
}
for (let i = 0, length = this.children.length; i < length; i++) {
const child = this.children[i] as CoreNode;

child.setUpdateType(this.childUpdateType);

Expand Down

0 comments on commit b1add94

Please sign in to comment.