|
255 | 255 | /** |
256 | 256 | * Just like AV.Promise.when, but it calls resolveCallbck function |
257 | 257 | * with one results array. |
258 | | - * @see AV.Promise.all |
| 258 | + * @see AV.Promise.when |
259 | 259 | */ |
260 | 260 | AV.Promise.all = function(promises) { |
261 | 261 | return AV.Promise.when(promises, true); |
|
430 | 430 | }, |
431 | 431 |
|
432 | 432 | /** |
433 | | - * Appends a rejection handler callback to the promise, |
434 | | - * and returns a new promise resolving to the return value |
435 | | - * of the callback if it is called, or to its original |
436 | | - * fulfillment value if the promise is instead fulfilled.In fact, |
437 | | - * it is equals to promise.then(undefined, onRejected). |
438 | | - * |
439 | | - * @see AV.Promise.prototype.then |
440 | | - * @param {Function} onRejected Function that is called when this |
441 | | - * Promise is rejected with an error. Once the callback is complete, then |
442 | | - * the promise returned by "then" with be resolved successfully. If |
443 | | - * rejectedCallback is null, or it returns a rejected Promise, then the |
444 | | - * Promise returned by "then" will be rejected with that error. |
| 433 | + * Add handlers to be called when the Promise object is rejected. |
| 434 | + * @param {Function} rejectedCallback Function that is called when this |
| 435 | + * Promise is rejected with an error. |
445 | 436 | * @return {AV.Promise} A new Promise that will be fulfilled after this |
446 | 437 | * Promise is fulfilled and either callback has completed. If the callback |
447 | 438 | * returned a Promise, then this Promise will not be fulfilled until that |
|
0 commit comments