Skip to content

Commit e6ed8fc

Browse files
committed
Fixed docs
1 parent dbae275 commit e6ed8fc

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

lib/promise.js

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@
255255
/**
256256
* Just like AV.Promise.when, but it calls resolveCallbck function
257257
* with one results array.
258-
* @see AV.Promise.all
258+
* @see AV.Promise.when
259259
*/
260260
AV.Promise.all = function(promises) {
261261
return AV.Promise.when(promises, true);
@@ -430,18 +430,9 @@
430430
},
431431

432432
/**
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.
445436
* @return {AV.Promise} A new Promise that will be fulfilled after this
446437
* Promise is fulfilled and either callback has completed. If the callback
447438
* returned a Promise, then this Promise will not be fulfilled until that

0 commit comments

Comments
 (0)