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)
{