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

Method morph

tools/common/_hyperscript.iife.js:2464–2476  ·  view source on GitHub ↗
(elt, content)

Source from the content-addressed store, hash-verified

2462 this.reactivity.notifyProperty(obj);
2463 }
2464 morph(elt, content) {
2465 this.#morphEngine.morph(elt, content, {
2466 beforeNodeRemoved: (node) => {
2467 if (node.nodeType === 1) this.cleanup(node);
2468 },
2469 afterNodeAdded: (node) => {
2470 if (node.nodeType === 1) this.processNode(node);
2471 },
2472 afterNodeMorphed: (node) => {
2473 if (node.nodeType === 1) this.processNode(node);
2474 }
2475 });
2476 }
2477 replaceInDom(target, value) {
2478 this.implicitLoop(target, (elt) => {
2479 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