Skip to content

Commit

Permalink
Merge pull request #146 from ecomfe/3.1/hotfix/145
Browse files Browse the repository at this point in the history
Fix #145
  • Loading branch information
otakustay committed Aug 30, 2014
2 parents 75d76e7 + c317464 commit 805242e
Show file tree
Hide file tree
Showing 7 changed files with 240 additions and 228 deletions.
2 changes: 1 addition & 1 deletion src/Action.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ define(
* - 如果该方法正常返回,则认为错误已经处理完毕,继续进入下一步
* - 如果该方法抛出异常,则认为错误未处理,中断执行流程
*
* @param {Object[]} 错误集合
* @param {Object[]} errors 错误集合
* @ignore
*/
exports.handleError = function (errors) {
Expand Down
10 changes: 7 additions & 3 deletions src/Deferred.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ define(
var assert = require('./assert');

var setImmediate = typeof window.setImmediate === 'function'
? function (fn) { window.setImmediate(fn); }
: function (fn) { window.setTimeout(fn, 0); };
? function (fn) {
window.setImmediate(fn);
}
: function (fn) {
window.setTimeout(fn, 0);
};

/**
* 尝试执行相关的回调函数
Expand Down Expand Up @@ -64,7 +68,7 @@ define(
*
* @param {Deferred} original 原`Deferred`对象
* @param {Deferred} deferred 新`Deferred`对象
* @param {callback} 当`original`运行完毕后,需要执行的函数
* @param {Function} callback 当`original`运行完毕后,需要执行的函数
* @param {string} actionType 关联的动作类型,`"resolve"`或`"reject"`
* @return {Function} 关联函数,可注册在`original`的相关回调函数上
* @ignore
Expand Down
Loading

0 comments on commit 805242e

Please sign in to comment.