mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-07 17:04:58 +01:00
minor code style
This commit is contained in:
parent
ae984c88d8
commit
e0cfa8c3e6
1 changed files with 1 additions and 2 deletions
|
|
@ -24,8 +24,7 @@ export class SketchObject {
|
|||
|
||||
acceptV(onlyVisible, visitor) {
|
||||
if (onlyVisible && !this.visible) return true;
|
||||
for (var i = 0; i < this.children.length; i++) {
|
||||
var child = this.children[i];
|
||||
for (let child of this.children) {
|
||||
if (!child.acceptV(onlyVisible, visitor)) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue