We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a95db2e commit 6f112ffCopy full SHA for 6f112ff
src/directives/internal/prop.js
@@ -18,7 +18,7 @@ module.exports = {
18
var childKey = prop.path
19
var parentKey = prop.parentPath
20
21
- this.parentWatcher = new Watcher(
+ var parentWatcher = this.parentWatcher = new Watcher(
22
parent,
23
parentKey,
24
function (val) {
@@ -34,7 +34,7 @@ module.exports = {
34
)
35
36
// set the child initial value.
37
- _.initProp(child, prop, this.parentWatcher.value)
+ _.initProp(child, prop, parentWatcher.value)
38
39
// setup two-way binding
40
if (prop.mode === bindingModes.TWO_WAY) {
@@ -46,7 +46,7 @@ module.exports = {
46
child,
47
childKey,
48
49
- parent.$set(parentKey, val)
+ parentWatcher.set(val)
50
}
51
52
})
0 commit comments