Skip to content

Commit 58d185d

Browse files
committed
Added AV.Promise#try
1 parent 1df524b commit 58d185d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/promise.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,4 +554,12 @@
554554
*/
555555
AV.Promise.prototype.finally = AV.Promise.prototype.always;
556556

557+
/**
558+
* Alias of AV.Promise.prototype.done
559+
* @function
560+
* @see AV.Promise#done
561+
*/
562+
AV.Promise.prototype.try = AV.Promise.prototype.done;
563+
564+
557565
}(this));

0 commit comments

Comments
 (0)