Skip to content

Commit

Permalink
updated: avoid unecessary brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGuarini committed Dec 27, 2019
1 parent 6c9759d commit 3f69fef
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/bindings/each.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 3f69fef

Please sign in to comment.