diff options
Diffstat (limited to 'src/ng/rootScope.js')
| -rw-r--r-- | src/ng/rootScope.js | 11 | 
1 files changed, 4 insertions, 7 deletions
| diff --git a/src/ng/rootScope.js b/src/ng/rootScope.js index 904f24d4..66486551 100644 --- a/src/ng/rootScope.js +++ b/src/ng/rootScope.js @@ -161,10 +161,6 @@ function $RootScopeProvider(){          var Child,              child; -        if (isFunction(isolate)) { -          // TODO: remove at some point -          throw Error('API-CHANGE: Use $controller to instantiate controllers.'); -        }          if (isolate) {            child = new Scope();            child.$root = this.$root; @@ -560,8 +556,9 @@ function $RootScopeProvider(){            if(dirty && !(ttl--)) {              clearPhase(); -            throw Error(TTL + ' $digest() iterations reached. Aborting!\n' + -                'Watchers fired in the last 5 iterations: ' + toJson(watchLog)); +            throw ngError(27, +                '{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}', +                TTL, toJson(watchLog));            }          } while (dirty || asyncQueue.length); @@ -923,7 +920,7 @@ function $RootScopeProvider(){      function beginPhase(phase) {        if ($rootScope.$$phase) { -        throw Error($rootScope.$$phase + ' already in progress'); +        throw ngError(28, '{0} already in progress', $rootScope.$$phase);        }        $rootScope.$$phase = phase; | 
