From 3f69fefec9356bfb0fc3ad3b9838430f2c432f60 Mon Sep 17 00:00:00 2001 From: Gianluca Guarini Date: Fri, 27 Dec 2019 16:54:01 +0100 Subject: [PATCH] updated: avoid unecessary brackets --- src/bindings/each.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/bindings/each.js b/src/bindings/each.js index 97b0a79..285dd3c 100644 --- a/src/bindings/each.js +++ b/src/bindings/each.js @@ -152,12 +152,9 @@ function createPatch(items, scope, parentScope, binding) { const children = meta.children || componentTemplate.children futureNodes.push(...children) - // add fake children into the childrenMap in order to preserve // the index in case of unmount calls - children.forEach(child => { - newChildrenMap.set(child, null) - }) + children.forEach(child => newChildrenMap.set(child, null)) } else { futureNodes.push(el) }