MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / morph

Method morph

www/js/_hyperscript.js:2473–2485  ·  view source on GitHub ↗
(elt, content)

Source from the content-addressed store, hash-verified

2471 this.reactivity.notifyProperty(obj);
2472 }
2473 morph(elt, content) {
2474 this.#morphEngine.morph(elt, content, {
2475 beforeNodeRemoved: (node) => {
2476 if (node.nodeType === 1) this.cleanup(node);
2477 },
2478 afterNodeAdded: (node) => {
2479 if (node.nodeType === 1) this.processNode(node);
2480 },
2481 afterNodeMorphed: (node) => {
2482 if (node.nodeType === 1) this.processNode(node);
2483 }
2484 });
2485 }
2486 replaceInDom(target, value) {
2487 this.implicitLoop(target, (elt) => {
2488 var parent = elt.parentElement;

Callers

nothing calls this directly

Calls 3

cleanupMethod · 0.95
processNodeMethod · 0.95
morphMethod · 0.45

Tested by

no test coverage detected