From d9c05ba32170595edfdd661618ed2320a7cc1871 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 10 Sep 2019 20:31:41 -0400 Subject: [PATCH] child iterator --- table.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/table.ts b/table.ts index 7d3b2aa..1f3f196 100644 --- a/table.ts +++ b/table.ts @@ -1,7 +1,9 @@ export class Sum { ColumnIndex: number; + Original: number; + Adjustment: number; FromParents: number; FromChildren: number; FromOutside: number; @@ -72,6 +74,14 @@ export class Table this.Parent.ItrParents(inFunction); } } + ItrChildren(inFunction: Function) + { + this.Children.forEach( (inChild: Table) => + { + inFunction(inChild); + inChild.ItrChildren(inFunction); + }); + } ItrLeaves(inFunction:Function) { if(this.Children.length == 0)