From 5ee031d9191f4047654c1703cfc020efaf73aeea Mon Sep 17 00:00:00 2001 From: Fay Date: Thu, 15 Aug 2019 10:45:33 +0800 Subject: [PATCH] DEC-9265 update --- dist/fix/fix.ie.js | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/dist/fix/fix.ie.js b/dist/fix/fix.ie.js index d99f860e2..2acad45f8 100644 --- a/dist/fix/fix.ie.js +++ b/dist/fix/fix.ie.js @@ -256,8 +256,8 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons /* eslint no-use-before-define: ["off"] */ var deepEq = function deepEq(a, b, aStack, bStack) { // Unwrap any wrapped objects. - if (a instanceof _) a = a._wrapped; - if (b instanceof _) b = b._wrapped; + if (a instanceof _$1) a = a._wrapped; + if (b instanceof _$1) b = b._wrapped; // Compare `[[Class]]` names. var className = toString.call(a); if (className !== toString.call(b)) return false; @@ -771,13 +771,21 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons }); } + function addToListenerQueue(vm, watcher, cur, last) { + var listener = { + id: watcher.id, + cb: _$1.bind(watcher.listener, vm, cur, last, vm) + }; + watcher.sync === true ? vm.syncListeners.push(listener) : vm.asyncListeners.push(listener); + } + function digestState(vm) { var dirty = false; _$1.each(vm._stateWatchers, function (watcher, key) { var cur = watcher.get(); var last = watcher.last; if (!isShadowEqual(cur, last)) { - // addToListenerQueue(vm, watcher, cur, last); + addToListenerQueue(vm, watcher, cur, last); vm.model[key] = cur; dirty = true; watcher.last = cloneShadow(cur); @@ -799,7 +807,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons var cur = watcher.get(); var last = watcher.last; if (!isShadowEqual(cur, last)) { - // addToListenerQueue(vm, watcher, cur, last); + addToListenerQueue(vm, watcher, cur, last); vm.model[key] = cur; dirty = true; dirtyQueue.push(key);