Skip to content

Commit 38516b4

Browse files
committed
fix flow
1 parent 380e988 commit 38516b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/instance/render-helpers/resolve-slots.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ export function resolveSlots (
1212
return slots
1313
}
1414
const defaultSlot = []
15-
let name, child
1615
for (let i = 0, l = children.length; i < l; i++) {
17-
child = children[i]
16+
const child = children[i]
1817
// named slots should only be respected if the vnode was rendered in the
1918
// same context.
2019
if ((child.context === context || child.functionalContext === context) &&
21-
child.data && (name = child.data.slot) != null) {
20+
child.data && child.data.slot != null) {
21+
const name = child.data.slot
2222
const slot = (slots[name] || (slots[name] = []))
2323
if (child.tag === 'template') {
2424
slot.push.apply(slot, child.children)

0 commit comments

Comments
 (0)