Browse Source

DEC-9265 update

es6
Fay 5 years ago
parent
commit
5ee031d919
  1. 16
      dist/fix/fix.ie.js

16
dist/fix/fix.ie.js vendored

@ -256,8 +256,8 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
/* eslint no-use-before-define: ["off"] */ /* eslint no-use-before-define: ["off"] */
var deepEq = function deepEq(a, b, aStack, bStack) { var deepEq = function deepEq(a, b, aStack, bStack) {
// Unwrap any wrapped objects. // Unwrap any wrapped objects.
if (a instanceof _) a = a._wrapped; if (a instanceof _$1) a = a._wrapped;
if (b instanceof _) b = b._wrapped; if (b instanceof _$1) b = b._wrapped;
// Compare `[[Class]]` names. // Compare `[[Class]]` names.
var className = toString.call(a); var className = toString.call(a);
if (className !== toString.call(b)) return false; 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) { 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);
@ -799,7 +807,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);

Loading…
Cancel
Save