Skip to content

Commit e809b03

Browse files
committed
remove no longer relevant code
1 parent 0f4a88f commit e809b03

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: src/core/observer/watcher.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,8 @@ export default class Watcher {
216216
if (this.active) {
217217
// remove self from vm's watcher list
218218
// this is a somewhat expensive operation so we skip it
219-
// if the vm is being destroyed or is performing a v-for
220-
// re-render (the watcher list is then filtered by v-for).
221-
if (!this.vm._isBeingDestroyed && !this.vm._vForRemoving) {
219+
// if the vm is being destroyed.
220+
if (!this.vm._isBeingDestroyed) {
222221
remove(this.vm._watchers, this)
223222
}
224223
let i = this.deps.length

0 commit comments

Comments
 (0)