mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-08 14:54:44 +00:00
docs($q): fix incorrect @returns tag for $q.when()
This commit is contained in:
parent
7898490779
commit
70e4fd2865
1 changed files with 1 additions and 4 deletions
|
|
@ -316,10 +316,7 @@ function qFactory(nextTick, exceptionHandler) {
|
||||||
* the promise comes from a source that can't be trusted.
|
* the promise comes from a source that can't be trusted.
|
||||||
*
|
*
|
||||||
* @param {*} value Value or a promise
|
* @param {*} value Value or a promise
|
||||||
* @returns {Promise} Returns a single promise that will be resolved with an array of values,
|
* @returns {Promise} Returns a promise of the passed value or promise
|
||||||
* each value corresponding to the promise at the same index in the `promises` array. If any of
|
|
||||||
* the promises is resolved with a rejection, this resulting promise will be resolved with the
|
|
||||||
* same rejection.
|
|
||||||
*/
|
*/
|
||||||
var when = function(value, callback, errback) {
|
var when = function(value, callback, errback) {
|
||||||
var result = defer(),
|
var result = defer(),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue