diff options
| author | Ore Landau | 2013-06-13 11:18:29 +0300 | 
|---|---|---|
| committer | Pete Bacon Darwin | 2013-06-13 22:42:26 +0100 | 
| commit | c3117b754410ad643d626bb5e93c32f0b321869c (patch) | |
| tree | 1a024096e3294f912a0e53d75b9bd43b5aeb28d5 /src/ng | |
| parent | 67744384e862f4df808c6ee4a9400ed90b7cb9d3 (diff) | |
| download | angular.js-c3117b754410ad643d626bb5e93c32f0b321869c.tar.bz2 | |
docs($q): fix a few issues
Diffstat (limited to 'src/ng')
| -rw-r--r-- | src/ng/q.js | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ng/q.js b/src/ng/q.js index 5a4c1857..2b75b3c8 100644 --- a/src/ng/q.js +++ b/src/ng/q.js @@ -85,8 +85,8 @@   * **Methods**   *   * - `then(successCallback, errorCallback)` – regardless of when the promise was or will be resolved - *   or rejected calls one of the success or error callbacks asynchronously as soon as the result - *   is available. The callbacks are called with a single argument the result or rejection reason. + *   or rejected, `then` calls one of the success or error callbacks asynchronously as soon as the result + *   is available. The callbacks are called with a single argument: the result or rejection reason.   *   *   This method *returns a new promise* which is resolved or rejected via the return value of the   *   `successCallback` or `errorCallback`. @@ -94,7 +94,7 @@   *   * # Chaining promises   * - * Because calling `then` api of a promise returns a new derived promise, it is easily possible + * Because calling the `then` method of a promise returns a new derived promise, it is easily possible   * to create a chain of promises:   *   * <pre> @@ -102,13 +102,13 @@   *     return result + 1;   *   });   * - *   // promiseB will be resolved immediately after promiseA is resolved and its value will be - *   // the result of promiseA incremented by 1 + *   // promiseB will be resolved immediately after promiseA is resolved and its value + *   // will be the result of promiseA incremented by 1   * </pre>   *   * It is possible to create chains of any length and since a promise can be resolved with another   * promise (which will defer its resolution further), it is possible to pause/defer resolution of - * the promises at any point in the chain. This makes it possible to implement powerful apis like + * the promises at any point in the chain. This makes it possible to implement powerful APIs like   * $http's response interceptors.   *   *  | 
