From 3706995efd19ec17a95bdb9ffd3e35e0155776fa Mon Sep 17 00:00:00 2001 From: guy Date: Tue, 31 Oct 2017 11:27:20 +0800 Subject: [PATCH] update --- dist/fix/fix.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dist/fix/fix.js b/dist/fix/fix.js index 02a0b693b..96aaac581 100644 --- a/dist/fix/fix.js +++ b/dist/fix/fix.js @@ -959,7 +959,8 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons } var watchers = []; var fns = exps.slice(); - var complete = false; + var complete = false, + running = false; _.each(exps, function (exp, i) { if (_.has(operators, exp)) { return; @@ -972,9 +973,13 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons if (runBinaryFunction(fns)) { complete = true; cb.call(vm); - fns = exps.slice(); + } + if (!running) { + running = true; nextTick(function () { complete = false; + running = false; + fns = exps.slice(); }); } }, options);