choojs / nanomorph

🚅 - Hyper fast diffing algorithm for real DOM nodes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nanomorph mutates the new DOM node tree

reminyborg opened this issue · comments

When using appendChild to add children from the new tree to the original it removes them from the original.
Should we add a warning about this in the docs?

ref morphdom writes:

NOTE: This module will modify both the original and target DOM node tree during the transformation. It is assumed that the target DOM node tree will be discarded after the original DOM node tree is morphed.
commented
commented

Fixed!