diff --git a/dist/fix/fix.js b/dist/fix/fix.js index 0568197e5..17b56748b 100644 --- a/dist/fix/fix.js +++ b/dist/fix/fix.js @@ -1122,10 +1122,17 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons } } - function createWatcher(vm, keyOrFn, handler) { - return watch(vm.model, keyOrFn, _.bind(handler, vm.$$model ? vm.model : vm), { + function createWatcher(vm, keyOrFn, cb, options) { + if (isPlainObject(cb)) { + options = cb; + cb = cb.handler; + } + if (typeof cb === 'string') { + cb = vm[cb]; + } + return watch(vm.model, keyOrFn, _.bind(cb, vm.$$model ? vm.model : vm), _.extend({ sync: true - }); + }, options)); } function initMethods(vm, methods) {