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

Commit 908821e

Browse files
siddiipetebacondarwin
authored andcommittedMay 14, 2013
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
1 parent 5306136 commit 908821e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎src/ng/timeout.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ function $TimeoutProvider() {
1717
* block and delegates any exceptions to
1818
* {@link ng.$exceptionHandler $exceptionHandler} service.
1919
*
20-
* The return value of registering a timeout function is a promise which will be resolved when
20+
* The return value of registering a timeout function is a promise, which will be resolved when
2121
* the timeout is reached and the timeout function is executed.
2222
*
23-
* To cancel a the timeout request, call `$timeout.cancel(promise)`.
23+
* To cancel a timeout request, call `$timeout.cancel(promise)`.
2424
*
2525
* In tests you can use {@link ngMock.$timeout `$timeout.flush()`} to
2626
* synchronously flush the queue of deferred functions.
2727
*
28-
* @param {function()} fn A function, who's execution should be delayed.
28+
* @param {function()} fn A function, whose execution should be delayed.
2929
* @param {number=} [delay=0] Delay in milliseconds.
30-
* @param {boolean=} [invokeApply=true] If set to false skips model dirty checking, otherwise
30+
* @param {boolean=} [invokeApply=true] If set to `false` skips model dirty checking, otherwise
3131
* will invoke `fn` within the {@link ng.$rootScope.Scope#$apply $apply} block.
3232
* @returns {Promise} Promise that will be resolved when the timeout is reached. The value this
3333
* promise will be resolved with is the return value of the `fn` function.
@@ -67,7 +67,7 @@ function $TimeoutProvider() {
6767
* @methodOf ng.$timeout
6868
*
6969
* @description
70-
* Cancels a task associated with the `promise`. As a result of this the promise will be
70+
* Cancels a task associated with the `promise`. As a result of this, the promise will be
7171
* resolved with a rejection.
7272
*
7373
* @param {Promise=} promise Promise returned by the `$timeout` function.

0 commit comments

Comments
 (0)
This repository has been archived.