|
@@ -10,11 +10,21 @@ define(function () {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
- DNUBrik.deps = ["selectors", "smalltalkGlobals", "manipulation", "classes"];
|
|
|
|
|
|
+ function installJSMethod (obj, jsSelector, fn) {
|
|
|
|
+ Object.defineProperty(obj, jsSelector, {
|
|
|
|
+ value: fn,
|
|
|
|
+ enumerable: false, configurable: true, writable: true
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function installMethod (method, klass) {
|
|
|
|
+ installJSMethod(klass.fn.prototype, method.jsSelector, method.fn);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ DNUBrik.deps = ["selectors", "smalltalkGlobals", "classes"];
|
|
function DNUBrik (brikz, st) {
|
|
function DNUBrik (brikz, st) {
|
|
var selectorPairs = brikz.selectors.selectorPairs;
|
|
var selectorPairs = brikz.selectors.selectorPairs;
|
|
var globals = brikz.smalltalkGlobals.globals;
|
|
var globals = brikz.smalltalkGlobals.globals;
|
|
- var installJSMethod = brikz.manipulation.installJSMethod;
|
|
|
|
var nilAsClass = brikz.classes.nilAsClass;
|
|
var nilAsClass = brikz.classes.nilAsClass;
|
|
|
|
|
|
/* Method not implemented handlers */
|
|
/* Method not implemented handlers */
|
|
@@ -45,29 +55,11 @@ define(function () {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
- function ManipulationBrik (brikz, st) {
|
|
|
|
- function installJSMethod (obj, jsSelector, fn) {
|
|
|
|
- Object.defineProperty(obj, jsSelector, {
|
|
|
|
- value: fn,
|
|
|
|
- enumerable: false, configurable: true, writable: true
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- function installMethod (method, klass) {
|
|
|
|
- installJSMethod(klass.fn.prototype, method.jsSelector, method.fn);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- this.installMethod = installMethod;
|
|
|
|
- this.installJSMethod = installJSMethod;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- RuntimeClassesBrik.deps = ["event", "selectors", "dnu", "behaviors", "classes", "manipulation"];
|
|
|
|
|
|
+ RuntimeClassesBrik.deps = ["event", "selectors", "dnu", "behaviors", "classes"];
|
|
function RuntimeClassesBrik (brikz, st) {
|
|
function RuntimeClassesBrik (brikz, st) {
|
|
var selectors = brikz.selectors;
|
|
var selectors = brikz.selectors;
|
|
var traitsOrClasses = brikz.behaviors.traitsOrClasses;
|
|
var traitsOrClasses = brikz.behaviors.traitsOrClasses;
|
|
var wireKlass = brikz.classes.wireKlass;
|
|
var wireKlass = brikz.classes.wireKlass;
|
|
- var installMethod = brikz.manipulation.installMethod;
|
|
|
|
- var installJSMethod = brikz.manipulation.installJSMethod;
|
|
|
|
var emit = brikz.event.emit;
|
|
var emit = brikz.event.emit;
|
|
|
|
|
|
var detachedRootClasses = [];
|
|
var detachedRootClasses = [];
|
|
@@ -168,10 +160,8 @@ define(function () {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- RuntimeMethodsBrik.deps = ["event", "manipulation", "dnu", "runtimeClasses"];
|
|
|
|
|
|
+ RuntimeMethodsBrik.deps = ["event", "dnu", "runtimeClasses"];
|
|
function RuntimeMethodsBrik (brikz, st) {
|
|
function RuntimeMethodsBrik (brikz, st) {
|
|
- var installMethod = brikz.manipulation.installMethod;
|
|
|
|
- var installJSMethod = brikz.manipulation.installJSMethod;
|
|
|
|
var makeDnuHandler = brikz.dnu.makeDnuHandler;
|
|
var makeDnuHandler = brikz.dnu.makeDnuHandler;
|
|
var detachedRootClasses = brikz.runtimeClasses.detachedRootClasses;
|
|
var detachedRootClasses = brikz.runtimeClasses.detachedRootClasses;
|
|
var emit = brikz.event.emit;
|
|
var emit = brikz.event.emit;
|
|
@@ -408,7 +398,6 @@ define(function () {
|
|
|
|
|
|
function configureWithRuntime (brikz) {
|
|
function configureWithRuntime (brikz) {
|
|
brikz.dnu = DNUBrik;
|
|
brikz.dnu = DNUBrik;
|
|
- brikz.manipulation = ManipulationBrik;
|
|
|
|
brikz.runtimeClasses = RuntimeClassesBrik;
|
|
brikz.runtimeClasses = RuntimeClassesBrik;
|
|
brikz.frameBinding = FrameBindingBrik;
|
|
brikz.frameBinding = FrameBindingBrik;
|
|
brikz.runtimeMethods = RuntimeMethodsBrik;
|
|
brikz.runtimeMethods = RuntimeMethodsBrik;
|