From 0269ccef80991eef1f559efa31b70a4d541a58a4 Mon Sep 17 00:00:00 2001 From: Fay Date: Thu, 15 Aug 2019 11:43:05 +0800 Subject: [PATCH] update --- dist/fix/fix.ie.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/dist/fix/fix.ie.js b/dist/fix/fix.ie.js index 2acad45f81..6c36d44063 100644 --- a/dist/fix/fix.ie.js +++ b/dist/fix/fix.ie.js @@ -771,21 +771,13 @@ 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); @@ -807,7 +799,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); @@ -1023,6 +1015,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons var ob = new OB({ define: true }); + ob._constructor(); allDefineModelInstances[ob.getModelID()] = ob; return ob.model;