mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
docs($timeout): minor cleanup
Added a comma separator in the statement Removed the word the from the statement Used whose instead of who's in the following statement Italicized false in the statement Used a comma separator in the statement
This commit is contained in:
parent
53061363c7
commit
908821e20a
1 changed files with 5 additions and 5 deletions
|
|
@ -17,17 +17,17 @@ function $TimeoutProvider() {
|
|||
* block and delegates any exceptions to
|
||||
* {@link ng.$exceptionHandler $exceptionHandler} service.
|
||||
*
|
||||
* The return value of registering a timeout function is a promise which will be resolved when
|
||||
* The return value of registering a timeout function is a promise, which will be resolved when
|
||||
* the timeout is reached and the timeout function is executed.
|
||||
*
|
||||
* To cancel a the timeout request, call `$timeout.cancel(promise)`.
|
||||
* To cancel a timeout request, call `$timeout.cancel(promise)`.
|
||||
*
|
||||
* In tests you can use {@link ngMock.$timeout `$timeout.flush()`} to
|
||||
* synchronously flush the queue of deferred functions.
|
||||
*
|
||||
* @param {function()} fn A function, who's execution should be delayed.
|
||||
* @param {function()} fn A function, whose execution should be delayed.
|
||||
* @param {number=} [delay=0] Delay in milliseconds.
|
||||
* @param {boolean=} [invokeApply=true] If set to false skips model dirty checking, otherwise
|
||||
* @param {boolean=} [invokeApply=true] If set to `false` skips model dirty checking, otherwise
|
||||
* will invoke `fn` within the {@link ng.$rootScope.Scope#$apply $apply} block.
|
||||
* @returns {Promise} Promise that will be resolved when the timeout is reached. The value this
|
||||
* promise will be resolved with is the return value of the `fn` function.
|
||||
|
|
@ -67,7 +67,7 @@ function $TimeoutProvider() {
|
|||
* @methodOf ng.$timeout
|
||||
*
|
||||
* @description
|
||||
* Cancels a task associated with the `promise`. As a result of this the promise will be
|
||||
* Cancels a task associated with the `promise`. As a result of this, the promise will be
|
||||
* resolved with a rejection.
|
||||
*
|
||||
* @param {Promise=} promise Promise returned by the `$timeout` function.
|
||||
|
|
|
|||
Loading…
Reference in a new issue