|
|
@@ -1862,7 +1862,7 @@ if (!window.Promise){
|
|
|
|
|
|
var _promiseAll = function(p){
|
|
|
if (o2.typeOf(p)=="array"){
|
|
|
- if (p.some(function(e){ return (o2.typeOf(e.then)=="function") })){
|
|
|
+ if (p.some(function(e){ return (e && o2.typeOf(e.then)=="function") })){
|
|
|
return Promise.all(p);
|
|
|
}else{
|
|
|
return { "then": function(s){ s(p); return this;} };
|