File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -253,10 +253,10 @@ function $RootScopeProvider() {
253253 * Registers a `listener` callback to be executed whenever the `watchExpression` changes.
254254 *
255255 * - 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).
260260 * - The `listener` is called only when the value from the current `watchExpression` and the
261261 * previous call to `watchExpression` are not equal (with the exception of the initial run,
262262 * see below). Inequality is determined according to reference inequality,
You can’t perform that action at this time.
0 commit comments