MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / destroyChildTrees

Method destroyChildTrees

src/components/fileTree/index.js:362–367  ·  view source on GitHub ↗

* Destroy all expanded child trees and clear their references.

()

Source from the content-addressed store, hash-verified

360 * Destroy all expanded child trees and clear their references.
361 */
362 destroyChildTrees() {
363 for (const childTree of this.childTrees.values()) {
364 childTree.destroy();
365 }
366 this.childTrees.clear();
367 }
368
369 /**
370 * Append a new entry to the tree

Callers 2

clearMethod · 0.95
appendEntryMethod · 0.95

Calls 2

destroyMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected