MCPcopy Create free account
hub / github.com/Easy-Editor/EasyEditor / unlink

Method unlink

packages/core/src/document/node/node.ts:479–485  ·  view source on GitHub ↗

* unlink this node from its parent and document

()

Source from the content-addressed store, hash-verified

477 * unlink this node from its parent and document
478 */
479 unlink() {
480 if (this.parent) {
481 this.parent.children!.unlinkChild(this)
482 }
483 this.internalUnlinkParent()
484 this.document.unlinkNode(this)
485 }
486
487 /**
488 * migrate this node to a new parent

Callers 1

internalDeleteMethod · 0.80

Calls 3

internalUnlinkParentMethod · 0.95
unlinkChildMethod · 0.80
unlinkNodeMethod · 0.80

Tested by

no test coverage detected