MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / _removeNode

Function _removeNode

www/js/_hyperscript-max.js:3669–3676  ·  view source on GitHub ↗
(ctx, node)

Source from the content-addressed store, hash-verified

3667 return false;
3668 }
3669 function _removeNode(ctx, node) {
3670 if (ctx.idMap.has(node)) {
3671 _moveBefore(ctx.pantry, node, null);
3672 } else {
3673 ctx.callbacks.beforeNodeRemoved?.(node);
3674 node.remove();
3675 }
3676 }
3677 function _moveBefore(parentNode, element, after) {
3678 if (parentNode.moveBefore) {
3679 try {

Callers 1

_morphChildrenFunction · 0.70

Calls 1

_moveBeforeFunction · 0.70

Tested by

no test coverage detected