Skip to content

Commit 742c92c

Browse files
committed
Merge pull request vuejs#2137 from rhyzx/fix-terminal-directives-check
allow empty expression in terminal directives
2 parents 3248102 + 12005ad commit 742c92c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/compiler/compile.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -587,11 +587,10 @@ function checkTerminalDirectives (el, options) {
587587
var value, dirName
588588
for (var i = 0, l = terminalDirectives.length; i < l; i++) {
589589
dirName = terminalDirectives[i]
590-
/* eslint-disable no-cond-assign */
591-
if (value = el.getAttribute('v-' + dirName)) {
590+
value = el.getAttribute('v-' + dirName)
591+
if (value != null) {
592592
return makeTerminalNodeLinkFn(el, dirName, value, options)
593593
}
594-
/* eslint-enable no-cond-assign */
595594
}
596595
}
597596

0 commit comments

Comments
 (0)