提交 868201ad 编写于 作者: NoSubject's avatar NoSubject

PromiseAll增加undefined判断

上级 901a8eb7
......@@ -1869,7 +1869,7 @@ if (!window.Promise){
return { "then": function(s){ s(p); return this;} };
}
}else{
if (o2.typeOf(p.then)=="function"){
if (p && o2.typeOf(p.then)=="function"){
return Promise.resolve(p);
}else{
return { "then": function(s){ s(p); return this;} };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册