|
@@ -55,8 +55,9 @@ define(function () {
|
|
|
installNewSelectors(selectors, []);
|
|
|
}
|
|
|
|
|
|
- RuntimeClassesBrik.deps = ["event", "runtimeSelectors", "behaviors", "classes", "runtimeMethods"];
|
|
|
+ RuntimeClassesBrik.deps = ["event", "smalltalkGlobals", "runtimeSelectors", "behaviors", "classes", "runtimeMethods"];
|
|
|
function RuntimeClassesBrik (brikz, st) {
|
|
|
+ var globals = brikz.smalltalkGlobals.globals;
|
|
|
var jsSelectors = brikz.runtimeSelectors.jsSelectors;
|
|
|
var installNewSelectors = brikz.runtimeSelectors.installNewSelectors;
|
|
|
var installMethod = brikz.runtimeMethods.installMethod;
|
|
@@ -131,6 +132,12 @@ define(function () {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+ /* Create an alias for an existing class */
|
|
|
+
|
|
|
+ st.alias = function (traitOrClass, alias) {
|
|
|
+ globals[alias] = traitOrClass;
|
|
|
+ };
|
|
|
+
|
|
|
/* Manually set the constructor of an existing Smalltalk klass, making it a detached root class. */
|
|
|
|
|
|
st.setClassConstructor = this.setClassConstructor = function (klass, constructor) {
|