Skip to content

Commit 2e1e9e4

Browse files
committed
ensure watcher flags to be booleans
1 parent 4983c6c commit 2e1e9e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/watcher.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ function Watcher (vm, expression, cb, options) {
2929
this.id = ++uid // uid for batching
3030
this.active = true
3131
options = options || {}
32-
this.deep = options.deep
33-
this.user = options.user
32+
this.deep = !!options.deep
33+
this.user = !!options.user
3434
this.deps = Object.create(null)
3535
// setup filters if any.
3636
// We delegate directive filters here to the watcher

0 commit comments

Comments
 (0)