guy 7 years ago
parent
commit
3706995efd
  1. 9
      dist/fix/fix.js

9
dist/fix/fix.js vendored

@ -959,7 +959,8 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
} }
var watchers = []; var watchers = [];
var fns = exps.slice(); var fns = exps.slice();
var complete = false; var complete = false,
running = false;
_.each(exps, function (exp, i) { _.each(exps, function (exp, i) {
if (_.has(operators, exp)) { if (_.has(operators, exp)) {
return; return;
@ -972,9 +973,13 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
if (runBinaryFunction(fns)) { if (runBinaryFunction(fns)) {
complete = true; complete = true;
cb.call(vm); cb.call(vm);
fns = exps.slice(); }
if (!running) {
running = true;
nextTick(function () { nextTick(function () {
complete = false; complete = false;
running = false;
fns = exps.slice();
}); });
} }
}, options); }, options);

Loading…
Cancel
Save