diff options
| author | Igor Minar | 2012-03-05 14:52:34 -0800 |
|---|---|---|
| committer | Igor Minar | 2012-03-08 11:01:22 -0800 |
| commit | e0ace15cd325b28f5c9a2a6f8e040dfd2701b1f4 (patch) | |
| tree | 601642cc5b82f7388275a94761ce73e74161e57f | |
| parent | 6a98c52c847ecc620118f3ccfdd66c3956c0fb01 (diff) | |
| download | angular.js-e0ace15cd325b28f5c9a2a6f8e040dfd2701b1f4.tar.bz2 | |
docs($rootScope): rename ttl to digestTtl + docs
| -rw-r--r-- | src/service/scope.js | 26 | ||||
| -rw-r--r-- | test/service/scopeSpec.js | 2 |
2 files changed, 26 insertions, 2 deletions
diff --git a/src/service/scope.js b/src/service/scope.js index a2de67e9..d5646008 100644 --- a/src/service/scope.js +++ b/src/service/scope.js @@ -25,6 +25,30 @@ * are expensive to construct. */ + +/** + * @ngdoc object + * @name angular.module.ng.$rootScopeProvider + * @description + * + * Provider for the $rootScope service. + */ + +/** + * @ngdoc function + * @name angular.module.ng.$rootScopeProvider#digestTtl + * @methodOf angular.module.ng.$rootScopeProvider + * @description + * + * Sets the number of digest iteration the scope should attempt to execute before giving up and + * assuming that the model is unstable. + * + * The current default is 10 iterations. + * + * @param {number} limit The number of digest iterations. + */ + + /** * @ngdoc object * @name angular.module.ng.$rootScope @@ -37,7 +61,7 @@ function $RootScopeProvider(){ var TTL = 10; - this.ttl = function(value) { + this.digestTtl = function(value) { if (arguments.length) { TTL = value; } diff --git a/test/service/scopeSpec.js b/test/service/scopeSpec.js index c4940931..d3713e9d 100644 --- a/test/service/scopeSpec.js +++ b/test/service/scopeSpec.js @@ -191,7 +191,7 @@ describe('Scope', function() { it('should prevent infinite recursion and print watcher expression',function() { module(function($rootScopeProvider) { - $rootScopeProvider.ttl(100); + $rootScopeProvider.digestTtl(100); }); inject(function($rootScope) { $rootScope.$watch('a', function() {$rootScope.b++;}); |
