Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 50e16a6

Browse files
committed
refactor(Scope): rename $$childScopeClass to ChildClass to simplify debugging/profiling
1 parent b9b1aa7 commit 50e16a6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ng/rootScope.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,18 +182,18 @@ function $RootScopeProvider(){
182182
} else {
183183
// Only create a child scope class if somebody asks for one,
184184
// but cache it to allow the VM to optimize lookups.
185-
if (!this.$$childScopeClass) {
186-
this.$$childScopeClass = function() {
185+
if (!this.$$ChildScope) {
186+
this.$$ChildScope = function ChildScope() {
187187
this.$$watchers = this.$$nextSibling =
188188
this.$$childHead = this.$$childTail = null;
189189
this.$$listeners = {};
190190
this.$$listenerCount = {};
191191
this.$id = nextUid();
192-
this.$$childScopeClass = null;
192+
this.$$ChildScope = null;
193193
};
194-
this.$$childScopeClass.prototype = this;
194+
this.$$ChildScope.prototype = this;
195195
}
196-
child = new this.$$childScopeClass();
196+
child = new this.$$ChildScope();
197197
}
198198
child['this'] = child;
199199
child.$parent = this;

0 commit comments

Comments
 (0)