mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-08 01:13:27 +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) {
|
acceptV(onlyVisible, visitor) {
|
||||||
if (onlyVisible && !this.visible) return true;
|
if (onlyVisible && !this.visible) return true;
|
||||||
for (var i = 0; i < this.children.length; i++) {
|
for (let child of this.children) {
|
||||||
var child = this.children[i];
|
|
||||||
if (!child.acceptV(onlyVisible, visitor)) {
|
if (!child.acceptV(onlyVisible, visitor)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue