Skip to content

Commit

Permalink
refactor: use more accurate variable name (#7755)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcaufy authored and yyx990803 committed Mar 8, 2018
1 parent 8053f60 commit 6931a47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/instance/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ function initWatch (vm: Component, watch: Object) {

function createWatcher (
vm: Component,
keyOrFn: string | Function,
expOrFn: string | Function,
handler: any,
options?: Object
) {
Expand All @@ -303,7 +303,7 @@ function createWatcher (
if (typeof handler === 'string') {
handler = vm[handler]
}
return vm.$watch(keyOrFn, handler, options)
return vm.$watch(expOrFn, handler, options)
}

export function stateMixin (Vue: Class<Component>) {
Expand Down

0 comments on commit 6931a47

Please sign in to comment.