File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -253,10 +253,10 @@ function $RootScopeProvider() {
253
253
* Registers a `listener` callback to be executed whenever the `watchExpression` changes.
254
254
*
255
255
* - The `watchExpression` is called on every call to {@link ng.$rootScope.Scope#$digest
256
- * $digest()} and should return the value that will be watched. (Since
257
- * { @link ng.$rootScope.Scope#$digest $digest()} reruns when it detects changes the
258
- * `watchExpression` can execute multiple times per
259
- * { @link ng.$rootScope.Scope#$digest $digest()} and should be idempotent.)
256
+ * $digest()} and should return the value that will be watched. (`watchExpression` should not change
257
+ * its value when executed multiple times with the same input because it may be executed multiple
258
+ * times by { @link ng.$rootScope.Scope#$digest $digest()}. That is, `watchExpression` should be
259
+ * [idempotent](http://en.wikipedia.org/wiki/Idempotence).
260
260
* - The `listener` is called only when the value from the current `watchExpression` and the
261
261
* previous call to `watchExpression` are not equal (with the exception of the initial run,
262
262
* see below). Inequality is determined according to reference inequality,
You can’t perform that action at this time.
0 commit comments