fix($rootScope): minor typo fixes

This commit is contained in:
Daniel Luz 2012-11-04 19:26:58 -02:00 committed by Misko Hevery
parent 12ba6cec4f
commit ef268196b9
2 changed files with 3 additions and 3 deletions

View file

@ -810,7 +810,7 @@ function $RootScopeProvider(){
/** /**
* function used as an initial value for watchers. * function used as an initial value for watchers.
* because it's uniqueue we can easily tell it apart from other values * because it's unique we can easily tell it apart from other values
*/ */
function initWatchVal() {} function initWatchVal() {}
}]; }];

View file

@ -216,7 +216,7 @@ describe('Scope', function() {
}); });
it('should prevent infinite recursion and print print watcher function name or body', it('should prevent infinite recursion and print watcher function name or body',
inject(function($rootScope) { inject(function($rootScope) {
$rootScope.$watch(function watcherA() {return $rootScope.a;}, function() {$rootScope.b++;}); $rootScope.$watch(function watcherA() {return $rootScope.a;}, function() {$rootScope.b++;});
$rootScope.$watch(function() {return $rootScope.b;}, function() {$rootScope.a++;}); $rootScope.$watch(function() {return $rootScope.b;}, function() {$rootScope.a++;});
@ -328,7 +328,7 @@ describe('Scope', function() {
})); }));
it('should always call the watchr with newVal and oldVal equal on the first run', it('should always call the watcher with newVal and oldVal equal on the first run',
inject(function($rootScope) { inject(function($rootScope) {
var log = []; var log = [];
function logger(scope, newVal, oldVal) { function logger(scope, newVal, oldVal) {