Skip to content

Commit 9cbce0e

Browse files
author
k-shunji
committed
1 parent 187e431 commit 9cbce0e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/ng/rootScope.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -207,19 +207,19 @@ function $RootScopeProvider() {
207207
// but cache it to allow the VM to optimize lookups.
208208
if (!this.$$ChildScope) {
209209
this.$$ChildScope = function ChildScope() {
210-
this.$$watchers = this.$$nextSibling =
211-
this.$$childHead = this.$$childTail = null;
212-
this.$$listeners = {};
213-
this.$$listenerCount = {};
214-
this.$id = nextUid();
215-
this.$$ChildScope = null;
210+
this['$$watchers'] = this['$$nextSibling'] =
211+
this['$$childHead'] = this['$$childTail'] = null;
212+
this['$$listeners'] = {};
213+
this['$$listenerCount'] = {};
214+
this['$id'] = nextUid();
215+
this['$$ChildScope'] = null;
216216
};
217217
this.$$ChildScope.prototype = this;
218218
}
219219
child = new this.$$ChildScope();
220220
}
221-
child.$parent = parent;
222-
child.$$prevSibling = parent.$$childTail;
221+
child['$parent'] = parent;
222+
child['$$prevSibling'] = parent.$$childTail;
223223
if (parent.$$childHead) {
224224
parent.$$childTail.$$nextSibling = child;
225225
parent.$$childTail = child;

0 commit comments

Comments
 (0)