aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/timeout.js
diff options
context:
space:
mode:
authorSiddique Hameed2013-05-14 13:35:03 -0500
committerPete Bacon Darwin2013-05-14 20:47:39 +0100
commit908821e20af311be905e24639dce273f2ea58434 (patch)
tree2f47e693fd60c0b40f95b5e634b33f042d92004b /src/ng/timeout.js
parent53061363c7aa1ab9085273d269c6f04ac2162336 (diff)
downloadangular.js-908821e20af311be905e24639dce273f2ea58434.tar.bz2
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
Diffstat (limited to 'src/ng/timeout.js')
-rw-r--r--src/ng/timeout.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ng/timeout.js b/src/ng/timeout.js
index e92bca69..81d09e89 100644
--- a/src/ng/timeout.js
+++ b/src/ng/timeout.js
@@ -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.