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

Merge branch 'fix/o2_promiseALl' into 'wrdp'

修复o2.promiseAll方法

See merge request o2oa/o2oa!4570
......@@ -1973,7 +1973,7 @@ if (window.Promise && !Promise.any){
"then": function(s){
if (s){
var r = s(p);
return (r.then && o2.typeOf(r.then)=="function") ? r : this;
return (r && r.then && o2.typeOf(r.then)=="function") ? r : this;
}
return this;
}
......@@ -1987,7 +1987,7 @@ if (window.Promise && !Promise.any){
"then": function(s){
if (s){
var r = s(p);
return (r.then && o2.typeOf(r.then)=="function") ? r : this;
return (r && r.then && o2.typeOf(r.then)=="function") ? r : this;
}
return this;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册