From 1424c18cc42c2187e31d99809b2100e85d33f4e3 Mon Sep 17 00:00:00 2001 From: TreetopFlyer Date: Mon, 24 May 2021 11:51:07 -0400 Subject: [PATCH] fix pivot delete disconnect walk --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 18d0431..d652ff9 100755 --- a/index.html +++ b/index.html @@ -304,13 +304,13 @@ var Pivot = } } - // disconnect terminal branches - N.Walk(()=>{}, inRoot, "Hierarchy", inNode=>{ - N.Disconnect(inNode, null, "Leaf"); + // disconnect leaves from terminal branches + N.Walk(()=>{}, inRoot, "Hierarchy", true, terminal=>{ + N.Disconnect(terminal, null, "Leaf"); }); // disconnect from app - N.Disconnect(null, inRoot, "Pivot") + N.Disconnect(null, inRoot, "Pivot"); }, Modify(inNode) {