aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Minar2012-05-08 16:59:46 -0700
committerIgor Minar2012-05-08 17:00:25 -0700
commit4e65635f85f83f3e92e279563bb4f26eb05eb02e (patch)
treee056c4df9f6c63ef3eff36b76ce726103c964584
parentaa02534865c8e43dcef9e218b12c8c717c837205 (diff)
downloadangular.js-4e65635f85f83f3e92e279563bb4f26eb05eb02e.tar.bz2
doc($rootScope): fix $digest example
-rw-r--r--src/ng/rootScope.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ng/rootScope.js b/src/ng/rootScope.js
index 2541ec24..a37eda5a 100644
--- a/src/ng/rootScope.js
+++ b/src/ng/rootScope.js
@@ -347,7 +347,7 @@ function $RootScopeProvider(){
scope.counter = 0;
expect(scope.counter).toEqual(0);
- scope.$watch('name', function(scope, newValue, oldValue) {
+ scope.$watch('name', function(newValue, oldValue) {
counter = counter + 1;
});
expect(scope.counter).toEqual(0);