From 9efe60f294c9ba8408dd2488ff1072a7711101b7 Mon Sep 17 00:00:00 2001 From: ArchmageInc Date: Fri, 17 Jul 2015 11:32:30 -0400 Subject: [PATCH] docs($q): add $q.when and $q.resolve callback arguments Closes #12372 --- src/ng/q.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ng/q.js b/src/ng/q.js index 194fae27b6b1..8713ecb705a2 100644 --- a/src/ng/q.js +++ b/src/ng/q.js @@ -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 */ @@ -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;