refactor(Scope): rename $$childScopeClass to ChildClass to simplify debugging/profiling

This commit is contained in:
Igor Minar
2014-08-08 13:38:41 -07:00
parent b9b1aa7797
commit 50e16a67bb

View File

@@ -182,18 +182,18 @@ function $RootScopeProvider(){
} else {
// Only create a child scope class if somebody asks for one,
// but cache it to allow the VM to optimize lookups.
if (!this.$$childScopeClass) {
this.$$childScopeClass = function() {
if (!this.$$ChildScope) {
this.$$ChildScope = function ChildScope() {
this.$$watchers = this.$$nextSibling =
this.$$childHead = this.$$childTail = null;
this.$$listeners = {};
this.$$listenerCount = {};
this.$id = nextUid();
this.$$childScopeClass = null;
this.$$ChildScope = null;
};
this.$$childScopeClass.prototype = this;
this.$$ChildScope.prototype = this;
}
child = new this.$$childScopeClass();
child = new this.$$ChildScope();
}
child['this'] = child;
child.$parent = this;