|
@@ -56,14 +56,16 @@ selector: "currySelf",
|
|
|
category: 'converting',
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
-return smalltalk.withContext(function($ctx1) {
return function () {
|
|
|
- var args = [ this ];
|
|
|
- args.push.apply(args, arguments);
|
|
|
- return self.apply(null, args);
|
|
|
- };
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
+ return function () {
|
|
|
+ var args = [ this ];
|
|
|
+ args.push.apply(args, arguments);
|
|
|
+ return self.apply(null, args);
|
|
|
+ }
|
|
|
+ ;
|
|
|
return self}, function($ctx1) {$ctx1.fill(self,"currySelf",{}, smalltalk.BlockClosure)})},
|
|
|
args: [],
|
|
|
-source: "currySelf\x0a\x09\x22Transforms [ :selfarg :x :y | stcode ] block\x0a which represents JS function (selfarg, x, y, ...) {jscode}\x0a into function (x, y, ...) {jscode} that takes selfarg from 'this'.\x0a IOW, it is usable as JS method and first arg takes the receiver.\x22\x0a <return function () {\x0a \x09var args = [ this ];\x0a args.push.apply(args, arguments);\x0a return self.apply(null, args);\x0a }>",
|
|
|
+source: "currySelf\x0a\x09\x22Transforms [ :selfarg :x :y | stcode ] block\x0a which represents JS function (selfarg, x, y, ...) {jscode}\x0a into function (x, y, ...) {jscode} that takes selfarg from 'this'.\x0a IOW, it is usable as JS method and first arg takes the receiver.\x22\x0a \x0a <\x0a \x09return function () {\x0a \x09\x09var args = [ this ];\x0a \x09args.push.apply(args, arguments);\x0a \x09return self.apply(null, args);\x0a \x09}\x0a\x09>",
|
|
|
messageSends: [],
|
|
|
referencedClasses: []
|
|
|
}),
|