aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Minar2013-12-03 15:39:20 -0800
committerIgor Minar2013-12-03 15:44:13 -0800
commit7401c70718318a59f88580558dadd0eddc77024a (patch)
tree4c3afc921e2085211f69fae8cb0483ad4f31a404
parentbb36bc7edf4f87a41d4269b619fc88ba662ef4df (diff)
downloadangular.js-7401c70718318a59f88580558dadd0eddc77024a.tar.bz2
style(Scope): rename child scope type from Child to ChildScope
This change makes it easier to debug angular, especiall when dealing with heap snapshots and hunting for memory leaks.
-rw-r--r--src/ng/rootScope.js8
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;