Lines Matching refs:vm
15 * @param {Vue} vm
30 export default function Watcher (vm, expOrFn, cb, options) {
36 this.vm = vm;
37 vm._watchers.push(this);
55 // State for avoiding false triggers for deep and Array watchers during vm._digest().
64 const value = this.getter.call(this.vm, this.vm);
136 this.cb.call(this.vm, value, oldValue);
165 /* Remove self from vm's watcher list.
167 * if the vm is being destroyed or is performing a v-for
170 if (!this.vm._isBeingDestroyed && !this.vm._vForRemoving) {
171 remove(this.vm._watchers, this);
178 this.vm = this.cb = this.value = null;