File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ module.exports = {
17
17
var prop = this . descriptor . prop
18
18
var childKey = prop . path
19
19
var parentKey = prop . parentPath
20
+ var twoWay = prop . mode === bindingModes . TWO_WAY
20
21
21
22
var parentWatcher = this . parentWatcher = new Watcher (
22
23
parent ,
@@ -26,6 +27,7 @@ module.exports = {
26
27
child [ childKey ] = val
27
28
}
28
29
} , {
30
+ twoWay : twoWay ,
29
31
filters : prop . filters ,
30
32
// important: props need to be observed on the
31
33
// v-for scope if present
@@ -37,7 +39,7 @@ module.exports = {
37
39
_ . initProp ( child , prop , parentWatcher . value )
38
40
39
41
// setup two-way binding
40
- if ( prop . mode === bindingModes . TWO_WAY ) {
42
+ if ( twoWay ) {
41
43
// important: defer the child watcher creation until
42
44
// the created hook (after data observation)
43
45
var self = this
You can’t perform that action at this time.
0 commit comments