We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent daffdd5 commit 5f70c58Copy full SHA for 5f70c58
src/core/instance/state.js
@@ -292,7 +292,7 @@ function initWatch (vm: Component, watch: Object) {
292
293
function createWatcher (
294
vm: Component,
295
- keyOrFn: string | Function,
+ expOrFn: string | Function,
296
handler: any,
297
options?: Object
298
) {
@@ -303,7 +303,7 @@ function createWatcher (
303
if (typeof handler === 'string') {
304
handler = vm[handler]
305
}
306
- return vm.$watch(keyOrFn, handler, options)
+ return vm.$watch(expOrFn, handler, options)
307
308
309
export function stateMixin (Vue: Class<Component>) {
0 commit comments