| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- smalltalk.addPackage('Trapped-Demo', {});
- smalltalk.addClass('App', smalltalk.TrappedFly, [], 'Trapped-Demo');
- smalltalk.addMethod(
- "_initialize",
- smalltalk.method({
- selector: "initialize",
- fn: function (){
- var self=this;
- smalltalk.send(self,"_payload_",[smalltalk.HashedCollection._fromPairs_([smalltalk.send("items","__minus_gt",[["hello", "world"]])])]);
- return self}
- }),
- smalltalk.App);
- smalltalk.addClass('AppView', smalltalk.Widget, [], 'Trapped-Demo');
- smalltalk.addMethod(
- "_renderOn_",
- smalltalk.method({
- selector: "renderOn:",
- fn: function (html){
- var self=this;
- smalltalk.send(html,"_h2_",["To-Do List"]);
- smalltalk.send(smalltalk.send(html,"_p",[]),"_trapShow_",[["items"]]);
- return self}
- }),
- smalltalk.AppView);
- smalltalk.addClass('Name', smalltalk.TrappedFly, [], 'Trapped-Demo');
- smalltalk.addMethod(
- "_initialize",
- smalltalk.method({
- selector: "initialize",
- fn: function (){
- var self=this;
- smalltalk.send(self,"_payload_",["To-Do List"]);
- return self}
- }),
- smalltalk.Name);
- smalltalk.addClass('NameView', smalltalk.Widget, [], 'Trapped-Demo');
- smalltalk.addMethod(
- "_renderOn_",
- smalltalk.method({
- selector: "renderOn:",
- fn: function (html){
- var self=this;
- smalltalk.send(smalltalk.send(html,"_root",[]),"_trapShow_",[[]]);
- return self}
- }),
- smalltalk.NameView);
|