MCPcopy
hub / github.com/midrender/revideo / removeChildren

Method removeChildren

packages/2d/src/lib/components/Node.ts:984–989  ·  view source on GitHub ↗

* Remove all children of this node.

()

Source from the content-addressed store, hash-verified

982 * Remove all children of this node.
983 */
984 public removeChildren() {
985 for (const oldChild of this.realChildren) {
986 oldChild.parent(null);
987 }
988 this.setParsedChildren([]);
989 }
990
991 /**
992 * Get the current children of this node.

Callers 2

disposeMethod · 0.80
children.test.tsxFile · 0.80

Calls 1

setParsedChildrenMethod · 0.95

Tested by

no test coverage detected