|
@@ -187,12 +187,12 @@ $globals.Behavior);
|
|
|
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
-selector: "alternateConstructorFromSelector:",
|
|
|
+selector: "alternateConstructorViaSelector:",
|
|
|
protocol: "instance creation",
|
|
|
|
|
|
args: ["aSelector"],
|
|
|
-source: "alternateConstructorFromSelector: aSelector\x0a\x09^ self\x0a\x09\x09javaScriptConstructorFor: self prototype\x0a\x09\x09initializingVia: (self >> aSelector) fn",
|
|
|
-referencedClasses: [],
|
|
|
+source: "alternateConstructorViaSelector: aSelector\x0a\x09^ BlockClosure\x0a\x09\x09javaScriptConstructorFor: self prototype\x0a\x09\x09initializingVia: (self >> aSelector) fn",
|
|
|
+referencedClasses: ["BlockClosure"],
|
|
|
|
|
|
pragmas: [],
|
|
|
messageSends: ["javaScriptConstructorFor:initializingVia:", "prototype", "fn", ">>"]
|
|
@@ -201,9 +201,9 @@ var self=this,$self=this;
|
|
|
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
|
|
|
-return $self._javaScriptConstructorFor_initializingVia_($self._prototype(),$recv($self.__gt_gt(aSelector))._fn());
|
|
|
+return $recv($globals.BlockClosure)._javaScriptConstructorFor_initializingVia_($self._prototype(),$recv($self.__gt_gt(aSelector))._fn());
|
|
|
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"alternateConstructorFromSelector:",{aSelector:aSelector})});
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"alternateConstructorViaSelector:",{aSelector:aSelector})});
|
|
|
|
|
|
}; }),
|
|
|
$globals.Behavior);
|
|
@@ -494,36 +494,6 @@ return self;
|
|
|
}; }),
|
|
|
$globals.Behavior);
|
|
|
|
|
|
-$core.addMethod(
|
|
|
-$core.method({
|
|
|
-selector: "javaScriptConstructorFor:initializingVia:",
|
|
|
-protocol: "private",
|
|
|
-
|
|
|
-args: ["aPrototype", "aMethodBlock"],
|
|
|
-source: "javaScriptConstructorFor: aPrototype initializingVia: aMethodBlock\x0a\x09<inlineJS: '\x0a\x09\x09function Ctr () {\x0a\x09\x09\x09aMethodBlock.apply(this, arguments);\x0a\x09\x09}\x0a\x09\x09Ctr.prototype = aPrototype;\x0a\x09\x09return Ctr;\x0a\x09'>",
|
|
|
-referencedClasses: [],
|
|
|
-
|
|
|
-pragmas: [["inlineJS:", ["\x0a\x09\x09function Ctr () {\x0a\x09\x09\x09aMethodBlock.apply(this, arguments);\x0a\x09\x09}\x0a\x09\x09Ctr.prototype = aPrototype;\x0a\x09\x09return Ctr;\x0a\x09"]]],
|
|
|
-messageSends: []
|
|
|
-}, function ($methodClass){ return function (aPrototype,aMethodBlock){
|
|
|
-var self=this,$self=this;
|
|
|
-
|
|
|
-return $core.withContext(function($ctx1) {
|
|
|
-
|
|
|
-
|
|
|
- function Ctr () {
|
|
|
- aMethodBlock.apply(this, arguments);
|
|
|
- }
|
|
|
- Ctr.prototype = aPrototype;
|
|
|
- return Ctr;
|
|
|
- ;
|
|
|
-return self;
|
|
|
-
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"javaScriptConstructorFor:initializingVia:",{aPrototype:aPrototype,aMethodBlock:aMethodBlock})});
|
|
|
-
|
|
|
-}; }),
|
|
|
-$globals.Behavior);
|
|
|
-
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "javascriptConstructor",
|