|
|
@ -929,7 +929,7 @@ function watch(model, expOrFn, cb, options) { |
|
|
|
return m; |
|
|
|
return m; |
|
|
|
} : parsePath(exp); |
|
|
|
} : parsePath(exp); |
|
|
|
const v = getter.call(model, model); |
|
|
|
const v = getter.call(model, model); |
|
|
|
if (v.__ob__) { |
|
|
|
if (v && v.__ob__) { |
|
|
|
const dep = new Dep(); |
|
|
|
const dep = new Dep(); |
|
|
|
if (isGlobal) { |
|
|
|
if (isGlobal) { |
|
|
|
(v.__ob__._scopeDeps || (v.__ob__._scopeDeps = [])).push(dep); |
|
|
|
(v.__ob__._scopeDeps || (v.__ob__._scopeDeps = [])).push(dep); |
|
|
|