Browse Source

更新proxy

es6
guy 3 years ago
parent
commit
5fcf725c7a
  1. 9
      dist/fix/fix.proxy.js

9
dist/fix/fix.proxy.js vendored

@ -2073,7 +2073,12 @@
watchers.push(innerWatch(function () { watchers.push(innerWatch(function () {
return watchExp(_v2, _getter); return watchExp(_v2, _getter);
}, function (newValue, oldValue) { }, function (newValue, oldValue) {
callback(i, newValue, oldValue, _.extend({ // a.** 在a变化的时候不会触发change
if (oldValue !== newValue) {
return;
}
callback(i, NaN, NaN, _.extend({
index: i index: i
})); }));
}, _.extend({ }, _.extend({
@ -2135,7 +2140,7 @@
changes = []; changes = [];
if (newValue === true) { if (newValue === true) {
callback(i, undefined, undefined, _.extend({ callback(i, NaN, NaN, _.extend({
index: i index: i
})); }));
} }

Loading…
Cancel
Save