Skip to content

Commit 9ad10e8

Browse files
committedSep 25, 2014
Setup $$parent for basic classes
1 parent 775d973 commit 9ad10e8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎opal/corelib/runtime.js

+5
Original file line numberDiff line numberDiff line change
@@ -1073,6 +1073,11 @@
10731073
ModuleClass.$$super = ObjectClass;
10741074
ClassClass.$$super = ModuleClass;
10751075

1076+
BasicObjectClass.$$parent = null;
1077+
ObjectClass.$$parent = BasicObjectClass;
1078+
ModuleClass.$$parent = ObjectClass;
1079+
ClassClass.$$parent = ModuleClass;
1080+
10761081
// Internally, Object acts like a module as it is "included" into bridged
10771082
// classes. In other words, we donate methods from Object into our bridged
10781083
// classes as their prototypes don't inherit from our root Object, so they

0 commit comments

Comments
 (0)
Please sign in to comment.