File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 430430
431431 /**
432432 * Add handlers to be called when the Promise object is rejected.
433+ *
433434 * @param {Function } rejectedCallback Function that is called when this
434- * Promise is rejected with an error.
435+ * Promise is rejected with an error.
435436 * @return {AV.Promise } A new Promise that will be fulfilled after this
436- * Promise is fulfilled and either callback has completed. If the callback
437+ * Promise is fulfilled and either callback has completed. If the callback
437438 * returned a Promise, then this Promise will not be fulfilled until that
438- * one is.
439+ * one is.
440+ * @function
439441 */
440442 catch : function ( onRejected ) {
441443 return this . then ( undefined , onRejected ) ;
533535
534536 } ) ;
535537
538+ /**
539+ * Alias of AV.Promise.prototype.always
540+ * @function
541+ * @see AV.Promise#always
542+ */
543+ AV . Promise . prototype . finally = AV . Promise . prototype . always ;
544+
536545} ( this ) ) ;
You can’t perform that action at this time.
0 commit comments