From 1ec33cc458593276ee25a98cfca130650ce41c7b Mon Sep 17 00:00:00 2001 From: dbwhddn10 Date: Fri, 25 Jul 2014 00:46:44 +0900 Subject: [PATCH] fix(rootScope.js): edit $watch parameter comment i think $watch listener params comment is wrong ( string value is not correct) i think $watch listener params is same as $watchgroup listener --- src/ng/rootScope.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ng/rootScope.js b/src/ng/rootScope.js index 044a37cbbbfe..d47effab86e8 100644 --- a/src/ng/rootScope.js +++ b/src/ng/rootScope.js @@ -315,13 +315,13 @@ function $RootScopeProvider(){ * * - `string`: Evaluated as {@link guide/expression expression} * - `function(scope)`: called with current `scope` as a parameter. - * @param {function()=} listener Callback called whenever the return value of - * the `watchExpression` changes. - * - * - `string`: Evaluated as {@link guide/expression expression} - * - `function(newValue, oldValue, scope)`: called with current and previous values as - * parameters. - * + * @param {function(newValues, oldValues, scope)} listener Callback called whenever the return value of any + * expression in `watchExpressions` changes + * The `newValues` array contains the current values of the `watchExpressions`, with the indexes matching + * those of `watchExpression` + * and the `oldValues` array contains the previous values of the `watchExpressions`, with the indexes matching + * those of `watchExpression` + * The `scope` refers to the current scope. * @param {boolean=} objectEquality Compare for object equality using {@link angular.equals} instead of * comparing for reference equality. * @param {function()=} deregisterNotifier Function to call when the deregistration function