Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
docs($q): add $q.when and $q.resolve callback arguments
Browse files Browse the repository at this point in the history
Closes #12372
  • Loading branch information
ArchmageInc authored and lgalfaso committed Aug 3, 2015
1 parent 8553b56 commit 9efe60f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ng/q.js
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,9 @@ function qFactory(nextTick, exceptionHandler) {
* the promise comes from a source that can't be trusted.
*
* @param {*} value Value or a promise
* @param {Function=} successCallback
* @param {Function=} errorCallback
* @param {Function=} progressCallback
* @returns {Promise} Returns a promise of the passed value or promise
*/

Expand All @@ -506,6 +509,9 @@ function qFactory(nextTick, exceptionHandler) {
* Alias of {@link ng.$q#when when} to maintain naming consistency with ES6.
*
* @param {*} value Value or a promise
* @param {Function=} successCallback
* @param {Function=} errorCallback
* @param {Function=} progressCallback
* @returns {Promise} Returns a promise of the passed value or promise
*/
var resolve = when;
Expand Down

0 comments on commit 9efe60f

Please sign in to comment.