8000 fix (index, val) syntax index update · noscripter/vue@b57cdf2 · GitHub
[go: up one dir, main page]

Skip to content

Commit b57cdf2

Browse files
committed
fix (index, val) syntax index update
1 parent d8e9e2e commit b57cdf2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/directives/public/for.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,10 @@ module.exports = {
121121
// update $key
122122
if (key) {
123123
frag.scope.$key = key
124-
if (iterator) {
125-
frag.scope[iterator] = key
126-
}
124+
}
125+
// update interator
126+
if (iterator) {
127+
frag.scope[iterator] = key || i
127128
}
128129
// update data for track-by, object repeat &
129130
// primitive values.

0 commit comments

Comments
 (0)
0