diff options
| -rw-r--r-- | src/ng/rootScope.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ng/rootScope.js b/src/ng/rootScope.js index 97e396ab..5e9e8a9f 100644 --- a/src/ng/rootScope.js +++ b/src/ng/rootScope.js @@ -172,7 +172,7 @@ function $RootScopeProvider(){ * */ $new: function(isolate) { - var Child, + var ChildScope, child; if (isolate) { @@ -182,11 +182,11 @@ function $RootScopeProvider(){ child.$$asyncQueue = this.$$asyncQueue; child.$$postDigestQueue = this.$$postDigestQueue; } else { - Child = function() {}; // should be anonymous; This is so that when the minifier munges + ChildScope = function() {}; // should be anonymous; This is so that when the minifier munges // the name it does not become random set of chars. This will then show up as class // name in the debugger. - Child.prototype = this; - child = new Child(); + ChildScope.prototype = this; + child = new ChildScope(); child.$id = nextUid(); } child['this'] = child; |
