mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-27 06:54:01 +00:00
fix($rootScope): minor typo fixes
This commit is contained in:
parent
12ba6cec4f
commit
ef268196b9
2 changed files with 3 additions and 3 deletions
|
|
@ -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() {}
|
||||||
}];
|
}];
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue