mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-04 21:17:55 +08:00
Added the missing break (#3021)
Break in loop when condition is fulfilled.
This commit is contained in:
parent
03e0dab1f4
commit
c4c3ebdd96
@ -8,6 +8,7 @@ export default function ref (el: ASTElement, dir: ASTDirective) {
|
|||||||
while (parent) {
|
while (parent) {
|
||||||
if (parent.for !== undefined) {
|
if (parent.for !== undefined) {
|
||||||
el.refInFor = true
|
el.refInFor = true
|
||||||
|
break
|
||||||
}
|
}
|
||||||
parent = parent.parent
|
parent = parent.parent
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user