smalltalk.addPackage('Trapped-Demo', {}); smalltalk.addClass('App', smalltalk.TrappedFly, [], 'Trapped-Demo'); 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.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);