Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
虞上将 authored and 虞上将 committed Nov 20, 2018
1 parent 1762a66 commit c60fb7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/observer/dep.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Dep.target = null
const targetStack = []

export function pushTarget (_target: ?Watcher) {
if (Dep.target) targetStack.push(Dep.target)
if (Dep.target !== null) targetStack.push(Dep.target)
Dep.target = _target
}

Expand Down

0 comments on commit c60fb7f

Please sign in to comment.