|
@@ -17,8 +17,8 @@ define(function () {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
- DNUBrik.deps = ["selectors", "selectorConversion", "smalltalkGlobals", "classes"];
|
|
|
|
- function DNUBrik (brikz, st) {
|
|
|
|
|
|
+ RuntimeSelectorsBrik.deps = ["selectors", "selectorConversion", "smalltalkGlobals", "classes"];
|
|
|
|
+ function RuntimeSelectorsBrik (brikz, st) {
|
|
var selectors = brikz.selectors.selectors;
|
|
var selectors = brikz.selectors.selectors;
|
|
var globals = brikz.smalltalkGlobals.globals;
|
|
var globals = brikz.smalltalkGlobals.globals;
|
|
var nilAsClass = brikz.classes.nilAsClass;
|
|
var nilAsClass = brikz.classes.nilAsClass;
|
|
@@ -32,7 +32,7 @@ define(function () {
|
|
newSelectors.forEach(function (selector) {
|
|
newSelectors.forEach(function (selector) {
|
|
var jsSelector = st2js(selector);
|
|
var jsSelector = st2js(selector);
|
|
jsSelectors.push(jsSelector);
|
|
jsSelectors.push(jsSelector);
|
|
- var fn = createHandler(selector);
|
|
|
|
|
|
+ var fn = createDnuHandler(selector);
|
|
installJSMethod(nilAsClass.fn.prototype, jsSelector, fn);
|
|
installJSMethod(nilAsClass.fn.prototype, jsSelector, fn);
|
|
targetClasses.forEach(function (target) {
|
|
targetClasses.forEach(function (target) {
|
|
installJSMethod(target.fn.prototype, jsSelector, fn);
|
|
installJSMethod(target.fn.prototype, jsSelector, fn);
|
|
@@ -44,7 +44,7 @@ define(function () {
|
|
|
|
|
|
/* Dnu handler method */
|
|
/* Dnu handler method */
|
|
|
|
|
|
- function createHandler (stSelector) {
|
|
|
|
|
|
+ function createDnuHandler (stSelector) {
|
|
return function () {
|
|
return function () {
|
|
return globals.Message._selector_arguments_notUnderstoodBy_(
|
|
return globals.Message._selector_arguments_notUnderstoodBy_(
|
|
stSelector, [].slice.call(arguments), this
|
|
stSelector, [].slice.call(arguments), this
|
|
@@ -55,10 +55,10 @@ define(function () {
|
|
installNewSelectors(selectors, []);
|
|
installNewSelectors(selectors, []);
|
|
}
|
|
}
|
|
|
|
|
|
- RuntimeClassesBrik.deps = ["event", "dnu", "behaviors", "classes", "runtimeMethods"];
|
|
|
|
|
|
+ RuntimeClassesBrik.deps = ["event", "runtimeSelectors", "behaviors", "classes", "runtimeMethods"];
|
|
function RuntimeClassesBrik (brikz, st) {
|
|
function RuntimeClassesBrik (brikz, st) {
|
|
- var jsSelectors = brikz.dnu.jsSelectors;
|
|
|
|
- var installNewSelectors = brikz.dnu.installNewSelectors;
|
|
|
|
|
|
+ var jsSelectors = brikz.runtimeSelectors.jsSelectors;
|
|
|
|
+ var installNewSelectors = brikz.runtimeSelectors.installNewSelectors;
|
|
var installMethod = brikz.runtimeMethods.installMethod;
|
|
var installMethod = brikz.runtimeMethods.installMethod;
|
|
var traitsOrClasses = brikz.behaviors.traitsOrClasses;
|
|
var traitsOrClasses = brikz.behaviors.traitsOrClasses;
|
|
var wireKlass = brikz.classes.wireKlass;
|
|
var wireKlass = brikz.classes.wireKlass;
|
|
@@ -457,7 +457,7 @@ define(function () {
|
|
/* Making smalltalk that can run */
|
|
/* Making smalltalk that can run */
|
|
|
|
|
|
function configureWithRuntime (brikz) {
|
|
function configureWithRuntime (brikz) {
|
|
- brikz.dnu = DNUBrik;
|
|
|
|
|
|
+ brikz.runtimeSelectors = RuntimeSelectorsBrik;
|
|
brikz.runtimeClasses = RuntimeClassesBrik;
|
|
brikz.runtimeClasses = RuntimeClassesBrik;
|
|
brikz.frameBinding = FrameBindingBrik;
|
|
brikz.frameBinding = FrameBindingBrik;
|
|
brikz.runtimeMethods = RuntimeMethodsBrik;
|
|
brikz.runtimeMethods = RuntimeMethodsBrik;
|