From 6be72f8a6b0c3437cc88297ab35ef3e47a275f81 Mon Sep 17 00:00:00 2001 From: David xu Date: Sat, 20 Apr 2024 16:54:36 +0800 Subject: [PATCH] remove unreachable conditional --- src/morphdom.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/morphdom.js b/src/morphdom.js index dfd25f6..806a941 100644 --- a/src/morphdom.js +++ b/src/morphdom.js @@ -435,10 +435,6 @@ export default function morphdomFactory(morphAttrs) { // toss out the "from node" and use the "to node" onNodeDiscarded(fromNode); } else { - if (toNode.isSameNode && toNode.isSameNode(morphedNode)) { - return; - } - morphEl(morphedNode, toNode, childrenOnly); // We now need to loop over any keyed nodes that might need to be