mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 03:30:02 +08:00
committed by
Pete Bacon Darwin
parent
ce351e69b1
commit
d63a50c3c3
@@ -480,8 +480,8 @@ function qFactory(nextTick, exceptionHandler) {
|
||||
* @param {Array.<Promise>|Object.<Promise>} promises An array or hash of promises.
|
||||
* @returns {Promise} Returns a single promise that will be resolved with an array/hash of values,
|
||||
* each value corresponding to the promise at the same index/key in the `promises` array/hash. If any of
|
||||
* the promises is resolved with a rejection, this resulting promise will be resolved with the
|
||||
* same rejection.
|
||||
* the promises is resolved with a rejection, this resulting promise will be rejected with the
|
||||
* same rejection value.
|
||||
*/
|
||||
function all(promises) {
|
||||
var deferred = defer(),
|
||||
|
||||
Reference in New Issue
Block a user