Precise DOM morphing
morphing typescript dom
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Only build maps if matching element pair

+2 -3
+1 -1
dist/morphlex.js
··· 53 53 this.#morphNode(pair); 54 54 } 55 55 morphInner(pair) { 56 - this.#buildMaps(pair); 57 56 if (isMatchingElementPair(pair)) { 57 + this.#buildMaps(pair); 58 58 this.#morphMatchingElementContent(pair); 59 59 } else { 60 60 throw new Error("You can only do an inner morph with matching elements.");
+1 -2
src/morphlex.ts
··· 112 112 } 113 113 114 114 morphInner(pair: NodeReferencePair<Element>): void { 115 - this.#buildMaps(pair); 116 - 117 115 if (isMatchingElementPair(pair)) { 116 + this.#buildMaps(pair); 118 117 this.#morphMatchingElementContent(pair); 119 118 } else { 120 119 throw new Error("You can only do an inner morph with matching elements.");