aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng
diff options
context:
space:
mode:
authorDaniel Luz2012-09-09 23:34:15 -0300
committerMisko Hevery2012-09-11 16:19:44 -0700
commitafed23c001ef6350ab9f63008828d7bfea1ada55 (patch)
tree5fcb34ac073a3a6fa57ac3bc4bef645ec1da3330 /src/ng
parent1f69cc29895f17ecb495029dc5b932bd4c8692b2 (diff)
downloadangular.js-afed23c001ef6350ab9f63008828d7bfea1ada55.tar.bz2
docs($rootScope): fix typos and minor wording tweaks on $watch
Diffstat (limited to 'src/ng')
-rw-r--r--src/ng/rootScope.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ng/rootScope.js b/src/ng/rootScope.js
index e62bd9db..b6de3005 100644
--- a/src/ng/rootScope.js
+++ b/src/ng/rootScope.js
@@ -221,18 +221,18 @@ function $RootScopeProvider(){
* reruns when it detects changes the `watchExpression` can execute multiple times per
* {@link ng.$rootScope.Scope#$digest $digest()} and should be idempotent.)
* - The `listener` is called only when the value from the current `watchExpression` and the
- * previous call to `watchExpression` are not equal (with the exception of the initial run
+ * previous call to `watchExpression` are not equal (with the exception of the initial run,
* see below). The inequality is determined according to
- * {@link angular.equals} function. To save the value of the object for later comparison
+ * {@link angular.equals} function. To save the value of the object for later comparison, the
* {@link angular.copy} function is used. It also means that watching complex options will
* have adverse memory and performance implications.
* - The watch `listener` may change the model, which may trigger other `listener`s to fire. This
* is achieved by rerunning the watchers until no changes are detected. The rerun iteration
- * limit is 100 to prevent infinity loop deadlock.
+ * limit is 100 to prevent an infinite loop deadlock.
*
*
* If you want to be notified whenever {@link ng.$rootScope.Scope#$digest $digest} is called,
- * you can register an `watchExpression` function with no `listener`. (Since `watchExpression`,
+ * you can register a `watchExpression` function with no `listener`. (Since `watchExpression`
* can execute multiple times per {@link ng.$rootScope.Scope#$digest $digest} cycle when a change is
* detected, be prepared for multiple calls to your listener.)
*