Browse Source

Merge pull request #1247 in VISUAL/fineui from ~WINDY/fineui:master to master

* commit 'a762b5226c585b5137aca2c89e1d049939cc25c6':
  BI-59964 fix: nextTick传两个参数的情况
es6
windy 5 years ago
parent
commit
3838a181b8
  1. 7
      src/core/base.js

7
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) {

Loading…
Cancel
Save