Skip to content

Commit 4fb65c6

Browse files
committed
do not stringify watcher function upfront
1 parent 208678b commit 4fb65c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/watcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default function Watcher (vm, expOrFn, cb, options) {
4040
var isFn = typeof expOrFn === 'function'
4141
this.vm = vm
4242
vm._watchers.push(this)
43-
this.expression = isFn ? expOrFn.toString() : expOrFn
43+
this.expression = expOrFn
4444
this.cb = cb
4545
this.id = ++uid // uid for batching
4646
this.active = true

0 commit comments

Comments
 (0)