fixed clearing bug
This commit is contained in:
@@ -76,8 +76,8 @@ function prettyTreeString(tree, indent=0) {
|
|||||||
|
|
||||||
|
|
||||||
function clearTrees() {
|
function clearTrees() {
|
||||||
let children = trees.children
|
while (trees.firstChild)
|
||||||
for (let c of children) { c.remove() }
|
{ trees.firstChild.remove() }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user