Fay 5 years ago
parent
commit
0269ccef80
  1. 13
      dist/fix/fix.ie.js

13
dist/fix/fix.ie.js vendored

@ -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) { function digestState(vm) {
var dirty = false; var dirty = false;
_$1.each(vm._stateWatchers, function (watcher, key) { _$1.each(vm._stateWatchers, function (watcher, key) {
var cur = watcher.get(); var cur = watcher.get();
var last = watcher.last; var last = watcher.last;
if (!isShadowEqual(cur, last)) { if (!isShadowEqual(cur, last)) {
addToListenerQueue(vm, watcher, cur, last); // addToListenerQueue(vm, watcher, cur, last);
vm.model[key] = cur; vm.model[key] = cur;
dirty = true; dirty = true;
watcher.last = cloneShadow(cur); watcher.last = cloneShadow(cur);
@ -807,7 +799,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
var cur = watcher.get(); var cur = watcher.get();
var last = watcher.last; var last = watcher.last;
if (!isShadowEqual(cur, last)) { if (!isShadowEqual(cur, last)) {
addToListenerQueue(vm, watcher, cur, last); // addToListenerQueue(vm, watcher, cur, last);
vm.model[key] = cur; vm.model[key] = cur;
dirty = true; dirty = true;
dirtyQueue.push(key); dirtyQueue.push(key);
@ -1023,6 +1015,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
var ob = new OB({ var ob = new OB({
define: true define: true
}); });
ob._constructor();
allDefineModelInstances[ob.getModelID()] = ob; allDefineModelInstances[ob.getModelID()] = ob;
return ob.model; return ob.model;

Loading…
Cancel
Save