|
@@ -2231,6 +2231,33 @@ referencedClasses: []
|
|
|
}),
|
|
|
smalltalk.JSObjectProxy);
|
|
|
|
|
|
+smalltalk.addMethod(
|
|
|
+"_value",
|
|
|
+smalltalk.method({
|
|
|
+selector: "value",
|
|
|
+category: 'accessing',
|
|
|
+fn: function (){
|
|
|
+var self=this;
|
|
|
+var attribute;
|
|
|
+return smalltalk.withContext(function($ctx1) {
var $1,$2;
|
|
|
+attribute=_st(self)._at_("value");
|
|
|
+$1=attribute;
|
|
|
+if(($receiver = $1) == nil || $receiver == undefined){
|
|
|
+attribute=smalltalk.Object.fn.prototype._value.apply(_st(self), []);
|
|
|
+attribute;
|
|
|
+} else {
|
|
|
+$1;
|
|
|
+};
|
|
|
+$2=attribute;
|
|
|
+return $2;
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"value",{attribute:attribute}, smalltalk.JSObjectProxy)})},
|
|
|
+args: [],
|
|
|
+source: "value\x0a\x09\x22if attribute 'value' exists on the JS object return it,\x0a otherwise return the result of Object>>value.\x22\x0a\x09| attribute |\x0a\x09attribute := self at: 'value'.\x0a\x09attribute ifNil: [attribute := super value].\x0a ^attribute",
|
|
|
+messageSends: ["at:", "ifNil:", "value"],
|
|
|
+referencedClasses: []
|
|
|
+}),
|
|
|
+smalltalk.JSObjectProxy);
|
|
|
+
|
|
|
|
|
|
smalltalk.addMethod(
|
|
|
"_on_",
|