|
@@ -1,4 +1,4 @@
|
|
-smalltalk.addPackage('Trapped-Frontend', {});
|
|
|
|
|
|
+smalltalk.addPackage('Trapped-Frontend');
|
|
smalltalk.addClass('TrappedBinder', smalltalk.Object, ['brush'], 'Trapped-Frontend');
|
|
smalltalk.addClass('TrappedBinder', smalltalk.Object, ['brush'], 'Trapped-Frontend');
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
"_brush_",
|
|
"_brush_",
|
|
@@ -8,7 +8,7 @@ category: 'accessing',
|
|
fn: function (aTagBrush){
|
|
fn: function (aTagBrush){
|
|
var self=this;
|
|
var self=this;
|
|
return smalltalk.withContext(function($ctx1) {
self["@brush"]=aTagBrush;
|
|
return smalltalk.withContext(function($ctx1) {
self["@brush"]=aTagBrush;
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"brush:",{aTagBrush:aTagBrush}, smalltalk.TrappedBinder)})},
|
|
|
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"brush:",{aTagBrush:aTagBrush},smalltalk.TrappedBinder)})},
|
|
args: ["aTagBrush"],
|
|
args: ["aTagBrush"],
|
|
source: "brush: aTagBrush\x0a\x09brush := aTagBrush",
|
|
source: "brush: aTagBrush\x0a\x09brush := aTagBrush",
|
|
messageSends: [],
|
|
messageSends: [],
|
|
@@ -24,7 +24,7 @@ category: 'action',
|
|
fn: function (path){
|
|
fn: function (path){
|
|
var self=this;
|
|
var self=this;
|
|
return smalltalk.withContext(function($ctx1) {
_st(self["@brush"])._trap_read_(path,_st(self)._showBlock());
|
|
return smalltalk.withContext(function($ctx1) {
_st(self["@brush"])._trap_read_(path,_st(self)._showBlock());
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"installFor:",{path:path}, smalltalk.TrappedBinder)})},
|
|
|
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"installFor:",{path:path},smalltalk.TrappedBinder)})},
|
|
args: ["path"],
|
|
args: ["path"],
|
|
source: "installFor: path\x0a\x09brush trap: path read: self showBlock",
|
|
source: "installFor: path\x0a\x09brush trap: path read: self showBlock",
|
|
messageSends: ["trap:read:", "showBlock"],
|
|
messageSends: ["trap:read:", "showBlock"],
|
|
@@ -40,7 +40,7 @@ category: 'converting',
|
|
fn: function (anObject){
|
|
fn: function (anObject){
|
|
var self=this;
|
|
var self=this;
|
|
return smalltalk.withContext(function($ctx1) {
return anObject.valueOf();
|
|
return smalltalk.withContext(function($ctx1) {
return anObject.valueOf();
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"prim:",{anObject:anObject}, smalltalk.TrappedBinder)})},
|
|
|
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"prim:",{anObject:anObject},smalltalk.TrappedBinder)})},
|
|
args: ["anObject"],
|
|
args: ["anObject"],
|
|
source: "prim: anObject\x0a\x09<return anObject.valueOf()>",
|
|
source: "prim: anObject\x0a\x09<return anObject.valueOf()>",
|
|
messageSends: [],
|
|
messageSends: [],
|
|
@@ -71,7 +71,7 @@ $3=_st($4)._with_($5);
|
|
return $3;
|
|
return $3;
|
|
}, function($ctx2) {$ctx2.fillBlock({model:model},$ctx1)})});
|
|
}, function($ctx2) {$ctx2.fillBlock({model:model},$ctx1)})});
|
|
return $1;
|
|
return $1;
|
|
-}, function($ctx1) {$ctx1.fill(self,"showBlock",{}, smalltalk.TrappedBinder)})},
|
|
|
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"showBlock",{},smalltalk.TrappedBinder)})},
|
|
args: [],
|
|
args: [],
|
|
source: "showBlock\x0a\x09^[ :model | brush empty; with: (model ifNil: [[]]) ]",
|
|
source: "showBlock\x0a\x09^[ :model | brush empty; with: (model ifNil: [[]]) ]",
|
|
messageSends: ["empty", "with:", "ifNil:"],
|
|
messageSends: ["empty", "with:", "ifNil:"],
|
|
@@ -97,7 +97,7 @@ return smalltalk.withContext(function($ctx4) {
return _st(_st(_st(self["@brush"]
|
|
}, function($ctx4) {$ctx4.fillBlock({},$ctx1)})}));
|
|
}, function($ctx4) {$ctx4.fillBlock({},$ctx1)})}));
|
|
}, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
|
|
}, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
|
|
}, function($ctx2) {$ctx2.fillBlock({snap:snap},$ctx1)})}));
|
|
}, function($ctx2) {$ctx2.fillBlock({snap:snap},$ctx1)})}));
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"installFor:",{path:path}, smalltalk.TrappedCheckedBinder)})},
|
|
|
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"installFor:",{path:path},smalltalk.TrappedCheckedBinder)})},
|
|
args: ["path"],
|
|
args: ["path"],
|
|
source: "installFor: path\x0a\x09super installFor: path.\x0a path trapDescend: [ :snap |\x0a\x09 brush onChange: [ snap modify: [\x0a (brush asJQuery attr: 'checked') notNil\x0a ]]\x0a ]",
|
|
source: "installFor: path\x0a\x09super installFor: path.\x0a path trapDescend: [ :snap |\x0a\x09 brush onChange: [ snap modify: [\x0a (brush asJQuery attr: 'checked') notNil\x0a ]]\x0a ]",
|
|
messageSends: ["installFor:", "trapDescend:", "onChange:", "modify:", "notNil", "attr:", "asJQuery"],
|
|
messageSends: ["installFor:", "trapDescend:", "onChange:", "modify:", "notNil", "attr:", "asJQuery"],
|
|
@@ -121,7 +121,7 @@ return smalltalk.withContext(function($ctx3) {
return false;
|
|
}, function($ctx3) {$ctx3.fillBlock({},$ctx1)})})));
|
|
}, function($ctx3) {$ctx3.fillBlock({},$ctx1)})})));
|
|
}, function($ctx2) {$ctx2.fillBlock({model:model},$ctx1)})});
|
|
}, function($ctx2) {$ctx2.fillBlock({model:model},$ctx1)})});
|
|
return $1;
|
|
return $1;
|
|
-}, function($ctx1) {$ctx1.fill(self,"showBlock",{}, smalltalk.TrappedCheckedBinder)})},
|
|
|
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"showBlock",{},smalltalk.TrappedCheckedBinder)})},
|
|
args: [],
|
|
args: [],
|
|
source: "showBlock\x0a\x09^[ :model | brush asJQuery attr: 'checked' put: (model ifNotNil: [ self prim: model ] ifNil: [ false ]) ]",
|
|
source: "showBlock\x0a\x09^[ :model | brush asJQuery attr: 'checked' put: (model ifNotNil: [ self prim: model ] ifNil: [ false ]) ]",
|
|
messageSends: ["attr:put:", "ifNotNil:ifNil:", "prim:", "asJQuery"],
|
|
messageSends: ["attr:put:", "ifNotNil:ifNil:", "prim:", "asJQuery"],
|
|
@@ -147,7 +147,7 @@ return smalltalk.withContext(function($ctx4) {
return _st(_st(self["@brush"])._a
|
|
}, function($ctx4) {$ctx4.fillBlock({},$ctx1)})}));
|
|
}, function($ctx4) {$ctx4.fillBlock({},$ctx1)})}));
|
|
}, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
|
|
}, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
|
|
}, function($ctx2) {$ctx2.fillBlock({snap:snap},$ctx1)})}));
|
|
}, function($ctx2) {$ctx2.fillBlock({snap:snap},$ctx1)})}));
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"installFor:",{path:path}, smalltalk.TrappedValBinder)})},
|
|
|
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"installFor:",{path:path},smalltalk.TrappedValBinder)})},
|
|
args: ["path"],
|
|
args: ["path"],
|
|
source: "installFor: path\x0a\x09super installFor: path.\x0a path trapDescend: [ :snap |\x0a\x09 brush onChange: [ snap modify: [\x0a brush asJQuery val\x0a ]]\x0a ]",
|
|
source: "installFor: path\x0a\x09super installFor: path.\x0a path trapDescend: [ :snap |\x0a\x09 brush onChange: [ snap modify: [\x0a brush asJQuery val\x0a ]]\x0a ]",
|
|
messageSends: ["installFor:", "trapDescend:", "onChange:", "modify:", "val", "asJQuery"],
|
|
messageSends: ["installFor:", "trapDescend:", "onChange:", "modify:", "val", "asJQuery"],
|
|
@@ -172,7 +172,7 @@ return smalltalk.withContext(function($ctx4) {
}, function($ctx4) {$ctx4.fillBlo
|
|
}, function($ctx3) {$ctx3.fillBlock({},$ctx1)})})));
|
|
}, function($ctx3) {$ctx3.fillBlock({},$ctx1)})})));
|
|
}, function($ctx2) {$ctx2.fillBlock({model:model},$ctx1)})});
|
|
}, function($ctx2) {$ctx2.fillBlock({model:model},$ctx1)})});
|
|
return $1;
|
|
return $1;
|
|
-}, function($ctx1) {$ctx1.fill(self,"showBlock",{}, smalltalk.TrappedValBinder)})},
|
|
|
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"showBlock",{},smalltalk.TrappedValBinder)})},
|
|
args: [],
|
|
args: [],
|
|
source: "showBlock\x0a\x09^[ :model | brush asJQuery val: (model ifNotNil: [self prim: model] ifNil: [[]]) ]",
|
|
source: "showBlock\x0a\x09^[ :model | brush asJQuery val: (model ifNotNil: [self prim: model] ifNil: [[]]) ]",
|
|
messageSends: ["val:", "ifNotNil:ifNil:", "prim:", "asJQuery"],
|
|
messageSends: ["val:", "ifNotNil:ifNil:", "prim:", "asJQuery"],
|
|
@@ -192,7 +192,7 @@ category: 'rendering',
|
|
fn: function (html){
|
|
fn: function (html){
|
|
var self=this;
|
|
var self=this;
|
|
return smalltalk.withContext(function($ctx1) {
_st(_st(html)._root())._trap_([]);
|
|
return smalltalk.withContext(function($ctx1) {
_st(_st(html)._root())._trap_([]);
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"renderOn:",{html:html}, smalltalk.TrappedDumbView)})},
|
|
|
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"renderOn:",{html:html},smalltalk.TrappedDumbView)})},
|
|
args: ["html"],
|
|
args: ["html"],
|
|
source: "renderOn: html\x0a\x09html root trap: #()",
|
|
source: "renderOn: html\x0a\x09html root trap: #()",
|
|
messageSends: ["trap:", "root"],
|
|
messageSends: ["trap:", "root"],
|
|
@@ -213,7 +213,7 @@ var self=this;
|
|
return smalltalk.withContext(function($ctx1) {
var $1;
|
|
return smalltalk.withContext(function($ctx1) {
var $1;
|
|
$1=_st(self)._subclassResponsibility();
|
|
$1=_st(self)._subclassResponsibility();
|
|
return $1;
|
|
return $1;
|
|
-}, function($ctx1) {$ctx1.fill(self,"start:",{args:args}, smalltalk.TrappedSingleton)})},
|
|
|
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"start:",{args:args},smalltalk.TrappedSingleton)})},
|
|
args: ["args"],
|
|
args: ["args"],
|
|
source: "start: args\x0a\x09^ self subclassResponsibility",
|
|
source: "start: args\x0a\x09^ self subclassResponsibility",
|
|
messageSends: ["subclassResponsibility"],
|
|
messageSends: ["subclassResponsibility"],
|
|
@@ -239,7 +239,7 @@ $1=self["@current"];
|
|
$1=$2;
|
|
$1=$2;
|
|
};
|
|
};
|
|
return $1;
|
|
return $1;
|
|
-}, function($ctx1) {$ctx1.fill(self,"current",{}, smalltalk.TrappedSingleton.klass)})},
|
|
|
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"current",{},smalltalk.TrappedSingleton.klass)})},
|
|
args: [],
|
|
args: [],
|
|
source: "current\x0a\x09^ current ifNil: [ current := self new ]",
|
|
source: "current\x0a\x09^ current ifNil: [ current := self new ]",
|
|
messageSends: ["ifNil:", "new"],
|
|
messageSends: ["ifNil:", "new"],
|
|
@@ -255,7 +255,7 @@ category: 'action',
|
|
fn: function (args){
|
|
fn: function (args){
|
|
var self=this;
|
|
var self=this;
|
|
return smalltalk.withContext(function($ctx1) {
_st(_st(self)._current())._start_(args);
|
|
return smalltalk.withContext(function($ctx1) {
_st(_st(self)._current())._start_(args);
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"start:",{args:args}, smalltalk.TrappedSingleton.klass)})},
|
|
|
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"start:",{args:args},smalltalk.TrappedSingleton.klass)})},
|
|
args: ["args"],
|
|
args: ["args"],
|
|
source: "start: args\x0a\x09self current start: args",
|
|
source: "start: args\x0a\x09self current start: args",
|
|
messageSends: ["start:", "current"],
|
|
messageSends: ["start:", "current"],
|
|
@@ -273,38 +273,36 @@ category: 'binders',
|
|
fn: function (aTagBrush){
|
|
fn: function (aTagBrush){
|
|
var self=this;
|
|
var self=this;
|
|
var binder,tag;
|
|
var binder,tag;
|
|
-return smalltalk.withContext(function($ctx1) {
var $1,$3,$4,$2,$5,$7,$8,$6;
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
var $1,$2,$3,$4,$6,$7,$5;
|
|
tag=_st(_st(aTagBrush)._element())._nodeName();
|
|
tag=_st(_st(aTagBrush)._element())._nodeName();
|
|
$1=_st(tag).__eq("INPUT");
|
|
$1=_st(tag).__eq("INPUT");
|
|
-$2=(function(){
|
|
|
|
-var type;
|
|
|
|
-return smalltalk.withContext(function($ctx2) {
type=_st(_st(aTagBrush)._asJQuery())._attr_("type");
|
|
|
|
|
|
+if(smalltalk.assert($1)){
|
|
|
|
+type=_st(_st(aTagBrush)._asJQuery())._attr_("type");
|
|
type;
|
|
type;
|
|
-$3=_st(type).__eq("checkbox");
|
|
|
|
-if(smalltalk.assert($3)){
|
|
|
|
|
|
+$2=_st(type).__eq("checkbox");
|
|
|
|
+if(smalltalk.assert($2)){
|
|
binder=_st((smalltalk.TrappedCheckedBinder || TrappedCheckedBinder))._new();
|
|
binder=_st((smalltalk.TrappedCheckedBinder || TrappedCheckedBinder))._new();
|
|
binder;
|
|
binder;
|
|
};
|
|
};
|
|
-$4=_st(type).__eq("text");
|
|
|
|
-if(smalltalk.assert($4)){
|
|
|
|
|
|
+$3=_st(type).__eq("text");
|
|
|
|
+if(smalltalk.assert($3)){
|
|
binder=_st((smalltalk.TrappedValBinder || TrappedValBinder))._new();
|
|
binder=_st((smalltalk.TrappedValBinder || TrappedValBinder))._new();
|
|
-return binder;
|
|
|
|
|
|
+binder;
|
|
};
|
|
};
|
|
-}, function($ctx2) {$ctx2.fillBlock({type:type},$ctx1)})});
|
|
|
|
-_st($1)._ifTrue_($2);
|
|
|
|
-$5=binder;
|
|
|
|
-if(($receiver = $5) == nil || $receiver == undefined){
|
|
|
|
|
|
+};
|
|
|
|
+$4=binder;
|
|
|
|
+if(($receiver = $4) == nil || $receiver == undefined){
|
|
binder=_st((smalltalk.TrappedBinder || TrappedBinder))._new();
|
|
binder=_st((smalltalk.TrappedBinder || TrappedBinder))._new();
|
|
binder;
|
|
binder;
|
|
} else {
|
|
} else {
|
|
-$5;
|
|
|
|
|
|
+$4;
|
|
};
|
|
};
|
|
-$7=binder;
|
|
|
|
-_st($7)._brush_(aTagBrush);
|
|
|
|
-$8=_st($7)._yourself();
|
|
|
|
-$6=$8;
|
|
|
|
-return $6;
|
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"binder:",{aTagBrush:aTagBrush,binder:binder,tag:tag}, smalltalk.Trapped)})},
|
|
|
|
|
|
+$6=binder;
|
|
|
|
+_st($6)._brush_(aTagBrush);
|
|
|
|
+$7=_st($6)._yourself();
|
|
|
|
+$5=$7;
|
|
|
|
+return $5;
|
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"binder:",{aTagBrush:aTagBrush,binder:binder,tag:tag},smalltalk.Trapped)})},
|
|
args: ["aTagBrush"],
|
|
args: ["aTagBrush"],
|
|
source: "binder: aTagBrush\x0a \x22Prototype; will select based on tag etc.\x22\x0a | binder tag |\x0a tag := aTagBrush element nodeName.\x0a tag = 'INPUT' ifTrue: [\x0a | type |\x0a type := aTagBrush asJQuery attr: 'type'.\x0a type = 'checkbox' ifTrue: [ binder := TrappedCheckedBinder new ].\x0a type = 'text' ifTrue: [ binder := TrappedValBinder new ]\x0a ].\x0a binder ifNil: [ binder := TrappedBinder new ].\x0a ^ binder brush: aTagBrush; yourself",
|
|
source: "binder: aTagBrush\x0a \x22Prototype; will select based on tag etc.\x22\x0a | binder tag |\x0a tag := aTagBrush element nodeName.\x0a tag = 'INPUT' ifTrue: [\x0a | type |\x0a type := aTagBrush asJQuery attr: 'type'.\x0a type = 'checkbox' ifTrue: [ binder := TrappedCheckedBinder new ].\x0a type = 'text' ifTrue: [ binder := TrappedValBinder new ]\x0a ].\x0a binder ifNil: [ binder := TrappedBinder new ].\x0a ^ binder brush: aTagBrush; yourself",
|
|
messageSends: ["nodeName", "element", "ifTrue:", "attr:", "asJQuery", "new", "=", "ifNil:", "brush:", "yourself"],
|
|
messageSends: ["nodeName", "element", "ifTrue:", "attr:", "asJQuery", "new", "=", "ifNil:", "brush:", "yourself"],
|
|
@@ -322,7 +320,7 @@ var self=this;
|
|
return smalltalk.withContext(function($ctx1) {
var $1;
|
|
return smalltalk.withContext(function($ctx1) {
var $1;
|
|
$1=_st(self["@registry"])._at_(aString);
|
|
$1=_st(self["@registry"])._at_(aString);
|
|
return $1;
|
|
return $1;
|
|
-}, function($ctx1) {$ctx1.fill(self,"byName:",{aString:aString}, smalltalk.Trapped)})},
|
|
|
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"byName:",{aString:aString},smalltalk.Trapped)})},
|
|
args: ["aString"],
|
|
args: ["aString"],
|
|
source: "byName: aString\x0a\x09^ registry at: aString",
|
|
source: "byName: aString\x0a\x09^ registry at: aString",
|
|
messageSends: ["at:"],
|
|
messageSends: ["at:"],
|
|
@@ -347,7 +345,7 @@ model=_st(self)._byName_(_st(path)._first());
|
|
model;
|
|
model;
|
|
return _st(aBlock)._value_(_st(_st((smalltalk.TrappedSnapshot || TrappedSnapshot))._new())._path_model_(path,model));
|
|
return _st(aBlock)._value_(_st(_st((smalltalk.TrappedSnapshot || TrappedSnapshot))._new())._path_model_(path,model));
|
|
}, function($ctx2) {$ctx2.fillBlock({path:path,model:model},$ctx1)})}));
|
|
}, function($ctx2) {$ctx2.fillBlock({path:path,model:model},$ctx1)})}));
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"descend:snapshotDo:",{anArray:anArray,aBlock:aBlock,tpsc:tpsc}, smalltalk.Trapped)})},
|
|
|
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"descend:snapshotDo:",{anArray:anArray,aBlock:aBlock,tpsc:tpsc},smalltalk.Trapped)})},
|
|
args: ["anArray", "aBlock"],
|
|
args: ["anArray", "aBlock"],
|
|
source: "descend: anArray snapshotDo: aBlock\x0a\x09| tpsc |\x0a tpsc := TrappedPathStack current.\x0a tpsc append: anArray do: [\x0a | path model |\x0a path := tpsc elements copy.\x0a \x09 model := self byName: path first.\x0a aBlock value: (TrappedSnapshot new path: path model: model)\x0a ]",
|
|
source: "descend: anArray snapshotDo: aBlock\x0a\x09| tpsc |\x0a tpsc := TrappedPathStack current.\x0a tpsc append: anArray do: [\x0a | path model |\x0a path := tpsc elements copy.\x0a \x09 model := self byName: path first.\x0a aBlock value: (TrappedSnapshot new path: path model: model)\x0a ]",
|
|
messageSends: ["current", "append:do:", "copy", "elements", "byName:", "first", "value:", "path:model:", "new"],
|
|
messageSends: ["current", "append:do:", "copy", "elements", "byName:", "first", "value:", "path:model:", "new"],
|
|
@@ -364,7 +362,7 @@ fn: function (){
|
|
var self=this;
|
|
var self=this;
|
|
return smalltalk.withContext(function($ctx1) {
smalltalk.TrappedSingleton.fn.prototype._initialize.apply(_st(self), []);
|
|
return smalltalk.withContext(function($ctx1) {
smalltalk.TrappedSingleton.fn.prototype._initialize.apply(_st(self), []);
|
|
self["@registry"]=smalltalk.HashedCollection._fromPairs_([]);
|
|
self["@registry"]=smalltalk.HashedCollection._fromPairs_([]);
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"initialize",{}, smalltalk.Trapped)})},
|
|
|
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.Trapped)})},
|
|
args: [],
|
|
args: [],
|
|
source: "initialize\x0a\x09super initialize.\x0a\x09registry := #{}.",
|
|
source: "initialize\x0a\x09super initialize.\x0a\x09registry := #{}.",
|
|
messageSends: ["initialize"],
|
|
messageSends: ["initialize"],
|
|
@@ -380,7 +378,7 @@ category: 'accessing',
|
|
fn: function (aListKeyedEntity){
|
|
fn: function (aListKeyedEntity){
|
|
var self=this;
|
|
var self=this;
|
|
return smalltalk.withContext(function($ctx1) {
_st(self)._register_name_(aListKeyedEntity,_st(_st(aListKeyedEntity)._class())._name());
|
|
return smalltalk.withContext(function($ctx1) {
_st(self)._register_name_(aListKeyedEntity,_st(_st(aListKeyedEntity)._class())._name());
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"register:",{aListKeyedEntity:aListKeyedEntity}, smalltalk.Trapped)})},
|
|
|
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"register:",{aListKeyedEntity:aListKeyedEntity},smalltalk.Trapped)})},
|
|
args: ["aListKeyedEntity"],
|
|
args: ["aListKeyedEntity"],
|
|
source: "register: aListKeyedEntity\x0a\x09self register: aListKeyedEntity name: aListKeyedEntity class name",
|
|
source: "register: aListKeyedEntity\x0a\x09self register: aListKeyedEntity name: aListKeyedEntity class name",
|
|
messageSends: ["register:name:", "name", "class"],
|
|
messageSends: ["register:name:", "name", "class"],
|
|
@@ -396,7 +394,7 @@ category: 'accessing',
|
|
fn: function (aListKeyedEntity,aString){
|
|
fn: function (aListKeyedEntity,aString){
|
|
var self=this;
|
|
var self=this;
|
|
return smalltalk.withContext(function($ctx1) {
_st(self["@registry"])._at_put_(aString,aListKeyedEntity);
|
|
return smalltalk.withContext(function($ctx1) {
_st(self["@registry"])._at_put_(aString,aListKeyedEntity);
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"register:name:",{aListKeyedEntity:aListKeyedEntity,aString:aString}, smalltalk.Trapped)})},
|
|
|
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"register:name:",{aListKeyedEntity:aListKeyedEntity,aString:aString},smalltalk.Trapped)})},
|
|
args: ["aListKeyedEntity", "aString"],
|
|
args: ["aListKeyedEntity", "aString"],
|
|
source: "register: aListKeyedEntity name: aString\x0a\x09registry at: aString put: aListKeyedEntity",
|
|
source: "register: aListKeyedEntity name: aString\x0a\x09registry at: aString put: aListKeyedEntity",
|
|
messageSends: ["at:put:"],
|
|
messageSends: ["at:put:"],
|
|
@@ -411,12 +409,11 @@ selector: "start:",
|
|
category: 'action',
|
|
category: 'action',
|
|
fn: function (args){
|
|
fn: function (args){
|
|
var self=this;
|
|
var self=this;
|
|
-return smalltalk.withContext(function($ctx1) {
var $1,$3,$2;
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
var $1;
|
|
_st(args)._do_((function(each){
|
|
_st(args)._do_((function(each){
|
|
return smalltalk.withContext(function($ctx2) {
return _st(self)._register_(each);
|
|
return smalltalk.withContext(function($ctx2) {
return _st(self)._register_(each);
|
|
}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
|
|
}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
|
|
-$1=_st("[data-trap]")._asJQuery();
|
|
|
|
-$2=(function(index,elem){
|
|
|
|
|
|
+_st(_st("[data-trap]")._asJQuery())._each_((function(index,elem){
|
|
var trap,jq,viewName,modelName,tokens,path;
|
|
var trap,jq,viewName,modelName,tokens,path;
|
|
return smalltalk.withContext(function($ctx2) {
jq=_st(elem)._asJQuery();
|
|
return smalltalk.withContext(function($ctx2) {
jq=_st(elem)._asJQuery();
|
|
jq;
|
|
jq;
|
|
@@ -424,8 +421,8 @@ trap=_st(jq)._attr_("data-trap");
|
|
trap;
|
|
trap;
|
|
tokens=_st(trap)._tokenize_(":");
|
|
tokens=_st(trap)._tokenize_(":");
|
|
tokens;
|
|
tokens;
|
|
-$3=_st(_st(tokens)._size()).__eq((1));
|
|
|
|
-if(smalltalk.assert($3)){
|
|
|
|
|
|
+$1=_st(_st(tokens)._size()).__eq((1));
|
|
|
|
+if(smalltalk.assert($1)){
|
|
tokens=_st(["TrappedDumbView"]).__comma(tokens);
|
|
tokens=_st(["TrappedDumbView"]).__comma(tokens);
|
|
tokens;
|
|
tokens;
|
|
};
|
|
};
|
|
@@ -442,9 +439,8 @@ path;
|
|
return _st(_st([modelName]).__comma(path))._trapDescend_((function(){
|
|
return _st(_st([modelName]).__comma(path))._trapDescend_((function(){
|
|
return smalltalk.withContext(function($ctx3) {
return _st(_st(_st(_st((smalltalk.Smalltalk || Smalltalk))._current())._at_(viewName))._new())._appendToJQuery_(jq);
|
|
return smalltalk.withContext(function($ctx3) {
return _st(_st(_st(_st((smalltalk.Smalltalk || Smalltalk))._current())._at_(viewName))._new())._appendToJQuery_(jq);
|
|
}, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
|
|
}, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
|
|
-}, function($ctx2) {$ctx2.fillBlock({index:index,elem:elem,trap:trap,jq:jq,viewName:viewName,modelName:modelName,tokens:tokens,path:path},$ctx1)})});
|
|
|
|
-_st($1)._each_($2);
|
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"start:",{args:args}, smalltalk.Trapped)})},
|
|
|
|
|
|
+}, function($ctx2) {$ctx2.fillBlock({index:index,elem:elem,trap:trap,jq:jq,viewName:viewName,modelName:modelName,tokens:tokens,path:path},$ctx1)})}));
|
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"start:",{args:args},smalltalk.Trapped)})},
|
|
args: ["args"],
|
|
args: ["args"],
|
|
source: "start: args\x0a args do: [ :each | self register: each ].\x0a\x09'[data-trap]' asJQuery each: [ :index :elem |\x0a \x09| trap jq viewName modelName tokens path |\x0a jq := elem asJQuery.\x0a trap := jq attr: 'data-trap'.\x0a tokens := trap tokenize: ':'.\x0a tokens size = 1 ifTrue: [ tokens := { 'TrappedDumbView' }, tokens ].\x0a viewName := tokens first.\x0a tokens := (tokens second tokenize: ' ') select: [ :each | each notEmpty ].\x0a modelName := tokens first.\x0a path := Trapped parse: tokens allButFirst.\x0a { modelName }, path trapDescend: [(Smalltalk current at: viewName) new appendToJQuery: jq].\x0a ]",
|
|
source: "start: args\x0a args do: [ :each | self register: each ].\x0a\x09'[data-trap]' asJQuery each: [ :index :elem |\x0a \x09| trap jq viewName modelName tokens path |\x0a jq := elem asJQuery.\x0a trap := jq attr: 'data-trap'.\x0a tokens := trap tokenize: ':'.\x0a tokens size = 1 ifTrue: [ tokens := { 'TrappedDumbView' }, tokens ].\x0a viewName := tokens first.\x0a tokens := (tokens second tokenize: ' ') select: [ :each | each notEmpty ].\x0a modelName := tokens first.\x0a path := Trapped parse: tokens allButFirst.\x0a { modelName }, path trapDescend: [(Smalltalk current at: viewName) new appendToJQuery: jq].\x0a ]",
|
|
messageSends: ["do:", "register:", "each:", "asJQuery", "attr:", "tokenize:", "ifTrue:", ",", "=", "size", "first", "select:", "notEmpty", "second", "parse:", "allButFirst", "trapDescend:", "appendToJQuery:", "new", "at:", "current"],
|
|
messageSends: ["do:", "register:", "each:", "asJQuery", "attr:", "tokenize:", "ifTrue:", ",", "=", "size", "first", "select:", "notEmpty", "second", "parse:", "allButFirst", "trapDescend:", "appendToJQuery:", "new", "at:", "current"],
|
|
@@ -469,7 +465,7 @@ return smalltalk.withContext(function($ctx3) {
return _st(_st(html)._perform_(aS
|
|
return _st(_st(_st(envjq)._children())._detach())._insertBefore_(endjq);
|
|
return _st(_st(_st(envjq)._children())._detach())._insertBefore_(endjq);
|
|
}, function($ctx2) {$ctx2.fillBlock({item:item,i:i},$ctx1)})}));
|
|
}, function($ctx2) {$ctx2.fillBlock({item:item,i:i},$ctx1)})}));
|
|
_st(envjq)._remove();
|
|
_st(envjq)._remove();
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"envelope:loop:before:tag:do:",{envelope:envelope,model:model,endjq:endjq,aSymbol:aSymbol,aBlock:aBlock,envjq:envjq}, smalltalk.Trapped.klass)})},
|
|
|
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"envelope:loop:before:tag:do:",{envelope:envelope,model:model,endjq:endjq,aSymbol:aSymbol,aBlock:aBlock,envjq:envjq},smalltalk.Trapped.klass)})},
|
|
args: ["envelope", "model", "endjq", "aSymbol", "aBlock"],
|
|
args: ["envelope", "model", "endjq", "aSymbol", "aBlock"],
|
|
source: "envelope: envelope loop: model before: endjq tag: aSymbol do: aBlock\x0a \x09| envjq |\x0a envjq := envelope asJQuery.\x0a model withIndexDo: [ :item :i |\x0a envelope with: [ :html | (html perform: aSymbol) trap: {i} read: aBlock ].\x0a envjq children detach insertBefore: endjq.\x0a ].\x0a envjq remove\x0a",
|
|
source: "envelope: envelope loop: model before: endjq tag: aSymbol do: aBlock\x0a \x09| envjq |\x0a envjq := envelope asJQuery.\x0a model withIndexDo: [ :item :i |\x0a envelope with: [ :html | (html perform: aSymbol) trap: {i} read: aBlock ].\x0a envjq children detach insertBefore: endjq.\x0a ].\x0a envjq remove\x0a",
|
|
messageSends: ["asJQuery", "withIndexDo:", "with:", "trap:read:", "perform:", "insertBefore:", "detach", "children", "remove"],
|
|
messageSends: ["asJQuery", "withIndexDo:", "with:", "trap:read:", "perform:", "insertBefore:", "detach", "children", "remove"],
|
|
@@ -494,7 +490,7 @@ return $1;
|
|
return _st(self)._envelope_loop_before_tag_do_(_st(html)._div(),model,_st(end)._asJQuery(),aSymbol,aBlock);
|
|
return _st(self)._envelope_loop_before_tag_do_(_st(html)._div(),model,_st(end)._asJQuery(),aSymbol,aBlock);
|
|
};
|
|
};
|
|
}, function($ctx2) {$ctx2.fillBlock({html:html},$ctx1)})}));
|
|
}, function($ctx2) {$ctx2.fillBlock({html:html},$ctx1)})}));
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"loop:between:and:tag:do:",{model:model,start:start,end:end,aSymbol:aSymbol,aBlock:aBlock}, smalltalk.Trapped.klass)})},
|
|
|
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"loop:between:and:tag:do:",{model:model,start:start,end:end,aSymbol:aSymbol,aBlock:aBlock},smalltalk.Trapped.klass)})},
|
|
args: ["model", "start", "end", "aSymbol", "aBlock"],
|
|
args: ["model", "start", "end", "aSymbol", "aBlock"],
|
|
source: "loop: model between: start and: end tag: aSymbol do: aBlock\x0a (start asJQuery nextUntil: end element) remove.\x0a start with: [ :html | model ifNotNil: [\x0a \x09self envelope: html div loop: model before: end asJQuery tag: aSymbol do: aBlock\x0a\x09]]\x0a",
|
|
source: "loop: model between: start and: end tag: aSymbol do: aBlock\x0a (start asJQuery nextUntil: end element) remove.\x0a start with: [ :html | model ifNotNil: [\x0a \x09self envelope: html div loop: model before: end asJQuery tag: aSymbol do: aBlock\x0a\x09]]\x0a",
|
|
messageSends: ["remove", "nextUntil:", "element", "asJQuery", "with:", "ifNotNil:", "envelope:loop:before:tag:do:", "div"],
|
|
messageSends: ["remove", "nextUntil:", "element", "asJQuery", "with:", "ifNotNil:", "envelope:loop:before:tag:do:", "div"],
|
|
@@ -509,28 +505,24 @@ selector: "parse:",
|
|
category: 'accessing',
|
|
category: 'accessing',
|
|
fn: function (anArray){
|
|
fn: function (anArray){
|
|
var self=this;
|
|
var self=this;
|
|
-return smalltalk.withContext(function($ctx1) {
var $2,$4,$5,$7,$6,$3,$1;
|
|
|
|
-$2=anArray;
|
|
|
|
-$3=(function(each){
|
|
|
|
|
|
+return smalltalk.withContext(function($ctx1) {
var $2,$3,$1;
|
|
|
|
+$1=_st(anArray)._collect_((function(each){
|
|
var asNum;
|
|
var asNum;
|
|
return smalltalk.withContext(function($ctx2) {
_st(asNum).__eq(_st(each)._asNumber());
|
|
return smalltalk.withContext(function($ctx2) {
_st(asNum).__eq(_st(each)._asNumber());
|
|
-$4=_st(asNum).__eq(asNum);
|
|
|
|
-$5=(function(){
|
|
|
|
-return smalltalk.withContext(function($ctx3) {
return asNum;
|
|
|
|
-}, function($ctx3) {$ctx3.fillBlock({},$ctx1)})});
|
|
|
|
-$6=(function(){
|
|
|
|
-return smalltalk.withContext(function($ctx3) {
$7=_st(_st(each)._first()).__eq("#");
|
|
|
|
-if(smalltalk.assert($7)){
|
|
|
|
|
|
+$2=_st(asNum).__eq(asNum);
|
|
|
|
+if(smalltalk.assert($2)){
|
|
|
|
+return asNum;
|
|
|
|
+} else {
|
|
|
|
+$3=_st(_st(each)._first()).__eq("#");
|
|
|
|
+if(smalltalk.assert($3)){
|
|
return _st(_st(each)._allButFirst())._asSymbol();
|
|
return _st(_st(each)._allButFirst())._asSymbol();
|
|
} else {
|
|
} else {
|
|
return each;
|
|
return each;
|
|
};
|
|
};
|
|
-}, function($ctx3) {$ctx3.fillBlock({},$ctx1)})});
|
|
|
|
-return _st($4)._ifTrue_ifFalse_($5,$6);
|
|
|
|
-}, function($ctx2) {$ctx2.fillBlock({each:each,asNum:asNum},$ctx1)})});
|
|
|
|
-$1=_st($2)._collect_($3);
|
|
|
|
|
|
+};
|
|
|
|
+}, function($ctx2) {$ctx2.fillBlock({each:each,asNum:asNum},$ctx1)})}));
|
|
return $1;
|
|
return $1;
|
|
-}, function($ctx1) {$ctx1.fill(self,"parse:",{anArray:anArray}, smalltalk.Trapped.klass)})},
|
|
|
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"parse:",{anArray:anArray},smalltalk.Trapped.klass)})},
|
|
args: ["anArray"],
|
|
args: ["anArray"],
|
|
source: "parse: anArray\x0a\x09^anArray collect: [ :each |\x0a \x09| asNum |\x0a \x09asNum = each asNumber.\x0a asNum = asNum ifTrue: [ asNum ] ifFalse: [\x0a\x09\x09\x09each first = '#' ifTrue: [ each allButFirst asSymbol ] ifFalse: [ each ]]]",
|
|
source: "parse: anArray\x0a\x09^anArray collect: [ :each |\x0a \x09| asNum |\x0a \x09asNum = each asNumber.\x0a asNum = asNum ifTrue: [ asNum ] ifFalse: [\x0a\x09\x09\x09each first = '#' ifTrue: [ each allButFirst asSymbol ] ifFalse: [ each ]]]",
|
|
messageSends: ["collect:", "=", "asNumber", "ifTrue:ifFalse:", "asSymbol", "allButFirst", "first"],
|
|
messageSends: ["collect:", "=", "asNumber", "ifTrue:ifFalse:", "asSymbol", "allButFirst", "first"],
|
|
@@ -548,7 +540,7 @@ category: 'descending',
|
|
fn: function (anArray,aBlock){
|
|
fn: function (anArray,aBlock){
|
|
var self=this;
|
|
var self=this;
|
|
return smalltalk.withContext(function($ctx1) {
_st(self)._with_do_(_st(self["@elements"]).__comma(anArray),aBlock);
|
|
return smalltalk.withContext(function($ctx1) {
_st(self)._with_do_(_st(self["@elements"]).__comma(anArray),aBlock);
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"append:do:",{anArray:anArray,aBlock:aBlock}, smalltalk.TrappedPathStack)})},
|
|
|
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"append:do:",{anArray:anArray,aBlock:aBlock},smalltalk.TrappedPathStack)})},
|
|
args: ["anArray", "aBlock"],
|
|
args: ["anArray", "aBlock"],
|
|
source: "append: anArray do: aBlock\x0a self with: elements, anArray do: aBlock",
|
|
source: "append: anArray do: aBlock\x0a self with: elements, anArray do: aBlock",
|
|
messageSends: ["with:do:", ","],
|
|
messageSends: ["with:do:", ","],
|
|
@@ -566,7 +558,7 @@ var self=this;
|
|
return smalltalk.withContext(function($ctx1) {
var $1;
|
|
return smalltalk.withContext(function($ctx1) {
var $1;
|
|
$1=self["@elements"];
|
|
$1=self["@elements"];
|
|
return $1;
|
|
return $1;
|
|
-}, function($ctx1) {$ctx1.fill(self,"elements",{}, smalltalk.TrappedPathStack)})},
|
|
|
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"elements",{},smalltalk.TrappedPathStack)})},
|
|
args: [],
|
|
args: [],
|
|
source: "elements\x0a\x09^elements",
|
|
source: "elements\x0a\x09^elements",
|
|
messageSends: [],
|
|
messageSends: [],
|
|
@@ -583,7 +575,7 @@ fn: function (){
|
|
var self=this;
|
|
var self=this;
|
|
return smalltalk.withContext(function($ctx1) {
smalltalk.TrappedSingleton.fn.prototype._initialize.apply(_st(self), []);
|
|
return smalltalk.withContext(function($ctx1) {
smalltalk.TrappedSingleton.fn.prototype._initialize.apply(_st(self), []);
|
|
self["@elements"]=[];
|
|
self["@elements"]=[];
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"initialize",{}, smalltalk.TrappedPathStack)})},
|
|
|
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.TrappedPathStack)})},
|
|
args: [],
|
|
args: [],
|
|
source: "initialize\x0a super initialize.\x0a\x09elements := #().",
|
|
source: "initialize\x0a super initialize.\x0a\x09elements := #().",
|
|
messageSends: ["initialize"],
|
|
messageSends: ["initialize"],
|
|
@@ -608,7 +600,7 @@ return _st(aBlock)._value();
|
|
return smalltalk.withContext(function($ctx2) {
self["@elements"]=old;
|
|
return smalltalk.withContext(function($ctx2) {
self["@elements"]=old;
|
|
return self["@elements"];
|
|
return self["@elements"];
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"with:do:",{anArray:anArray,aBlock:aBlock,old:old}, smalltalk.TrappedPathStack)})},
|
|
|
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"with:do:",{anArray:anArray,aBlock:aBlock,old:old},smalltalk.TrappedPathStack)})},
|
|
args: ["anArray", "aBlock"],
|
|
args: ["anArray", "aBlock"],
|
|
source: "with: anArray do: aBlock\x0a\x09| old |\x0a old := elements.\x0a [ elements := anArray.\x0a\x09aBlock value ] ensure: [ elements := old ]",
|
|
source: "with: anArray do: aBlock\x0a\x09| old |\x0a old := elements.\x0a [ elements := anArray.\x0a\x09aBlock value ] ensure: [ elements := old ]",
|
|
messageSends: ["ensure:", "value"],
|
|
messageSends: ["ensure:", "value"],
|
|
@@ -629,7 +621,7 @@ var self=this;
|
|
return smalltalk.withContext(function($ctx1) {
_st(_st((smalltalk.TrappedPathStack || TrappedPathStack))._current())._with_do_(self["@path"],(function(){
|
|
return smalltalk.withContext(function($ctx1) {
_st(_st((smalltalk.TrappedPathStack || TrappedPathStack))._current())._with_do_(self["@path"],(function(){
|
|
return smalltalk.withContext(function($ctx2) {
return _st(aBlock)._value_(self["@model"]);
|
|
return smalltalk.withContext(function($ctx2) {
return _st(aBlock)._value_(self["@model"]);
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"do:",{aBlock:aBlock}, smalltalk.TrappedSnapshot)})},
|
|
|
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"do:",{aBlock:aBlock},smalltalk.TrappedSnapshot)})},
|
|
args: ["aBlock"],
|
|
args: ["aBlock"],
|
|
source: "do: aBlock\x0a\x09TrappedPathStack current with: path do: [ aBlock value: model ]",
|
|
source: "do: aBlock\x0a\x09TrappedPathStack current with: path do: [ aBlock value: model ]",
|
|
messageSends: ["with:do:", "value:", "current"],
|
|
messageSends: ["with:do:", "value:", "current"],
|
|
@@ -647,7 +639,7 @@ var self=this;
|
|
return smalltalk.withContext(function($ctx1) {
var $1;
|
|
return smalltalk.withContext(function($ctx1) {
var $1;
|
|
$1=self["@model"];
|
|
$1=self["@model"];
|
|
return $1;
|
|
return $1;
|
|
-}, function($ctx1) {$ctx1.fill(self,"model",{}, smalltalk.TrappedSnapshot)})},
|
|
|
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"model",{},smalltalk.TrappedSnapshot)})},
|
|
args: [],
|
|
args: [],
|
|
source: "model\x0a\x09^model",
|
|
source: "model\x0a\x09^model",
|
|
messageSends: [],
|
|
messageSends: [],
|
|
@@ -663,7 +655,7 @@ category: 'action',
|
|
fn: function (aBlock){
|
|
fn: function (aBlock){
|
|
var self=this;
|
|
var self=this;
|
|
return smalltalk.withContext(function($ctx1) {
_st(_st(self)._model())._modify_do_(_st(_st(self)._path())._allButFirst(),aBlock);
|
|
return smalltalk.withContext(function($ctx1) {
_st(_st(self)._model())._modify_do_(_st(_st(self)._path())._allButFirst(),aBlock);
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"modify:",{aBlock:aBlock}, smalltalk.TrappedSnapshot)})},
|
|
|
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"modify:",{aBlock:aBlock},smalltalk.TrappedSnapshot)})},
|
|
args: ["aBlock"],
|
|
args: ["aBlock"],
|
|
source: "modify: aBlock\x0a\x09self model modify: self path allButFirst do: aBlock",
|
|
source: "modify: aBlock\x0a\x09self model modify: self path allButFirst do: aBlock",
|
|
messageSends: ["modify:do:", "allButFirst", "path", "model"],
|
|
messageSends: ["modify:do:", "allButFirst", "path", "model"],
|
|
@@ -681,7 +673,7 @@ var self=this;
|
|
return smalltalk.withContext(function($ctx1) {
var $1;
|
|
return smalltalk.withContext(function($ctx1) {
var $1;
|
|
$1=self["@path"];
|
|
$1=self["@path"];
|
|
return $1;
|
|
return $1;
|
|
-}, function($ctx1) {$ctx1.fill(self,"path",{}, smalltalk.TrappedSnapshot)})},
|
|
|
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"path",{},smalltalk.TrappedSnapshot)})},
|
|
args: [],
|
|
args: [],
|
|
source: "path\x0a\x09^path",
|
|
source: "path\x0a\x09^path",
|
|
messageSends: [],
|
|
messageSends: [],
|
|
@@ -698,7 +690,7 @@ fn: function (anArray,aTrappedMW){
|
|
var self=this;
|
|
var self=this;
|
|
return smalltalk.withContext(function($ctx1) {
self["@path"]=anArray;
|
|
return smalltalk.withContext(function($ctx1) {
self["@path"]=anArray;
|
|
self["@model"]=aTrappedMW;
|
|
self["@model"]=aTrappedMW;
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"path:model:",{anArray:anArray,aTrappedMW:aTrappedMW}, smalltalk.TrappedSnapshot)})},
|
|
|
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"path:model:",{anArray:anArray,aTrappedMW:aTrappedMW},smalltalk.TrappedSnapshot)})},
|
|
args: ["anArray", "aTrappedMW"],
|
|
args: ["anArray", "aTrappedMW"],
|
|
source: "path: anArray model: aTrappedMW\x0a\x09path := anArray.\x0a model := aTrappedMW",
|
|
source: "path: anArray model: aTrappedMW\x0a\x09path := anArray.\x0a model := aTrappedMW",
|
|
messageSends: [],
|
|
messageSends: [],
|