From 9cc8c3825d0a198062589527d05fdedf1f7bcda0 Mon Sep 17 00:00:00 2001 From: TreetopFlyer Date: Wed, 5 May 2021 22:50:54 -0400 Subject: [PATCH] node collection working --- index.html | 73 +++++++++++++++++++++++++++++++++++------------------- 1 file changed, 48 insertions(+), 25 deletions(-) diff --git a/index.html b/index.html index c14babf..542d096 100644 --- a/index.html +++ b/index.html @@ -12,10 +12,10 @@ var N = { edited:[], editing:[] }; - inChildren.forEach( inChild => N.Connect(output, inChild) ); + inChildren.forEach( inChild => N.ConnectChild(output, inChild) ); return output; }, - Connect:(inParent, inChild)=> + ConnectChild:(inParent, inChild)=> { inParent.Children.push(inChild); inChild.Parents.push(inParent); @@ -26,11 +26,7 @@ var N = { for(let i=0; i - { - N.Walk(inNode, "Children", inIterator, inWalkID); - }, - WalkParents:(inNode, inIterator, inWalkID) => - { - N.Walk(inNode, "Parents", inIterator, inWalkID); - } + WalkChildren:(inNode, inIterator, inWalkID) => N.Walk(inNode, "Children", inIterator, inWalkID), + WalkParents :(inNode, inIterator, inWalkID) => N.Walk(inNode, "Parents", inIterator, inWalkID) }; \ No newline at end of file