From 955ae187743e32263a2b81dde3880feaeaf0a91b Mon Sep 17 00:00:00 2001 From: fay Date: Wed, 27 May 2020 16:36:13 +0800 Subject: [PATCH] =?UTF-8?q?IE8=20=E5=85=BC=E5=AE=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/fix/fix.compact.ie.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/dist/fix/fix.compact.ie.js b/dist/fix/fix.compact.ie.js index fed11fa51..5891bfdd6 100644 --- a/dist/fix/fix.compact.ie.js +++ b/dist/fix/fix.compact.ie.js @@ -13,10 +13,15 @@ } } - function createWatcher(vm, keyOrFn, handler) { - return Fix.watch(vm.store, keyOrFn, _.bind(handler, vm), { + function createWatcher(vm, keyOrFn, cb, options) { + if (BI.isPlainObject(cb)) { + options = cb; + cb = cb.handler; + } + options = options || {}; + return Fix.watch(vm.model, keyOrFn, _.bind(cb, vm), BI.extend(options, { store: vm.store - }); + })); } var target = null;