From 7401c70718318a59f88580558dadd0eddc77024a Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 3 Dec 2013 15:39:20 -0800 Subject: 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. --- src/ng/rootScope.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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; -- cgit v1.2.3