From a762b5226c585b5137aca2c89e1d049939cc25c6 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Tue, 4 Feb 2020 20:13:28 +0800 Subject: [PATCH] =?UTF-8?q?BI-59964=20fix:=20nextTick=E4=BC=A0=E4=B8=A4?= =?UTF-8?q?=E4=B8=AA=E5=8F=82=E6=95=B0=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/base.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/core/base.js b/src/core/base.js index 21565d4544..1f042b1d71 100644 --- a/src/core/base.js +++ b/src/core/base.js @@ -712,17 +712,18 @@ if (!_global.BI) { }; } - return function queueNextTick(cb, ctx) { + return function queueNextTick(cb) { var _resolve = void 0; + var args = [].slice.call(arguments, 1); callbacks.push(function () { if (cb) { try { - cb.call(ctx); + cb.apply(null, args); } catch (e) { console.error(e); } } else if (_resolve) { - _resolve(ctx); + _resolve.apply(null, args); } }); if (!pending) {