diff options
| author | Igor Minar | 2012-05-08 16:59:46 -0700 |
|---|---|---|
| committer | Igor Minar | 2012-05-08 17:00:25 -0700 |
| commit | 4e65635f85f83f3e92e279563bb4f26eb05eb02e (patch) | |
| tree | e056c4df9f6c63ef3eff36b76ce726103c964584 /src/ng/rootScope.js | |
| parent | aa02534865c8e43dcef9e218b12c8c717c837205 (diff) | |
| download | angular.js-4e65635f85f83f3e92e279563bb4f26eb05eb02e.tar.bz2 | |
doc($rootScope): fix $digest example
Diffstat (limited to 'src/ng/rootScope.js')
| -rw-r--r-- | src/ng/rootScope.js | 2 |
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); |
