File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -83,8 +83,7 @@ Watcher.prototype.addDep = function (dep) {
83
83
84
84
Watcher . prototype . get = function ( ) {
85
85
this . beforeGet ( )
86
- var vm = this . vm
87
- var scope = this . scope || vm
86
+ var scope = this . scope || this . vm
88
87
var value
89
88
try {
90
89
value = this . getter . call ( scope , scope )
@@ -112,7 +111,7 @@ Watcher.prototype.get = function () {
112
111
value = this . preProcess ( value )
113
112
}
114
113
if ( this . filters ) {
115
- value = vm . _applyFilters ( value , null , this . filters , false )
114
+ value = scope . _applyFilters ( value , null , this . filters , false )
116
115
}
117
116
this . afterGet ( )
118
117
return value
@@ -125,10 +124,9 @@ Watcher.prototype.get = function () {
125
124
*/
126
125
127
126
Watcher . prototype . set = function ( value ) {
128
- var vm = this . vm
129
- var scope = this . scope || vm
127
+ var scope = this . scope || this . vm
130
128
if ( this . filters ) {
131
- value = vm . _applyFilters (
129
+ value = scope . _applyFilters (
132
130
value , this . value , this . filters , true )
133
131
}
134
132
try {
You can’t perform that action at this time.
0 commit comments