From dfdeb363ccab39d3b58cc2873e12927c6d945f05 Mon Sep 17 00:00:00 2001 From: Dmitry Yv Date: Wed, 19 Feb 2020 14:50:32 -0500 Subject: [PATCH] Remove redundant check in updateChildren --- index.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/index.js b/index.js index 07508e4..f0e225f 100644 --- a/index.js +++ b/index.js @@ -111,14 +111,6 @@ function updateChildren (newNode, oldNode) { oldNode.appendChild(newChild) offset++ - // Both nodes are the same, morph - } else if (same(newChild, oldChild)) { - morphed = walk(newChild, oldChild) - if (morphed !== oldChild) { - oldNode.replaceChild(morphed, oldChild) - offset++ - } - // Both nodes do not share an ID or a placeholder, try reorder } else { oldMatch = null