Precise DOM morphing
morphing typescript dom
0
fork

Configure Feed

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

Don't need to delete keys from the map as we'll never look them up anyway

-3
-3
morphlite.ts
··· 13 13 } 14 14 15 15 function morph(from: Node, to: Node, idMap: IdMap, insertBefore?: Node, parent?: Node): void { 16 - idMap.delete(from); 17 - idMap.delete(to); 18 - 19 16 if (parent && insertBefore && insertBefore !== from) parent.insertBefore(to, insertBefore); 20 17 21 18 if (from instanceof Text && to instanceof Text) {