Skip to content

Commit 5b1da43

Browse files
author
Evan You
committed
fix vuejs#284 lazy option not inherited
1 parent da58eda commit 5b1da43

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/compiler.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ function Compiler (vm, options) {
9797
compiler.parent = parentVM.$compiler
9898
parentVM.$compiler.children.push(compiler)
9999
vm.$parent = parentVM
100+
// inherit lazy option
101+
if (!('lazy' in options)) {
102+
options.lazy = compiler.parent.options.lazy
103+
}
100104
}
101105
vm.$root = getRoot(compiler).vm
102106

0 commit comments

Comments
 (0)