From 4e65635f85f83f3e92e279563bb4f26eb05eb02e Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 8 May 2012 16:59:46 -0700 Subject: doc($rootScope): fix $digest example --- src/ng/rootScope.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3