From 5c9c29d16b0ffebdb0c5ddb8bd9c0a66d60b8aea Mon Sep 17 00:00:00 2001 From: fay Date: Wed, 27 May 2020 16:35:47 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AF=B9Map=E7=9A=84?= =?UTF-8?q?=E5=85=BC=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webpack/webpack.common.js | 1 + 1 file changed, 1 insertion(+) diff --git a/webpack/webpack.common.js b/webpack/webpack.common.js index 525f8d7a4..7107c0423 100644 --- a/webpack/webpack.common.js +++ b/webpack/webpack.common.js @@ -19,6 +19,7 @@ module.exports = { "core-js/features/function/bind", "core-js/features/promise", "core-js/features/string/replace", + "core-js/es/map", // "core-js", ] : [ From 955ae187743e32263a2b81dde3880feaeaf0a91b Mon Sep 17 00:00:00 2001 From: fay Date: Wed, 27 May 2020 16:36:13 +0800 Subject: [PATCH 2/2] =?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;