Canvas.js 108 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921
  1. define("amber_core/Canvas", ["amber_vm/smalltalk", "amber_vm/nil", "amber_vm/_st", "amber_vm/globals", "amber_core/Kernel-Objects", "amber_core/Kernel-Infrastructure", "amber_core/Kernel-Methods", "amber_core/Kernel-Collections"], function(smalltalk,nil,_st, globals){
  2. smalltalk.addPackage('Canvas');
  3. smalltalk.packages["Canvas"].transport = {"type":"amd","amdNamespace":"amber_core"};
  4. smalltalk.addClass('BrowserInterface', globals.Object, [], 'Canvas');
  5. globals.BrowserInterface.comment="I am platform interface class that tries to use window and jQuery; that is, one for browser environment.\x0a\x0a## API\x0a\x0a self isAvailable. \x22true if window and jQuery exist\x22.\x0a\x0a self alert: 'Hey, there is a problem'.\x0a self confirm: 'Affirmative?'.\x0a self prompt: 'Your name:'.\x0a\x0a self ajax: #{\x0a 'url' -> '/patch.js'. 'type' -> 'GET'. dataType->'script'\x0a }.";
  6. smalltalk.addMethod(
  7. smalltalk.method({
  8. selector: "ajax:",
  9. protocol: 'actions',
  10. fn: function (anObject){
  11. var self=this;
  12. return smalltalk.withContext(function($ctx1) {
  13. var $1;
  14. $1=_st(jQuery)._ajax_(anObject);
  15. return $1;
  16. }, function($ctx1) {$ctx1.fill(self,"ajax:",{anObject:anObject},globals.BrowserInterface)})},
  17. args: ["anObject"],
  18. source: "ajax: anObject\x0a\x09^ jQuery ajax: anObject",
  19. messageSends: ["ajax:"],
  20. referencedClasses: []
  21. }),
  22. globals.BrowserInterface);
  23. smalltalk.addMethod(
  24. smalltalk.method({
  25. selector: "alert:",
  26. protocol: 'actions',
  27. fn: function (aString){
  28. var self=this;
  29. return smalltalk.withContext(function($ctx1) {
  30. var $1;
  31. $1=_st(window)._alert_(aString);
  32. return $1;
  33. }, function($ctx1) {$ctx1.fill(self,"alert:",{aString:aString},globals.BrowserInterface)})},
  34. args: ["aString"],
  35. source: "alert: aString\x0a\x09^ window alert: aString",
  36. messageSends: ["alert:"],
  37. referencedClasses: []
  38. }),
  39. globals.BrowserInterface);
  40. smalltalk.addMethod(
  41. smalltalk.method({
  42. selector: "confirm:",
  43. protocol: 'actions',
  44. fn: function (aString){
  45. var self=this;
  46. return smalltalk.withContext(function($ctx1) {
  47. var $1;
  48. $1=_st(window)._confirm_(aString);
  49. return $1;
  50. }, function($ctx1) {$ctx1.fill(self,"confirm:",{aString:aString},globals.BrowserInterface)})},
  51. args: ["aString"],
  52. source: "confirm: aString\x0a\x09^ window confirm: aString",
  53. messageSends: ["confirm:"],
  54. referencedClasses: []
  55. }),
  56. globals.BrowserInterface);
  57. smalltalk.addMethod(
  58. smalltalk.method({
  59. selector: "isAvailable",
  60. protocol: 'testing',
  61. fn: function (){
  62. var self=this;
  63. return smalltalk.withContext(function($ctx1) {
  64. return typeof window !== "undefined" && typeof jQuery !== "undefined";
  65. return self}, function($ctx1) {$ctx1.fill(self,"isAvailable",{},globals.BrowserInterface)})},
  66. args: [],
  67. source: "isAvailable\x0a<return typeof window !== \x22undefined\x22 && typeof jQuery !== \x22undefined\x22>",
  68. messageSends: [],
  69. referencedClasses: []
  70. }),
  71. globals.BrowserInterface);
  72. smalltalk.addMethod(
  73. smalltalk.method({
  74. selector: "prompt:",
  75. protocol: 'actions',
  76. fn: function (aString){
  77. var self=this;
  78. return smalltalk.withContext(function($ctx1) {
  79. var $1;
  80. $1=_st(window)._prompt_(aString);
  81. return $1;
  82. }, function($ctx1) {$ctx1.fill(self,"prompt:",{aString:aString},globals.BrowserInterface)})},
  83. args: ["aString"],
  84. source: "prompt: aString\x0a\x09^ window prompt: aString",
  85. messageSends: ["prompt:"],
  86. referencedClasses: []
  87. }),
  88. globals.BrowserInterface);
  89. smalltalk.addClass('HTMLCanvas', globals.Object, ['root'], 'Canvas');
  90. globals.HTMLCanvas.comment="I am a canvas for building HTML.\x0a\x0aI provide the `#tag:` method to create a `TagBrush` (wrapping a DOM element) and convenience methods in the `tags` protocol.\x0a\x0a## API\x0a\x0aMy instances are used as the argument of the `#renderOn:` method of `Widget` objects.\x0a\x0aThe `#with:` method is used to compose HTML, nesting tags. `#with:` can take a `TagBrush`, a `String`, a `BlockClosure` or a `Widget` as argument.\x0a\x0a## Usage example:\x0a\x0a aCanvas a \x0a with: [ aCanvas span with: 'click me' ];\x0a onClick: [ window alert: 'clicked!' ]";
  91. smalltalk.addMethod(
  92. smalltalk.method({
  93. selector: "a",
  94. protocol: 'tags',
  95. fn: function (){
  96. var self=this;
  97. return smalltalk.withContext(function($ctx1) {
  98. var $1;
  99. $1=self._tag_("a");
  100. return $1;
  101. }, function($ctx1) {$ctx1.fill(self,"a",{},globals.HTMLCanvas)})},
  102. args: [],
  103. source: "a\x0a\x09^ self tag: 'a'",
  104. messageSends: ["tag:"],
  105. referencedClasses: []
  106. }),
  107. globals.HTMLCanvas);
  108. smalltalk.addMethod(
  109. smalltalk.method({
  110. selector: "abbr",
  111. protocol: 'tags',
  112. fn: function (){
  113. var self=this;
  114. return smalltalk.withContext(function($ctx1) {
  115. var $1;
  116. $1=self._tag_("abbr");
  117. return $1;
  118. }, function($ctx1) {$ctx1.fill(self,"abbr",{},globals.HTMLCanvas)})},
  119. args: [],
  120. source: "abbr\x0a\x09^ self tag: 'abbr'",
  121. messageSends: ["tag:"],
  122. referencedClasses: []
  123. }),
  124. globals.HTMLCanvas);
  125. smalltalk.addMethod(
  126. smalltalk.method({
  127. selector: "address",
  128. protocol: 'tags',
  129. fn: function (){
  130. var self=this;
  131. return smalltalk.withContext(function($ctx1) {
  132. var $1;
  133. $1=self._tag_("address");
  134. return $1;
  135. }, function($ctx1) {$ctx1.fill(self,"address",{},globals.HTMLCanvas)})},
  136. args: [],
  137. source: "address\x0a\x09^ self tag: 'address'",
  138. messageSends: ["tag:"],
  139. referencedClasses: []
  140. }),
  141. globals.HTMLCanvas);
  142. smalltalk.addMethod(
  143. smalltalk.method({
  144. selector: "area",
  145. protocol: 'tags',
  146. fn: function (){
  147. var self=this;
  148. return smalltalk.withContext(function($ctx1) {
  149. var $1;
  150. $1=self._tag_("area");
  151. return $1;
  152. }, function($ctx1) {$ctx1.fill(self,"area",{},globals.HTMLCanvas)})},
  153. args: [],
  154. source: "area\x0a\x09^ self tag: 'area'",
  155. messageSends: ["tag:"],
  156. referencedClasses: []
  157. }),
  158. globals.HTMLCanvas);
  159. smalltalk.addMethod(
  160. smalltalk.method({
  161. selector: "article",
  162. protocol: 'tags',
  163. fn: function (){
  164. var self=this;
  165. return smalltalk.withContext(function($ctx1) {
  166. var $1;
  167. $1=self._tag_("article");
  168. return $1;
  169. }, function($ctx1) {$ctx1.fill(self,"article",{},globals.HTMLCanvas)})},
  170. args: [],
  171. source: "article\x0a\x09^ self tag: 'article'",
  172. messageSends: ["tag:"],
  173. referencedClasses: []
  174. }),
  175. globals.HTMLCanvas);
  176. smalltalk.addMethod(
  177. smalltalk.method({
  178. selector: "aside",
  179. protocol: 'tags',
  180. fn: function (){
  181. var self=this;
  182. return smalltalk.withContext(function($ctx1) {
  183. var $1;
  184. $1=self._tag_("aside");
  185. return $1;
  186. }, function($ctx1) {$ctx1.fill(self,"aside",{},globals.HTMLCanvas)})},
  187. args: [],
  188. source: "aside\x0a\x09^ self tag: 'aside'",
  189. messageSends: ["tag:"],
  190. referencedClasses: []
  191. }),
  192. globals.HTMLCanvas);
  193. smalltalk.addMethod(
  194. smalltalk.method({
  195. selector: "audio",
  196. protocol: 'tags',
  197. fn: function (){
  198. var self=this;
  199. return smalltalk.withContext(function($ctx1) {
  200. var $1;
  201. $1=self._tag_("audio");
  202. return $1;
  203. }, function($ctx1) {$ctx1.fill(self,"audio",{},globals.HTMLCanvas)})},
  204. args: [],
  205. source: "audio\x0a\x09^ self tag: 'audio'",
  206. messageSends: ["tag:"],
  207. referencedClasses: []
  208. }),
  209. globals.HTMLCanvas);
  210. smalltalk.addMethod(
  211. smalltalk.method({
  212. selector: "base",
  213. protocol: 'tags',
  214. fn: function (){
  215. var self=this;
  216. return smalltalk.withContext(function($ctx1) {
  217. var $1;
  218. $1=self._tag_("base");
  219. return $1;
  220. }, function($ctx1) {$ctx1.fill(self,"base",{},globals.HTMLCanvas)})},
  221. args: [],
  222. source: "base\x0a\x09^ self tag: 'base'",
  223. messageSends: ["tag:"],
  224. referencedClasses: []
  225. }),
  226. globals.HTMLCanvas);
  227. smalltalk.addMethod(
  228. smalltalk.method({
  229. selector: "blockquote",
  230. protocol: 'tags',
  231. fn: function (){
  232. var self=this;
  233. return smalltalk.withContext(function($ctx1) {
  234. var $1;
  235. $1=self._tag_("blockquote");
  236. return $1;
  237. }, function($ctx1) {$ctx1.fill(self,"blockquote",{},globals.HTMLCanvas)})},
  238. args: [],
  239. source: "blockquote\x0a\x09^ self tag: 'blockquote'",
  240. messageSends: ["tag:"],
  241. referencedClasses: []
  242. }),
  243. globals.HTMLCanvas);
  244. smalltalk.addMethod(
  245. smalltalk.method({
  246. selector: "body",
  247. protocol: 'tags',
  248. fn: function (){
  249. var self=this;
  250. return smalltalk.withContext(function($ctx1) {
  251. var $1;
  252. $1=self._tag_("body");
  253. return $1;
  254. }, function($ctx1) {$ctx1.fill(self,"body",{},globals.HTMLCanvas)})},
  255. args: [],
  256. source: "body\x0a\x09^ self tag: 'body'",
  257. messageSends: ["tag:"],
  258. referencedClasses: []
  259. }),
  260. globals.HTMLCanvas);
  261. smalltalk.addMethod(
  262. smalltalk.method({
  263. selector: "br",
  264. protocol: 'tags',
  265. fn: function (){
  266. var self=this;
  267. return smalltalk.withContext(function($ctx1) {
  268. var $1;
  269. $1=self._tag_("br");
  270. return $1;
  271. }, function($ctx1) {$ctx1.fill(self,"br",{},globals.HTMLCanvas)})},
  272. args: [],
  273. source: "br\x0a\x09^ self tag: 'br'",
  274. messageSends: ["tag:"],
  275. referencedClasses: []
  276. }),
  277. globals.HTMLCanvas);
  278. smalltalk.addMethod(
  279. smalltalk.method({
  280. selector: "button",
  281. protocol: 'tags',
  282. fn: function (){
  283. var self=this;
  284. return smalltalk.withContext(function($ctx1) {
  285. var $1;
  286. $1=self._tag_("button");
  287. return $1;
  288. }, function($ctx1) {$ctx1.fill(self,"button",{},globals.HTMLCanvas)})},
  289. args: [],
  290. source: "button\x0a\x09^ self tag: 'button'",
  291. messageSends: ["tag:"],
  292. referencedClasses: []
  293. }),
  294. globals.HTMLCanvas);
  295. smalltalk.addMethod(
  296. smalltalk.method({
  297. selector: "canvas",
  298. protocol: 'tags',
  299. fn: function (){
  300. var self=this;
  301. return smalltalk.withContext(function($ctx1) {
  302. var $1;
  303. $1=self._tag_("canvas");
  304. return $1;
  305. }, function($ctx1) {$ctx1.fill(self,"canvas",{},globals.HTMLCanvas)})},
  306. args: [],
  307. source: "canvas\x0a\x09^ self tag: 'canvas'",
  308. messageSends: ["tag:"],
  309. referencedClasses: []
  310. }),
  311. globals.HTMLCanvas);
  312. smalltalk.addMethod(
  313. smalltalk.method({
  314. selector: "caption",
  315. protocol: 'tags',
  316. fn: function (){
  317. var self=this;
  318. return smalltalk.withContext(function($ctx1) {
  319. var $1;
  320. $1=self._tag_("caption");
  321. return $1;
  322. }, function($ctx1) {$ctx1.fill(self,"caption",{},globals.HTMLCanvas)})},
  323. args: [],
  324. source: "caption\x0a\x09^ self tag: 'caption'",
  325. messageSends: ["tag:"],
  326. referencedClasses: []
  327. }),
  328. globals.HTMLCanvas);
  329. smalltalk.addMethod(
  330. smalltalk.method({
  331. selector: "cite",
  332. protocol: 'tags',
  333. fn: function (){
  334. var self=this;
  335. return smalltalk.withContext(function($ctx1) {
  336. var $1;
  337. $1=self._tag_("cite");
  338. return $1;
  339. }, function($ctx1) {$ctx1.fill(self,"cite",{},globals.HTMLCanvas)})},
  340. args: [],
  341. source: "cite\x0a\x09^ self tag: 'cite'",
  342. messageSends: ["tag:"],
  343. referencedClasses: []
  344. }),
  345. globals.HTMLCanvas);
  346. smalltalk.addMethod(
  347. smalltalk.method({
  348. selector: "code",
  349. protocol: 'tags',
  350. fn: function (){
  351. var self=this;
  352. return smalltalk.withContext(function($ctx1) {
  353. var $1;
  354. $1=self._tag_("code");
  355. return $1;
  356. }, function($ctx1) {$ctx1.fill(self,"code",{},globals.HTMLCanvas)})},
  357. args: [],
  358. source: "code\x0a\x09^ self tag: 'code'",
  359. messageSends: ["tag:"],
  360. referencedClasses: []
  361. }),
  362. globals.HTMLCanvas);
  363. smalltalk.addMethod(
  364. smalltalk.method({
  365. selector: "col",
  366. protocol: 'tags',
  367. fn: function (){
  368. var self=this;
  369. return smalltalk.withContext(function($ctx1) {
  370. var $1;
  371. $1=self._tag_("col");
  372. return $1;
  373. }, function($ctx1) {$ctx1.fill(self,"col",{},globals.HTMLCanvas)})},
  374. args: [],
  375. source: "col\x0a\x09^ self tag: 'col'",
  376. messageSends: ["tag:"],
  377. referencedClasses: []
  378. }),
  379. globals.HTMLCanvas);
  380. smalltalk.addMethod(
  381. smalltalk.method({
  382. selector: "colgroup",
  383. protocol: 'tags',
  384. fn: function (){
  385. var self=this;
  386. return smalltalk.withContext(function($ctx1) {
  387. var $1;
  388. $1=self._tag_("colgroup");
  389. return $1;
  390. }, function($ctx1) {$ctx1.fill(self,"colgroup",{},globals.HTMLCanvas)})},
  391. args: [],
  392. source: "colgroup\x0a\x09^ self tag: 'colgroup'",
  393. messageSends: ["tag:"],
  394. referencedClasses: []
  395. }),
  396. globals.HTMLCanvas);
  397. smalltalk.addMethod(
  398. smalltalk.method({
  399. selector: "command",
  400. protocol: 'tags',
  401. fn: function (){
  402. var self=this;
  403. return smalltalk.withContext(function($ctx1) {
  404. var $1;
  405. $1=self._tag_("command");
  406. return $1;
  407. }, function($ctx1) {$ctx1.fill(self,"command",{},globals.HTMLCanvas)})},
  408. args: [],
  409. source: "command\x0a\x09^ self tag: 'command'",
  410. messageSends: ["tag:"],
  411. referencedClasses: []
  412. }),
  413. globals.HTMLCanvas);
  414. smalltalk.addMethod(
  415. smalltalk.method({
  416. selector: "datalist",
  417. protocol: 'tags',
  418. fn: function (){
  419. var self=this;
  420. return smalltalk.withContext(function($ctx1) {
  421. var $1;
  422. $1=self._tag_("datalist");
  423. return $1;
  424. }, function($ctx1) {$ctx1.fill(self,"datalist",{},globals.HTMLCanvas)})},
  425. args: [],
  426. source: "datalist\x0a\x09^ self tag: 'datalist'",
  427. messageSends: ["tag:"],
  428. referencedClasses: []
  429. }),
  430. globals.HTMLCanvas);
  431. smalltalk.addMethod(
  432. smalltalk.method({
  433. selector: "dd",
  434. protocol: 'tags',
  435. fn: function (){
  436. var self=this;
  437. return smalltalk.withContext(function($ctx1) {
  438. var $1;
  439. $1=self._tag_("dd");
  440. return $1;
  441. }, function($ctx1) {$ctx1.fill(self,"dd",{},globals.HTMLCanvas)})},
  442. args: [],
  443. source: "dd\x0a\x09^ self tag: 'dd'",
  444. messageSends: ["tag:"],
  445. referencedClasses: []
  446. }),
  447. globals.HTMLCanvas);
  448. smalltalk.addMethod(
  449. smalltalk.method({
  450. selector: "del",
  451. protocol: 'tags',
  452. fn: function (){
  453. var self=this;
  454. return smalltalk.withContext(function($ctx1) {
  455. var $1;
  456. $1=self._tag_("del");
  457. return $1;
  458. }, function($ctx1) {$ctx1.fill(self,"del",{},globals.HTMLCanvas)})},
  459. args: [],
  460. source: "del\x0a\x09^ self tag: 'del'",
  461. messageSends: ["tag:"],
  462. referencedClasses: []
  463. }),
  464. globals.HTMLCanvas);
  465. smalltalk.addMethod(
  466. smalltalk.method({
  467. selector: "details",
  468. protocol: 'tags',
  469. fn: function (){
  470. var self=this;
  471. return smalltalk.withContext(function($ctx1) {
  472. var $1;
  473. $1=self._tag_("details");
  474. return $1;
  475. }, function($ctx1) {$ctx1.fill(self,"details",{},globals.HTMLCanvas)})},
  476. args: [],
  477. source: "details\x0a\x09^ self tag: 'details'",
  478. messageSends: ["tag:"],
  479. referencedClasses: []
  480. }),
  481. globals.HTMLCanvas);
  482. smalltalk.addMethod(
  483. smalltalk.method({
  484. selector: "div",
  485. protocol: 'tags',
  486. fn: function (){
  487. var self=this;
  488. return smalltalk.withContext(function($ctx1) {
  489. var $1;
  490. $1=self._tag_("div");
  491. return $1;
  492. }, function($ctx1) {$ctx1.fill(self,"div",{},globals.HTMLCanvas)})},
  493. args: [],
  494. source: "div\x0a\x09^ self tag: 'div'",
  495. messageSends: ["tag:"],
  496. referencedClasses: []
  497. }),
  498. globals.HTMLCanvas);
  499. smalltalk.addMethod(
  500. smalltalk.method({
  501. selector: "div:",
  502. protocol: 'tags',
  503. fn: function (aBlock){
  504. var self=this;
  505. return smalltalk.withContext(function($ctx1) {
  506. var $1;
  507. $1=_st(self._div())._with_(aBlock);
  508. return $1;
  509. }, function($ctx1) {$ctx1.fill(self,"div:",{aBlock:aBlock},globals.HTMLCanvas)})},
  510. args: ["aBlock"],
  511. source: "div: aBlock\x0a\x09^ self div with: aBlock",
  512. messageSends: ["with:", "div"],
  513. referencedClasses: []
  514. }),
  515. globals.HTMLCanvas);
  516. smalltalk.addMethod(
  517. smalltalk.method({
  518. selector: "dl",
  519. protocol: 'tags',
  520. fn: function (){
  521. var self=this;
  522. return smalltalk.withContext(function($ctx1) {
  523. var $1;
  524. $1=self._tag_("dl");
  525. return $1;
  526. }, function($ctx1) {$ctx1.fill(self,"dl",{},globals.HTMLCanvas)})},
  527. args: [],
  528. source: "dl\x0a\x09^ self tag: 'dl'",
  529. messageSends: ["tag:"],
  530. referencedClasses: []
  531. }),
  532. globals.HTMLCanvas);
  533. smalltalk.addMethod(
  534. smalltalk.method({
  535. selector: "dt",
  536. protocol: 'tags',
  537. fn: function (){
  538. var self=this;
  539. return smalltalk.withContext(function($ctx1) {
  540. var $1;
  541. $1=self._tag_("dt");
  542. return $1;
  543. }, function($ctx1) {$ctx1.fill(self,"dt",{},globals.HTMLCanvas)})},
  544. args: [],
  545. source: "dt\x0a\x09^ self tag: 'dt'",
  546. messageSends: ["tag:"],
  547. referencedClasses: []
  548. }),
  549. globals.HTMLCanvas);
  550. smalltalk.addMethod(
  551. smalltalk.method({
  552. selector: "em",
  553. protocol: 'tags',
  554. fn: function (){
  555. var self=this;
  556. return smalltalk.withContext(function($ctx1) {
  557. var $1;
  558. $1=self._tag_("em");
  559. return $1;
  560. }, function($ctx1) {$ctx1.fill(self,"em",{},globals.HTMLCanvas)})},
  561. args: [],
  562. source: "em\x0a\x09^ self tag: 'em'",
  563. messageSends: ["tag:"],
  564. referencedClasses: []
  565. }),
  566. globals.HTMLCanvas);
  567. smalltalk.addMethod(
  568. smalltalk.method({
  569. selector: "embed",
  570. protocol: 'tags',
  571. fn: function (){
  572. var self=this;
  573. return smalltalk.withContext(function($ctx1) {
  574. var $1;
  575. $1=self._tag_("embed");
  576. return $1;
  577. }, function($ctx1) {$ctx1.fill(self,"embed",{},globals.HTMLCanvas)})},
  578. args: [],
  579. source: "embed\x0a\x09^ self tag: 'embed'",
  580. messageSends: ["tag:"],
  581. referencedClasses: []
  582. }),
  583. globals.HTMLCanvas);
  584. smalltalk.addMethod(
  585. smalltalk.method({
  586. selector: "entity:",
  587. protocol: 'adding',
  588. fn: function (aString){
  589. var self=this;
  590. var result;
  591. return smalltalk.withContext(function($ctx1) {
  592. var $2,$4,$3,$1,$5;
  593. $2="<span />"._asJQuery();
  594. $4="&".__comma(aString);
  595. $ctx1.sendIdx[","]=2;
  596. $3=_st($4).__comma(";");
  597. $ctx1.sendIdx[","]=1;
  598. $1=_st($2)._html_($3);
  599. result=_st($1)._text();
  600. $5=_st(_st(result)._size()).__eq((1));
  601. if(! smalltalk.assert($5)){
  602. self._error_("Not an HTML entity: ".__comma(aString));
  603. };
  604. self._with_(result);
  605. return self}, function($ctx1) {$ctx1.fill(self,"entity:",{aString:aString,result:result},globals.HTMLCanvas)})},
  606. args: ["aString"],
  607. source: "entity: aString\x0a\x09\x22Adds a character representing html entity, eg.\x0a\x09html entity: 'copy'\x0a\x09adds a copyright sign.\x0a\x09If a name does not represent valid HTML entity, error is raised.\x22\x0a\x09| result |\x0a\x09result := ('<span />' asJQuery html: '&', aString, ';') text.\x0a\x09result size = 1 ifFalse: [ self error: 'Not an HTML entity: ', aString ].\x0a\x09self with: result",
  608. messageSends: ["text", "html:", "asJQuery", ",", "ifFalse:", "=", "size", "error:", "with:"],
  609. referencedClasses: []
  610. }),
  611. globals.HTMLCanvas);
  612. smalltalk.addMethod(
  613. smalltalk.method({
  614. selector: "fieldset",
  615. protocol: 'tags',
  616. fn: function (){
  617. var self=this;
  618. return smalltalk.withContext(function($ctx1) {
  619. var $1;
  620. $1=self._tag_("fieldset");
  621. return $1;
  622. }, function($ctx1) {$ctx1.fill(self,"fieldset",{},globals.HTMLCanvas)})},
  623. args: [],
  624. source: "fieldset\x0a\x09^ self tag: 'fieldset'",
  625. messageSends: ["tag:"],
  626. referencedClasses: []
  627. }),
  628. globals.HTMLCanvas);
  629. smalltalk.addMethod(
  630. smalltalk.method({
  631. selector: "figcaption",
  632. protocol: 'tags',
  633. fn: function (){
  634. var self=this;
  635. return smalltalk.withContext(function($ctx1) {
  636. var $1;
  637. $1=self._tag_("figcaption");
  638. return $1;
  639. }, function($ctx1) {$ctx1.fill(self,"figcaption",{},globals.HTMLCanvas)})},
  640. args: [],
  641. source: "figcaption\x0a\x09^ self tag: 'figcaption'",
  642. messageSends: ["tag:"],
  643. referencedClasses: []
  644. }),
  645. globals.HTMLCanvas);
  646. smalltalk.addMethod(
  647. smalltalk.method({
  648. selector: "figure",
  649. protocol: 'tags',
  650. fn: function (){
  651. var self=this;
  652. return smalltalk.withContext(function($ctx1) {
  653. var $1;
  654. $1=self._tag_("figure");
  655. return $1;
  656. }, function($ctx1) {$ctx1.fill(self,"figure",{},globals.HTMLCanvas)})},
  657. args: [],
  658. source: "figure\x0a\x09^ self tag: 'figure'",
  659. messageSends: ["tag:"],
  660. referencedClasses: []
  661. }),
  662. globals.HTMLCanvas);
  663. smalltalk.addMethod(
  664. smalltalk.method({
  665. selector: "footer",
  666. protocol: 'tags',
  667. fn: function (){
  668. var self=this;
  669. return smalltalk.withContext(function($ctx1) {
  670. var $1;
  671. $1=self._tag_("footer");
  672. return $1;
  673. }, function($ctx1) {$ctx1.fill(self,"footer",{},globals.HTMLCanvas)})},
  674. args: [],
  675. source: "footer\x0a\x09^ self tag: 'footer'",
  676. messageSends: ["tag:"],
  677. referencedClasses: []
  678. }),
  679. globals.HTMLCanvas);
  680. smalltalk.addMethod(
  681. smalltalk.method({
  682. selector: "form",
  683. protocol: 'tags',
  684. fn: function (){
  685. var self=this;
  686. return smalltalk.withContext(function($ctx1) {
  687. var $1;
  688. $1=self._tag_("form");
  689. return $1;
  690. }, function($ctx1) {$ctx1.fill(self,"form",{},globals.HTMLCanvas)})},
  691. args: [],
  692. source: "form\x0a\x09^ self tag: 'form'",
  693. messageSends: ["tag:"],
  694. referencedClasses: []
  695. }),
  696. globals.HTMLCanvas);
  697. smalltalk.addMethod(
  698. smalltalk.method({
  699. selector: "h1",
  700. protocol: 'tags',
  701. fn: function (){
  702. var self=this;
  703. return smalltalk.withContext(function($ctx1) {
  704. var $1;
  705. $1=self._tag_("h1");
  706. return $1;
  707. }, function($ctx1) {$ctx1.fill(self,"h1",{},globals.HTMLCanvas)})},
  708. args: [],
  709. source: "h1\x0a\x09^ self tag: 'h1'",
  710. messageSends: ["tag:"],
  711. referencedClasses: []
  712. }),
  713. globals.HTMLCanvas);
  714. smalltalk.addMethod(
  715. smalltalk.method({
  716. selector: "h1:",
  717. protocol: 'tags',
  718. fn: function (anObject){
  719. var self=this;
  720. return smalltalk.withContext(function($ctx1) {
  721. var $1;
  722. $1=_st(self._h1())._with_(anObject);
  723. return $1;
  724. }, function($ctx1) {$ctx1.fill(self,"h1:",{anObject:anObject},globals.HTMLCanvas)})},
  725. args: ["anObject"],
  726. source: "h1: anObject\x0a\x09^ self h1 with: anObject",
  727. messageSends: ["with:", "h1"],
  728. referencedClasses: []
  729. }),
  730. globals.HTMLCanvas);
  731. smalltalk.addMethod(
  732. smalltalk.method({
  733. selector: "h2",
  734. protocol: 'tags',
  735. fn: function (){
  736. var self=this;
  737. return smalltalk.withContext(function($ctx1) {
  738. var $1;
  739. $1=self._tag_("h2");
  740. return $1;
  741. }, function($ctx1) {$ctx1.fill(self,"h2",{},globals.HTMLCanvas)})},
  742. args: [],
  743. source: "h2\x0a\x09^ self tag: 'h2'",
  744. messageSends: ["tag:"],
  745. referencedClasses: []
  746. }),
  747. globals.HTMLCanvas);
  748. smalltalk.addMethod(
  749. smalltalk.method({
  750. selector: "h2:",
  751. protocol: 'tags',
  752. fn: function (anObject){
  753. var self=this;
  754. return smalltalk.withContext(function($ctx1) {
  755. var $1;
  756. $1=_st(self._h2())._with_(anObject);
  757. return $1;
  758. }, function($ctx1) {$ctx1.fill(self,"h2:",{anObject:anObject},globals.HTMLCanvas)})},
  759. args: ["anObject"],
  760. source: "h2: anObject\x0a\x09^ self h2 with: anObject",
  761. messageSends: ["with:", "h2"],
  762. referencedClasses: []
  763. }),
  764. globals.HTMLCanvas);
  765. smalltalk.addMethod(
  766. smalltalk.method({
  767. selector: "h3",
  768. protocol: 'tags',
  769. fn: function (){
  770. var self=this;
  771. return smalltalk.withContext(function($ctx1) {
  772. var $1;
  773. $1=self._tag_("h3");
  774. return $1;
  775. }, function($ctx1) {$ctx1.fill(self,"h3",{},globals.HTMLCanvas)})},
  776. args: [],
  777. source: "h3\x0a\x09^ self tag: 'h3'",
  778. messageSends: ["tag:"],
  779. referencedClasses: []
  780. }),
  781. globals.HTMLCanvas);
  782. smalltalk.addMethod(
  783. smalltalk.method({
  784. selector: "h3:",
  785. protocol: 'tags',
  786. fn: function (anObject){
  787. var self=this;
  788. return smalltalk.withContext(function($ctx1) {
  789. var $1;
  790. $1=_st(self._h3())._with_(anObject);
  791. return $1;
  792. }, function($ctx1) {$ctx1.fill(self,"h3:",{anObject:anObject},globals.HTMLCanvas)})},
  793. args: ["anObject"],
  794. source: "h3: anObject\x0a\x09^ self h3 with: anObject",
  795. messageSends: ["with:", "h3"],
  796. referencedClasses: []
  797. }),
  798. globals.HTMLCanvas);
  799. smalltalk.addMethod(
  800. smalltalk.method({
  801. selector: "h4",
  802. protocol: 'tags',
  803. fn: function (){
  804. var self=this;
  805. return smalltalk.withContext(function($ctx1) {
  806. var $1;
  807. $1=self._tag_("h4");
  808. return $1;
  809. }, function($ctx1) {$ctx1.fill(self,"h4",{},globals.HTMLCanvas)})},
  810. args: [],
  811. source: "h4\x0a\x09^ self tag: 'h4'",
  812. messageSends: ["tag:"],
  813. referencedClasses: []
  814. }),
  815. globals.HTMLCanvas);
  816. smalltalk.addMethod(
  817. smalltalk.method({
  818. selector: "h4:",
  819. protocol: 'tags',
  820. fn: function (anObject){
  821. var self=this;
  822. return smalltalk.withContext(function($ctx1) {
  823. var $1;
  824. $1=_st(self._h4())._with_(anObject);
  825. return $1;
  826. }, function($ctx1) {$ctx1.fill(self,"h4:",{anObject:anObject},globals.HTMLCanvas)})},
  827. args: ["anObject"],
  828. source: "h4: anObject\x0a\x09^ self h4 with: anObject",
  829. messageSends: ["with:", "h4"],
  830. referencedClasses: []
  831. }),
  832. globals.HTMLCanvas);
  833. smalltalk.addMethod(
  834. smalltalk.method({
  835. selector: "h5",
  836. protocol: 'tags',
  837. fn: function (){
  838. var self=this;
  839. return smalltalk.withContext(function($ctx1) {
  840. var $1;
  841. $1=self._tag_("h5");
  842. return $1;
  843. }, function($ctx1) {$ctx1.fill(self,"h5",{},globals.HTMLCanvas)})},
  844. args: [],
  845. source: "h5\x0a\x09^ self tag: 'h5'",
  846. messageSends: ["tag:"],
  847. referencedClasses: []
  848. }),
  849. globals.HTMLCanvas);
  850. smalltalk.addMethod(
  851. smalltalk.method({
  852. selector: "h5:",
  853. protocol: 'tags',
  854. fn: function (anObject){
  855. var self=this;
  856. return smalltalk.withContext(function($ctx1) {
  857. var $1;
  858. $1=_st(self._h5())._with_(anObject);
  859. return $1;
  860. }, function($ctx1) {$ctx1.fill(self,"h5:",{anObject:anObject},globals.HTMLCanvas)})},
  861. args: ["anObject"],
  862. source: "h5: anObject\x0a\x09^ self h5 with: anObject",
  863. messageSends: ["with:", "h5"],
  864. referencedClasses: []
  865. }),
  866. globals.HTMLCanvas);
  867. smalltalk.addMethod(
  868. smalltalk.method({
  869. selector: "h6",
  870. protocol: 'tags',
  871. fn: function (){
  872. var self=this;
  873. return smalltalk.withContext(function($ctx1) {
  874. var $1;
  875. $1=self._tag_("h6");
  876. return $1;
  877. }, function($ctx1) {$ctx1.fill(self,"h6",{},globals.HTMLCanvas)})},
  878. args: [],
  879. source: "h6\x0a\x09^ self tag: 'h6'",
  880. messageSends: ["tag:"],
  881. referencedClasses: []
  882. }),
  883. globals.HTMLCanvas);
  884. smalltalk.addMethod(
  885. smalltalk.method({
  886. selector: "h6:",
  887. protocol: 'tags',
  888. fn: function (anObject){
  889. var self=this;
  890. return smalltalk.withContext(function($ctx1) {
  891. var $1;
  892. $1=_st(self._h6())._with_(anObject);
  893. return $1;
  894. }, function($ctx1) {$ctx1.fill(self,"h6:",{anObject:anObject},globals.HTMLCanvas)})},
  895. args: ["anObject"],
  896. source: "h6: anObject\x0a\x09^ self h6 with: anObject",
  897. messageSends: ["with:", "h6"],
  898. referencedClasses: []
  899. }),
  900. globals.HTMLCanvas);
  901. smalltalk.addMethod(
  902. smalltalk.method({
  903. selector: "head",
  904. protocol: 'tags',
  905. fn: function (){
  906. var self=this;
  907. return smalltalk.withContext(function($ctx1) {
  908. var $1;
  909. $1=self._tag_("head");
  910. return $1;
  911. }, function($ctx1) {$ctx1.fill(self,"head",{},globals.HTMLCanvas)})},
  912. args: [],
  913. source: "head\x0a\x09^ self tag: 'head'",
  914. messageSends: ["tag:"],
  915. referencedClasses: []
  916. }),
  917. globals.HTMLCanvas);
  918. smalltalk.addMethod(
  919. smalltalk.method({
  920. selector: "header",
  921. protocol: 'tags',
  922. fn: function (){
  923. var self=this;
  924. return smalltalk.withContext(function($ctx1) {
  925. var $1;
  926. $1=self._tag_("header");
  927. return $1;
  928. }, function($ctx1) {$ctx1.fill(self,"header",{},globals.HTMLCanvas)})},
  929. args: [],
  930. source: "header\x0a\x09^ self tag: 'header'",
  931. messageSends: ["tag:"],
  932. referencedClasses: []
  933. }),
  934. globals.HTMLCanvas);
  935. smalltalk.addMethod(
  936. smalltalk.method({
  937. selector: "hgroup",
  938. protocol: 'tags',
  939. fn: function (){
  940. var self=this;
  941. return smalltalk.withContext(function($ctx1) {
  942. var $1;
  943. $1=self._tag_("hgroup");
  944. return $1;
  945. }, function($ctx1) {$ctx1.fill(self,"hgroup",{},globals.HTMLCanvas)})},
  946. args: [],
  947. source: "hgroup\x0a\x09^ self tag: 'hgroup'",
  948. messageSends: ["tag:"],
  949. referencedClasses: []
  950. }),
  951. globals.HTMLCanvas);
  952. smalltalk.addMethod(
  953. smalltalk.method({
  954. selector: "hr",
  955. protocol: 'tags',
  956. fn: function (){
  957. var self=this;
  958. return smalltalk.withContext(function($ctx1) {
  959. var $1;
  960. $1=self._tag_("hr");
  961. return $1;
  962. }, function($ctx1) {$ctx1.fill(self,"hr",{},globals.HTMLCanvas)})},
  963. args: [],
  964. source: "hr\x0a\x09^ self tag: 'hr'",
  965. messageSends: ["tag:"],
  966. referencedClasses: []
  967. }),
  968. globals.HTMLCanvas);
  969. smalltalk.addMethod(
  970. smalltalk.method({
  971. selector: "html",
  972. protocol: 'tags',
  973. fn: function (){
  974. var self=this;
  975. return smalltalk.withContext(function($ctx1) {
  976. var $1;
  977. $1=self._tag_("html");
  978. return $1;
  979. }, function($ctx1) {$ctx1.fill(self,"html",{},globals.HTMLCanvas)})},
  980. args: [],
  981. source: "html\x0a\x09^ self tag: 'html'",
  982. messageSends: ["tag:"],
  983. referencedClasses: []
  984. }),
  985. globals.HTMLCanvas);
  986. smalltalk.addMethod(
  987. smalltalk.method({
  988. selector: "iframe",
  989. protocol: 'tags',
  990. fn: function (){
  991. var self=this;
  992. return smalltalk.withContext(function($ctx1) {
  993. var $1;
  994. $1=self._tag_("iframe");
  995. return $1;
  996. }, function($ctx1) {$ctx1.fill(self,"iframe",{},globals.HTMLCanvas)})},
  997. args: [],
  998. source: "iframe\x0a\x09^ self tag: 'iframe'",
  999. messageSends: ["tag:"],
  1000. referencedClasses: []
  1001. }),
  1002. globals.HTMLCanvas);
  1003. smalltalk.addMethod(
  1004. smalltalk.method({
  1005. selector: "iframe:",
  1006. protocol: 'tags',
  1007. fn: function (aString){
  1008. var self=this;
  1009. return smalltalk.withContext(function($ctx1) {
  1010. var $1;
  1011. $1=_st(self._iframe())._src_(aString);
  1012. return $1;
  1013. }, function($ctx1) {$ctx1.fill(self,"iframe:",{aString:aString},globals.HTMLCanvas)})},
  1014. args: ["aString"],
  1015. source: "iframe: aString\x0a\x09^ self iframe src: aString",
  1016. messageSends: ["src:", "iframe"],
  1017. referencedClasses: []
  1018. }),
  1019. globals.HTMLCanvas);
  1020. smalltalk.addMethod(
  1021. smalltalk.method({
  1022. selector: "img",
  1023. protocol: 'tags',
  1024. fn: function (){
  1025. var self=this;
  1026. return smalltalk.withContext(function($ctx1) {
  1027. var $1;
  1028. $1=self._tag_("img");
  1029. return $1;
  1030. }, function($ctx1) {$ctx1.fill(self,"img",{},globals.HTMLCanvas)})},
  1031. args: [],
  1032. source: "img\x0a\x09^ self tag: 'img'",
  1033. messageSends: ["tag:"],
  1034. referencedClasses: []
  1035. }),
  1036. globals.HTMLCanvas);
  1037. smalltalk.addMethod(
  1038. smalltalk.method({
  1039. selector: "img:",
  1040. protocol: 'tags',
  1041. fn: function (aString){
  1042. var self=this;
  1043. return smalltalk.withContext(function($ctx1) {
  1044. var $1;
  1045. $1=_st(self._img())._src_(aString);
  1046. return $1;
  1047. }, function($ctx1) {$ctx1.fill(self,"img:",{aString:aString},globals.HTMLCanvas)})},
  1048. args: ["aString"],
  1049. source: "img: aString\x0a\x09^ self img src: aString",
  1050. messageSends: ["src:", "img"],
  1051. referencedClasses: []
  1052. }),
  1053. globals.HTMLCanvas);
  1054. smalltalk.addMethod(
  1055. smalltalk.method({
  1056. selector: "initialize",
  1057. protocol: 'initialization',
  1058. fn: function (){
  1059. var self=this;
  1060. function $TagBrush(){return globals.TagBrush||(typeof TagBrush=="undefined"?nil:TagBrush)}
  1061. return smalltalk.withContext(function($ctx1) {
  1062. var $1;
  1063. globals.HTMLCanvas.superclass.fn.prototype._initialize.apply(_st(self), []);
  1064. $1=self["@root"];
  1065. if(($receiver = $1) == nil || $receiver == null){
  1066. self["@root"]=_st($TagBrush())._fromString_canvas_("div",self);
  1067. self["@root"];
  1068. } else {
  1069. $1;
  1070. };
  1071. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},globals.HTMLCanvas)})},
  1072. args: [],
  1073. source: "initialize\x0a\x09super initialize.\x0a\x09root ifNil: [ root := TagBrush fromString: 'div' canvas: self ]",
  1074. messageSends: ["initialize", "ifNil:", "fromString:canvas:"],
  1075. referencedClasses: ["TagBrush"]
  1076. }),
  1077. globals.HTMLCanvas);
  1078. smalltalk.addMethod(
  1079. smalltalk.method({
  1080. selector: "initializeFromJQuery:",
  1081. protocol: 'initialization',
  1082. fn: function (aJQuery){
  1083. var self=this;
  1084. function $TagBrush(){return globals.TagBrush||(typeof TagBrush=="undefined"?nil:TagBrush)}
  1085. return smalltalk.withContext(function($ctx1) {
  1086. self["@root"]=_st($TagBrush())._fromJQuery_canvas_(aJQuery,self);
  1087. return self}, function($ctx1) {$ctx1.fill(self,"initializeFromJQuery:",{aJQuery:aJQuery},globals.HTMLCanvas)})},
  1088. args: ["aJQuery"],
  1089. source: "initializeFromJQuery: aJQuery\x0a\x09root := TagBrush fromJQuery: aJQuery canvas: self",
  1090. messageSends: ["fromJQuery:canvas:"],
  1091. referencedClasses: ["TagBrush"]
  1092. }),
  1093. globals.HTMLCanvas);
  1094. smalltalk.addMethod(
  1095. smalltalk.method({
  1096. selector: "input",
  1097. protocol: 'tags',
  1098. fn: function (){
  1099. var self=this;
  1100. return smalltalk.withContext(function($ctx1) {
  1101. var $1;
  1102. $1=self._tag_("input");
  1103. return $1;
  1104. }, function($ctx1) {$ctx1.fill(self,"input",{},globals.HTMLCanvas)})},
  1105. args: [],
  1106. source: "input\x0a\x09^ self tag: 'input'",
  1107. messageSends: ["tag:"],
  1108. referencedClasses: []
  1109. }),
  1110. globals.HTMLCanvas);
  1111. smalltalk.addMethod(
  1112. smalltalk.method({
  1113. selector: "label",
  1114. protocol: 'tags',
  1115. fn: function (){
  1116. var self=this;
  1117. return smalltalk.withContext(function($ctx1) {
  1118. var $1;
  1119. $1=self._tag_("label");
  1120. return $1;
  1121. }, function($ctx1) {$ctx1.fill(self,"label",{},globals.HTMLCanvas)})},
  1122. args: [],
  1123. source: "label\x0a\x09^ self tag: 'label'",
  1124. messageSends: ["tag:"],
  1125. referencedClasses: []
  1126. }),
  1127. globals.HTMLCanvas);
  1128. smalltalk.addMethod(
  1129. smalltalk.method({
  1130. selector: "legend",
  1131. protocol: 'tags',
  1132. fn: function (){
  1133. var self=this;
  1134. return smalltalk.withContext(function($ctx1) {
  1135. var $1;
  1136. $1=self._tag_("legend");
  1137. return $1;
  1138. }, function($ctx1) {$ctx1.fill(self,"legend",{},globals.HTMLCanvas)})},
  1139. args: [],
  1140. source: "legend\x0a\x09^ self tag: 'legend'",
  1141. messageSends: ["tag:"],
  1142. referencedClasses: []
  1143. }),
  1144. globals.HTMLCanvas);
  1145. smalltalk.addMethod(
  1146. smalltalk.method({
  1147. selector: "li",
  1148. protocol: 'tags',
  1149. fn: function (){
  1150. var self=this;
  1151. return smalltalk.withContext(function($ctx1) {
  1152. var $1;
  1153. $1=self._tag_("li");
  1154. return $1;
  1155. }, function($ctx1) {$ctx1.fill(self,"li",{},globals.HTMLCanvas)})},
  1156. args: [],
  1157. source: "li\x0a\x09^ self tag: 'li'",
  1158. messageSends: ["tag:"],
  1159. referencedClasses: []
  1160. }),
  1161. globals.HTMLCanvas);
  1162. smalltalk.addMethod(
  1163. smalltalk.method({
  1164. selector: "li:",
  1165. protocol: 'tags',
  1166. fn: function (anObject){
  1167. var self=this;
  1168. return smalltalk.withContext(function($ctx1) {
  1169. var $1;
  1170. $1=_st(self._li())._with_(anObject);
  1171. return $1;
  1172. }, function($ctx1) {$ctx1.fill(self,"li:",{anObject:anObject},globals.HTMLCanvas)})},
  1173. args: ["anObject"],
  1174. source: "li: anObject\x0a\x09^ self li with: anObject",
  1175. messageSends: ["with:", "li"],
  1176. referencedClasses: []
  1177. }),
  1178. globals.HTMLCanvas);
  1179. smalltalk.addMethod(
  1180. smalltalk.method({
  1181. selector: "link",
  1182. protocol: 'tags',
  1183. fn: function (){
  1184. var self=this;
  1185. return smalltalk.withContext(function($ctx1) {
  1186. var $1;
  1187. $1=self._tag_("link");
  1188. return $1;
  1189. }, function($ctx1) {$ctx1.fill(self,"link",{},globals.HTMLCanvas)})},
  1190. args: [],
  1191. source: "link\x0a\x09^ self tag: 'link'",
  1192. messageSends: ["tag:"],
  1193. referencedClasses: []
  1194. }),
  1195. globals.HTMLCanvas);
  1196. smalltalk.addMethod(
  1197. smalltalk.method({
  1198. selector: "map",
  1199. protocol: 'tags',
  1200. fn: function (){
  1201. var self=this;
  1202. return smalltalk.withContext(function($ctx1) {
  1203. var $1;
  1204. $1=self._tag_("map");
  1205. return $1;
  1206. }, function($ctx1) {$ctx1.fill(self,"map",{},globals.HTMLCanvas)})},
  1207. args: [],
  1208. source: "map\x0a\x09^ self tag: 'map'",
  1209. messageSends: ["tag:"],
  1210. referencedClasses: []
  1211. }),
  1212. globals.HTMLCanvas);
  1213. smalltalk.addMethod(
  1214. smalltalk.method({
  1215. selector: "mark",
  1216. protocol: 'tags',
  1217. fn: function (){
  1218. var self=this;
  1219. return smalltalk.withContext(function($ctx1) {
  1220. var $1;
  1221. $1=self._tag_("mark");
  1222. return $1;
  1223. }, function($ctx1) {$ctx1.fill(self,"mark",{},globals.HTMLCanvas)})},
  1224. args: [],
  1225. source: "mark\x0a\x09^ self tag: 'mark'",
  1226. messageSends: ["tag:"],
  1227. referencedClasses: []
  1228. }),
  1229. globals.HTMLCanvas);
  1230. smalltalk.addMethod(
  1231. smalltalk.method({
  1232. selector: "menu",
  1233. protocol: 'tags',
  1234. fn: function (){
  1235. var self=this;
  1236. return smalltalk.withContext(function($ctx1) {
  1237. var $1;
  1238. $1=self._tag_("menu");
  1239. return $1;
  1240. }, function($ctx1) {$ctx1.fill(self,"menu",{},globals.HTMLCanvas)})},
  1241. args: [],
  1242. source: "menu\x0a\x09^ self tag: 'menu'",
  1243. messageSends: ["tag:"],
  1244. referencedClasses: []
  1245. }),
  1246. globals.HTMLCanvas);
  1247. smalltalk.addMethod(
  1248. smalltalk.method({
  1249. selector: "meta",
  1250. protocol: 'tags',
  1251. fn: function (){
  1252. var self=this;
  1253. return smalltalk.withContext(function($ctx1) {
  1254. var $1;
  1255. $1=self._tag_("meta");
  1256. return $1;
  1257. }, function($ctx1) {$ctx1.fill(self,"meta",{},globals.HTMLCanvas)})},
  1258. args: [],
  1259. source: "meta\x0a\x09^ self tag: 'meta'",
  1260. messageSends: ["tag:"],
  1261. referencedClasses: []
  1262. }),
  1263. globals.HTMLCanvas);
  1264. smalltalk.addMethod(
  1265. smalltalk.method({
  1266. selector: "nav",
  1267. protocol: 'tags',
  1268. fn: function (){
  1269. var self=this;
  1270. return smalltalk.withContext(function($ctx1) {
  1271. var $1;
  1272. $1=self._tag_("nav");
  1273. return $1;
  1274. }, function($ctx1) {$ctx1.fill(self,"nav",{},globals.HTMLCanvas)})},
  1275. args: [],
  1276. source: "nav\x0a\x09^ self tag: 'nav'",
  1277. messageSends: ["tag:"],
  1278. referencedClasses: []
  1279. }),
  1280. globals.HTMLCanvas);
  1281. smalltalk.addMethod(
  1282. smalltalk.method({
  1283. selector: "newTag:",
  1284. protocol: 'tags',
  1285. fn: function (aString){
  1286. var self=this;
  1287. function $TagBrush(){return globals.TagBrush||(typeof TagBrush=="undefined"?nil:TagBrush)}
  1288. return smalltalk.withContext(function($ctx1) {
  1289. var $1;
  1290. $1=_st($TagBrush())._fromString_canvas_(aString,self);
  1291. return $1;
  1292. }, function($ctx1) {$ctx1.fill(self,"newTag:",{aString:aString},globals.HTMLCanvas)})},
  1293. args: ["aString"],
  1294. source: "newTag: aString\x0a\x09^ TagBrush fromString: aString canvas: self",
  1295. messageSends: ["fromString:canvas:"],
  1296. referencedClasses: ["TagBrush"]
  1297. }),
  1298. globals.HTMLCanvas);
  1299. smalltalk.addMethod(
  1300. smalltalk.method({
  1301. selector: "noscript",
  1302. protocol: 'tags',
  1303. fn: function (){
  1304. var self=this;
  1305. return smalltalk.withContext(function($ctx1) {
  1306. var $1;
  1307. $1=self._tag_("noscript");
  1308. return $1;
  1309. }, function($ctx1) {$ctx1.fill(self,"noscript",{},globals.HTMLCanvas)})},
  1310. args: [],
  1311. source: "noscript\x0a\x09^ self tag: 'noscript'",
  1312. messageSends: ["tag:"],
  1313. referencedClasses: []
  1314. }),
  1315. globals.HTMLCanvas);
  1316. smalltalk.addMethod(
  1317. smalltalk.method({
  1318. selector: "object",
  1319. protocol: 'tags',
  1320. fn: function (){
  1321. var self=this;
  1322. return smalltalk.withContext(function($ctx1) {
  1323. var $1;
  1324. $1=self._tag_("object");
  1325. return $1;
  1326. }, function($ctx1) {$ctx1.fill(self,"object",{},globals.HTMLCanvas)})},
  1327. args: [],
  1328. source: "object\x0a\x09^ self tag: 'object'",
  1329. messageSends: ["tag:"],
  1330. referencedClasses: []
  1331. }),
  1332. globals.HTMLCanvas);
  1333. smalltalk.addMethod(
  1334. smalltalk.method({
  1335. selector: "ol",
  1336. protocol: 'tags',
  1337. fn: function (){
  1338. var self=this;
  1339. return smalltalk.withContext(function($ctx1) {
  1340. var $1;
  1341. $1=self._tag_("ol");
  1342. return $1;
  1343. }, function($ctx1) {$ctx1.fill(self,"ol",{},globals.HTMLCanvas)})},
  1344. args: [],
  1345. source: "ol\x0a\x09^ self tag: 'ol'",
  1346. messageSends: ["tag:"],
  1347. referencedClasses: []
  1348. }),
  1349. globals.HTMLCanvas);
  1350. smalltalk.addMethod(
  1351. smalltalk.method({
  1352. selector: "ol:",
  1353. protocol: 'tags',
  1354. fn: function (anObject){
  1355. var self=this;
  1356. return smalltalk.withContext(function($ctx1) {
  1357. var $1;
  1358. $1=_st(self._ol())._with_(anObject);
  1359. return $1;
  1360. }, function($ctx1) {$ctx1.fill(self,"ol:",{anObject:anObject},globals.HTMLCanvas)})},
  1361. args: ["anObject"],
  1362. source: "ol: anObject\x0a\x09^ self ol with: anObject",
  1363. messageSends: ["with:", "ol"],
  1364. referencedClasses: []
  1365. }),
  1366. globals.HTMLCanvas);
  1367. smalltalk.addMethod(
  1368. smalltalk.method({
  1369. selector: "optgroup",
  1370. protocol: 'tags',
  1371. fn: function (){
  1372. var self=this;
  1373. return smalltalk.withContext(function($ctx1) {
  1374. var $1;
  1375. $1=self._tag_("optgroup");
  1376. return $1;
  1377. }, function($ctx1) {$ctx1.fill(self,"optgroup",{},globals.HTMLCanvas)})},
  1378. args: [],
  1379. source: "optgroup\x0a\x09^ self tag: 'optgroup'",
  1380. messageSends: ["tag:"],
  1381. referencedClasses: []
  1382. }),
  1383. globals.HTMLCanvas);
  1384. smalltalk.addMethod(
  1385. smalltalk.method({
  1386. selector: "option",
  1387. protocol: 'tags',
  1388. fn: function (){
  1389. var self=this;
  1390. return smalltalk.withContext(function($ctx1) {
  1391. var $1;
  1392. $1=self._tag_("option");
  1393. return $1;
  1394. }, function($ctx1) {$ctx1.fill(self,"option",{},globals.HTMLCanvas)})},
  1395. args: [],
  1396. source: "option\x0a\x09^ self tag: 'option'",
  1397. messageSends: ["tag:"],
  1398. referencedClasses: []
  1399. }),
  1400. globals.HTMLCanvas);
  1401. smalltalk.addMethod(
  1402. smalltalk.method({
  1403. selector: "output",
  1404. protocol: 'tags',
  1405. fn: function (){
  1406. var self=this;
  1407. return smalltalk.withContext(function($ctx1) {
  1408. var $1;
  1409. $1=self._tag_("output");
  1410. return $1;
  1411. }, function($ctx1) {$ctx1.fill(self,"output",{},globals.HTMLCanvas)})},
  1412. args: [],
  1413. source: "output\x0a\x09^ self tag: 'output'",
  1414. messageSends: ["tag:"],
  1415. referencedClasses: []
  1416. }),
  1417. globals.HTMLCanvas);
  1418. smalltalk.addMethod(
  1419. smalltalk.method({
  1420. selector: "p",
  1421. protocol: 'tags',
  1422. fn: function (){
  1423. var self=this;
  1424. return smalltalk.withContext(function($ctx1) {
  1425. var $1;
  1426. $1=self._tag_("p");
  1427. return $1;
  1428. }, function($ctx1) {$ctx1.fill(self,"p",{},globals.HTMLCanvas)})},
  1429. args: [],
  1430. source: "p\x0a\x09^ self tag: 'p'",
  1431. messageSends: ["tag:"],
  1432. referencedClasses: []
  1433. }),
  1434. globals.HTMLCanvas);
  1435. smalltalk.addMethod(
  1436. smalltalk.method({
  1437. selector: "p:",
  1438. protocol: 'tags',
  1439. fn: function (anObject){
  1440. var self=this;
  1441. return smalltalk.withContext(function($ctx1) {
  1442. var $1;
  1443. $1=_st(self._p())._with_(anObject);
  1444. return $1;
  1445. }, function($ctx1) {$ctx1.fill(self,"p:",{anObject:anObject},globals.HTMLCanvas)})},
  1446. args: ["anObject"],
  1447. source: "p: anObject\x0a\x09^ self p with: anObject",
  1448. messageSends: ["with:", "p"],
  1449. referencedClasses: []
  1450. }),
  1451. globals.HTMLCanvas);
  1452. smalltalk.addMethod(
  1453. smalltalk.method({
  1454. selector: "param",
  1455. protocol: 'tags',
  1456. fn: function (){
  1457. var self=this;
  1458. return smalltalk.withContext(function($ctx1) {
  1459. var $1;
  1460. $1=self._tag_("param");
  1461. return $1;
  1462. }, function($ctx1) {$ctx1.fill(self,"param",{},globals.HTMLCanvas)})},
  1463. args: [],
  1464. source: "param\x0a\x09^ self tag: 'param'",
  1465. messageSends: ["tag:"],
  1466. referencedClasses: []
  1467. }),
  1468. globals.HTMLCanvas);
  1469. smalltalk.addMethod(
  1470. smalltalk.method({
  1471. selector: "pre",
  1472. protocol: 'tags',
  1473. fn: function (){
  1474. var self=this;
  1475. return smalltalk.withContext(function($ctx1) {
  1476. var $1;
  1477. $1=self._tag_("pre");
  1478. return $1;
  1479. }, function($ctx1) {$ctx1.fill(self,"pre",{},globals.HTMLCanvas)})},
  1480. args: [],
  1481. source: "pre\x0a\x09^ self tag: 'pre'",
  1482. messageSends: ["tag:"],
  1483. referencedClasses: []
  1484. }),
  1485. globals.HTMLCanvas);
  1486. smalltalk.addMethod(
  1487. smalltalk.method({
  1488. selector: "progress",
  1489. protocol: 'tags',
  1490. fn: function (){
  1491. var self=this;
  1492. return smalltalk.withContext(function($ctx1) {
  1493. var $1;
  1494. $1=self._tag_("progress");
  1495. return $1;
  1496. }, function($ctx1) {$ctx1.fill(self,"progress",{},globals.HTMLCanvas)})},
  1497. args: [],
  1498. source: "progress\x0a\x09^ self tag: 'progress'",
  1499. messageSends: ["tag:"],
  1500. referencedClasses: []
  1501. }),
  1502. globals.HTMLCanvas);
  1503. smalltalk.addMethod(
  1504. smalltalk.method({
  1505. selector: "root",
  1506. protocol: 'accessing',
  1507. fn: function (){
  1508. var self=this;
  1509. var $1;
  1510. $1=self["@root"];
  1511. return $1;
  1512. },
  1513. args: [],
  1514. source: "root\x0a\x09^ root",
  1515. messageSends: [],
  1516. referencedClasses: []
  1517. }),
  1518. globals.HTMLCanvas);
  1519. smalltalk.addMethod(
  1520. smalltalk.method({
  1521. selector: "root:",
  1522. protocol: 'accessing',
  1523. fn: function (aTagBrush){
  1524. var self=this;
  1525. self["@root"]=aTagBrush;
  1526. return self},
  1527. args: ["aTagBrush"],
  1528. source: "root: aTagBrush\x0a\x09root := aTagBrush",
  1529. messageSends: [],
  1530. referencedClasses: []
  1531. }),
  1532. globals.HTMLCanvas);
  1533. smalltalk.addMethod(
  1534. smalltalk.method({
  1535. selector: "script",
  1536. protocol: 'tags',
  1537. fn: function (){
  1538. var self=this;
  1539. return smalltalk.withContext(function($ctx1) {
  1540. var $1;
  1541. $1=self._tag_("script");
  1542. return $1;
  1543. }, function($ctx1) {$ctx1.fill(self,"script",{},globals.HTMLCanvas)})},
  1544. args: [],
  1545. source: "script\x0a\x09^ self tag: 'script'",
  1546. messageSends: ["tag:"],
  1547. referencedClasses: []
  1548. }),
  1549. globals.HTMLCanvas);
  1550. smalltalk.addMethod(
  1551. smalltalk.method({
  1552. selector: "section",
  1553. protocol: 'tags',
  1554. fn: function (){
  1555. var self=this;
  1556. return smalltalk.withContext(function($ctx1) {
  1557. var $1;
  1558. $1=self._tag_("section");
  1559. return $1;
  1560. }, function($ctx1) {$ctx1.fill(self,"section",{},globals.HTMLCanvas)})},
  1561. args: [],
  1562. source: "section\x0a\x09^ self tag: 'section'",
  1563. messageSends: ["tag:"],
  1564. referencedClasses: []
  1565. }),
  1566. globals.HTMLCanvas);
  1567. smalltalk.addMethod(
  1568. smalltalk.method({
  1569. selector: "select",
  1570. protocol: 'tags',
  1571. fn: function (){
  1572. var self=this;
  1573. return smalltalk.withContext(function($ctx1) {
  1574. var $1;
  1575. $1=self._tag_("select");
  1576. return $1;
  1577. }, function($ctx1) {$ctx1.fill(self,"select",{},globals.HTMLCanvas)})},
  1578. args: [],
  1579. source: "select\x0a\x09^ self tag: 'select'",
  1580. messageSends: ["tag:"],
  1581. referencedClasses: []
  1582. }),
  1583. globals.HTMLCanvas);
  1584. smalltalk.addMethod(
  1585. smalltalk.method({
  1586. selector: "small",
  1587. protocol: 'tags',
  1588. fn: function (){
  1589. var self=this;
  1590. return smalltalk.withContext(function($ctx1) {
  1591. var $1;
  1592. $1=self._tag_("small");
  1593. return $1;
  1594. }, function($ctx1) {$ctx1.fill(self,"small",{},globals.HTMLCanvas)})},
  1595. args: [],
  1596. source: "small\x0a\x09^ self tag: 'small'",
  1597. messageSends: ["tag:"],
  1598. referencedClasses: []
  1599. }),
  1600. globals.HTMLCanvas);
  1601. smalltalk.addMethod(
  1602. smalltalk.method({
  1603. selector: "snippet:",
  1604. protocol: 'accessing',
  1605. fn: function (anElement){
  1606. var self=this;
  1607. var clone,caret;
  1608. function $TagBrush(){return globals.TagBrush||(typeof TagBrush=="undefined"?nil:TagBrush)}
  1609. return smalltalk.withContext(function($ctx1) {
  1610. var $1,$2,$3;
  1611. clone=_st(_st(anElement)._asJQuery())._clone();
  1612. $1=_st($TagBrush())._fromJQuery_canvas_(clone,self);
  1613. $ctx1.sendIdx["fromJQuery:canvas:"]=1;
  1614. self._with_($1);
  1615. caret=_st(clone)._find_("[data-snippet=\x22*\x22]");
  1616. $2=_st(_st(caret)._toArray())._isEmpty();
  1617. if(smalltalk.assert($2)){
  1618. caret=clone;
  1619. caret;
  1620. };
  1621. $3=_st($TagBrush())._fromJQuery_canvas_(_st(caret)._removeAttr_("data-snippet"),self);
  1622. return $3;
  1623. }, function($ctx1) {$ctx1.fill(self,"snippet:",{anElement:anElement,clone:clone,caret:caret},globals.HTMLCanvas)})},
  1624. args: ["anElement"],
  1625. source: "snippet: anElement\x0a\x09\x22Adds clone of anElement, finds [data-snippet=\x22\x22*\x22\x22] subelement\x0a\x09and returns TagBrush as if that subelement was just added.\x0a\x09\x0a\x09Rarely needed to use directly, use `html foo` dynamically installed method\x0a\x09for a snippet named foo.\x22\x0a\x09\x0a\x09| clone caret |\x0a\x09\x0a\x09clone := anElement asJQuery clone.\x0a\x09self with: (TagBrush fromJQuery: clone canvas: self).\x0a\x09caret := clone find: '[data-snippet=\x22*\x22]'.\x0a\x09caret toArray isEmpty ifTrue: [ caret := clone ].\x0a\x09^ TagBrush fromJQuery: (caret removeAttr: 'data-snippet') canvas: self",
  1626. messageSends: ["clone", "asJQuery", "with:", "fromJQuery:canvas:", "find:", "ifTrue:", "isEmpty", "toArray", "removeAttr:"],
  1627. referencedClasses: ["TagBrush"]
  1628. }),
  1629. globals.HTMLCanvas);
  1630. smalltalk.addMethod(
  1631. smalltalk.method({
  1632. selector: "source",
  1633. protocol: 'tags',
  1634. fn: function (){
  1635. var self=this;
  1636. return smalltalk.withContext(function($ctx1) {
  1637. var $1;
  1638. $1=self._tag_("source");
  1639. return $1;
  1640. }, function($ctx1) {$ctx1.fill(self,"source",{},globals.HTMLCanvas)})},
  1641. args: [],
  1642. source: "source\x0a\x09^ self tag: 'source'",
  1643. messageSends: ["tag:"],
  1644. referencedClasses: []
  1645. }),
  1646. globals.HTMLCanvas);
  1647. smalltalk.addMethod(
  1648. smalltalk.method({
  1649. selector: "span",
  1650. protocol: 'tags',
  1651. fn: function (){
  1652. var self=this;
  1653. return smalltalk.withContext(function($ctx1) {
  1654. var $1;
  1655. $1=self._tag_("span");
  1656. return $1;
  1657. }, function($ctx1) {$ctx1.fill(self,"span",{},globals.HTMLCanvas)})},
  1658. args: [],
  1659. source: "span\x0a\x09^ self tag: 'span'",
  1660. messageSends: ["tag:"],
  1661. referencedClasses: []
  1662. }),
  1663. globals.HTMLCanvas);
  1664. smalltalk.addMethod(
  1665. smalltalk.method({
  1666. selector: "span:",
  1667. protocol: 'tags',
  1668. fn: function (anObject){
  1669. var self=this;
  1670. return smalltalk.withContext(function($ctx1) {
  1671. var $1;
  1672. $1=_st(self._span())._with_(anObject);
  1673. return $1;
  1674. }, function($ctx1) {$ctx1.fill(self,"span:",{anObject:anObject},globals.HTMLCanvas)})},
  1675. args: ["anObject"],
  1676. source: "span: anObject\x0a\x09^ self span with: anObject",
  1677. messageSends: ["with:", "span"],
  1678. referencedClasses: []
  1679. }),
  1680. globals.HTMLCanvas);
  1681. smalltalk.addMethod(
  1682. smalltalk.method({
  1683. selector: "strong",
  1684. protocol: 'tags',
  1685. fn: function (){
  1686. var self=this;
  1687. return smalltalk.withContext(function($ctx1) {
  1688. var $1;
  1689. $1=self._tag_("strong");
  1690. return $1;
  1691. }, function($ctx1) {$ctx1.fill(self,"strong",{},globals.HTMLCanvas)})},
  1692. args: [],
  1693. source: "strong\x0a\x09^ self tag: 'strong'",
  1694. messageSends: ["tag:"],
  1695. referencedClasses: []
  1696. }),
  1697. globals.HTMLCanvas);
  1698. smalltalk.addMethod(
  1699. smalltalk.method({
  1700. selector: "strong:",
  1701. protocol: 'tags',
  1702. fn: function (anObject){
  1703. var self=this;
  1704. return smalltalk.withContext(function($ctx1) {
  1705. var $1;
  1706. $1=_st(self._strong())._with_(anObject);
  1707. return $1;
  1708. }, function($ctx1) {$ctx1.fill(self,"strong:",{anObject:anObject},globals.HTMLCanvas)})},
  1709. args: ["anObject"],
  1710. source: "strong: anObject\x0a\x09^ self strong with: anObject",
  1711. messageSends: ["with:", "strong"],
  1712. referencedClasses: []
  1713. }),
  1714. globals.HTMLCanvas);
  1715. smalltalk.addMethod(
  1716. smalltalk.method({
  1717. selector: "style",
  1718. protocol: 'tags',
  1719. fn: function (){
  1720. var self=this;
  1721. return smalltalk.withContext(function($ctx1) {
  1722. var $1;
  1723. $1=self._tag_("style");
  1724. return $1;
  1725. }, function($ctx1) {$ctx1.fill(self,"style",{},globals.HTMLCanvas)})},
  1726. args: [],
  1727. source: "style\x0a\x09^ self tag: 'style'",
  1728. messageSends: ["tag:"],
  1729. referencedClasses: []
  1730. }),
  1731. globals.HTMLCanvas);
  1732. smalltalk.addMethod(
  1733. smalltalk.method({
  1734. selector: "style:",
  1735. protocol: 'tags',
  1736. fn: function (aString){
  1737. var self=this;
  1738. return smalltalk.withContext(function($ctx1) {
  1739. var $2,$3,$1;
  1740. $2=self._style();
  1741. _st($2)._with_(aString);
  1742. $3=_st($2)._yourself();
  1743. $1=$3;
  1744. return $1;
  1745. }, function($ctx1) {$ctx1.fill(self,"style:",{aString:aString},globals.HTMLCanvas)})},
  1746. args: ["aString"],
  1747. source: "style: aString\x0a\x09^ self style with: aString; yourself",
  1748. messageSends: ["with:", "style", "yourself"],
  1749. referencedClasses: []
  1750. }),
  1751. globals.HTMLCanvas);
  1752. smalltalk.addMethod(
  1753. smalltalk.method({
  1754. selector: "sub",
  1755. protocol: 'tags',
  1756. fn: function (){
  1757. var self=this;
  1758. return smalltalk.withContext(function($ctx1) {
  1759. var $1;
  1760. $1=self._tag_("sub");
  1761. return $1;
  1762. }, function($ctx1) {$ctx1.fill(self,"sub",{},globals.HTMLCanvas)})},
  1763. args: [],
  1764. source: "sub\x0a\x09^ self tag: 'sub'",
  1765. messageSends: ["tag:"],
  1766. referencedClasses: []
  1767. }),
  1768. globals.HTMLCanvas);
  1769. smalltalk.addMethod(
  1770. smalltalk.method({
  1771. selector: "summary",
  1772. protocol: 'tags',
  1773. fn: function (){
  1774. var self=this;
  1775. return smalltalk.withContext(function($ctx1) {
  1776. var $1;
  1777. $1=self._tag_("summary");
  1778. return $1;
  1779. }, function($ctx1) {$ctx1.fill(self,"summary",{},globals.HTMLCanvas)})},
  1780. args: [],
  1781. source: "summary\x0a\x09^ self tag: 'summary'",
  1782. messageSends: ["tag:"],
  1783. referencedClasses: []
  1784. }),
  1785. globals.HTMLCanvas);
  1786. smalltalk.addMethod(
  1787. smalltalk.method({
  1788. selector: "sup",
  1789. protocol: 'tags',
  1790. fn: function (){
  1791. var self=this;
  1792. return smalltalk.withContext(function($ctx1) {
  1793. var $1;
  1794. $1=self._tag_("sup");
  1795. return $1;
  1796. }, function($ctx1) {$ctx1.fill(self,"sup",{},globals.HTMLCanvas)})},
  1797. args: [],
  1798. source: "sup\x0a\x09^ self tag: 'sup'",
  1799. messageSends: ["tag:"],
  1800. referencedClasses: []
  1801. }),
  1802. globals.HTMLCanvas);
  1803. smalltalk.addMethod(
  1804. smalltalk.method({
  1805. selector: "table",
  1806. protocol: 'tags',
  1807. fn: function (){
  1808. var self=this;
  1809. return smalltalk.withContext(function($ctx1) {
  1810. var $1;
  1811. $1=self._tag_("table");
  1812. return $1;
  1813. }, function($ctx1) {$ctx1.fill(self,"table",{},globals.HTMLCanvas)})},
  1814. args: [],
  1815. source: "table\x0a\x09^ self tag: 'table'",
  1816. messageSends: ["tag:"],
  1817. referencedClasses: []
  1818. }),
  1819. globals.HTMLCanvas);
  1820. smalltalk.addMethod(
  1821. smalltalk.method({
  1822. selector: "tag:",
  1823. protocol: 'tags',
  1824. fn: function (aString){
  1825. var self=this;
  1826. return smalltalk.withContext(function($ctx1) {
  1827. var $1;
  1828. $1=_st(self["@root"])._addBrush_(self._newTag_(aString));
  1829. return $1;
  1830. }, function($ctx1) {$ctx1.fill(self,"tag:",{aString:aString},globals.HTMLCanvas)})},
  1831. args: ["aString"],
  1832. source: "tag: aString\x0a\x09^ root addBrush: (self newTag: aString)",
  1833. messageSends: ["addBrush:", "newTag:"],
  1834. referencedClasses: []
  1835. }),
  1836. globals.HTMLCanvas);
  1837. smalltalk.addMethod(
  1838. smalltalk.method({
  1839. selector: "tbody",
  1840. protocol: 'tags',
  1841. fn: function (){
  1842. var self=this;
  1843. return smalltalk.withContext(function($ctx1) {
  1844. var $1;
  1845. $1=self._tag_("tbody");
  1846. return $1;
  1847. }, function($ctx1) {$ctx1.fill(self,"tbody",{},globals.HTMLCanvas)})},
  1848. args: [],
  1849. source: "tbody\x0a\x09^ self tag: 'tbody'",
  1850. messageSends: ["tag:"],
  1851. referencedClasses: []
  1852. }),
  1853. globals.HTMLCanvas);
  1854. smalltalk.addMethod(
  1855. smalltalk.method({
  1856. selector: "td",
  1857. protocol: 'tags',
  1858. fn: function (){
  1859. var self=this;
  1860. return smalltalk.withContext(function($ctx1) {
  1861. var $1;
  1862. $1=self._tag_("td");
  1863. return $1;
  1864. }, function($ctx1) {$ctx1.fill(self,"td",{},globals.HTMLCanvas)})},
  1865. args: [],
  1866. source: "td\x0a\x09^ self tag: 'td'",
  1867. messageSends: ["tag:"],
  1868. referencedClasses: []
  1869. }),
  1870. globals.HTMLCanvas);
  1871. smalltalk.addMethod(
  1872. smalltalk.method({
  1873. selector: "textarea",
  1874. protocol: 'tags',
  1875. fn: function (){
  1876. var self=this;
  1877. return smalltalk.withContext(function($ctx1) {
  1878. var $1;
  1879. $1=self._tag_("textarea");
  1880. return $1;
  1881. }, function($ctx1) {$ctx1.fill(self,"textarea",{},globals.HTMLCanvas)})},
  1882. args: [],
  1883. source: "textarea\x0a\x09^ self tag: 'textarea'",
  1884. messageSends: ["tag:"],
  1885. referencedClasses: []
  1886. }),
  1887. globals.HTMLCanvas);
  1888. smalltalk.addMethod(
  1889. smalltalk.method({
  1890. selector: "tfoot",
  1891. protocol: 'tags',
  1892. fn: function (){
  1893. var self=this;
  1894. return smalltalk.withContext(function($ctx1) {
  1895. var $1;
  1896. $1=self._tag_("tfoot");
  1897. return $1;
  1898. }, function($ctx1) {$ctx1.fill(self,"tfoot",{},globals.HTMLCanvas)})},
  1899. args: [],
  1900. source: "tfoot\x0a\x09^ self tag: 'tfoot'",
  1901. messageSends: ["tag:"],
  1902. referencedClasses: []
  1903. }),
  1904. globals.HTMLCanvas);
  1905. smalltalk.addMethod(
  1906. smalltalk.method({
  1907. selector: "th",
  1908. protocol: 'tags',
  1909. fn: function (){
  1910. var self=this;
  1911. return smalltalk.withContext(function($ctx1) {
  1912. var $1;
  1913. $1=self._tag_("th");
  1914. return $1;
  1915. }, function($ctx1) {$ctx1.fill(self,"th",{},globals.HTMLCanvas)})},
  1916. args: [],
  1917. source: "th\x0a\x09^ self tag: 'th'",
  1918. messageSends: ["tag:"],
  1919. referencedClasses: []
  1920. }),
  1921. globals.HTMLCanvas);
  1922. smalltalk.addMethod(
  1923. smalltalk.method({
  1924. selector: "thead",
  1925. protocol: 'tags',
  1926. fn: function (){
  1927. var self=this;
  1928. return smalltalk.withContext(function($ctx1) {
  1929. var $1;
  1930. $1=self._tag_("thead");
  1931. return $1;
  1932. }, function($ctx1) {$ctx1.fill(self,"thead",{},globals.HTMLCanvas)})},
  1933. args: [],
  1934. source: "thead\x0a\x09^ self tag: 'thead'",
  1935. messageSends: ["tag:"],
  1936. referencedClasses: []
  1937. }),
  1938. globals.HTMLCanvas);
  1939. smalltalk.addMethod(
  1940. smalltalk.method({
  1941. selector: "time",
  1942. protocol: 'tags',
  1943. fn: function (){
  1944. var self=this;
  1945. return smalltalk.withContext(function($ctx1) {
  1946. var $1;
  1947. $1=self._tag_("time");
  1948. return $1;
  1949. }, function($ctx1) {$ctx1.fill(self,"time",{},globals.HTMLCanvas)})},
  1950. args: [],
  1951. source: "time\x0a\x09^ self tag: 'time'",
  1952. messageSends: ["tag:"],
  1953. referencedClasses: []
  1954. }),
  1955. globals.HTMLCanvas);
  1956. smalltalk.addMethod(
  1957. smalltalk.method({
  1958. selector: "title",
  1959. protocol: 'tags',
  1960. fn: function (){
  1961. var self=this;
  1962. return smalltalk.withContext(function($ctx1) {
  1963. var $1;
  1964. $1=self._tag_("title");
  1965. return $1;
  1966. }, function($ctx1) {$ctx1.fill(self,"title",{},globals.HTMLCanvas)})},
  1967. args: [],
  1968. source: "title\x0a\x09^ self tag: 'title'",
  1969. messageSends: ["tag:"],
  1970. referencedClasses: []
  1971. }),
  1972. globals.HTMLCanvas);
  1973. smalltalk.addMethod(
  1974. smalltalk.method({
  1975. selector: "tr",
  1976. protocol: 'tags',
  1977. fn: function (){
  1978. var self=this;
  1979. return smalltalk.withContext(function($ctx1) {
  1980. var $1;
  1981. $1=self._tag_("tr");
  1982. return $1;
  1983. }, function($ctx1) {$ctx1.fill(self,"tr",{},globals.HTMLCanvas)})},
  1984. args: [],
  1985. source: "tr\x0a\x09^ self tag: 'tr'",
  1986. messageSends: ["tag:"],
  1987. referencedClasses: []
  1988. }),
  1989. globals.HTMLCanvas);
  1990. smalltalk.addMethod(
  1991. smalltalk.method({
  1992. selector: "ul",
  1993. protocol: 'tags',
  1994. fn: function (){
  1995. var self=this;
  1996. return smalltalk.withContext(function($ctx1) {
  1997. var $1;
  1998. $1=self._tag_("ul");
  1999. return $1;
  2000. }, function($ctx1) {$ctx1.fill(self,"ul",{},globals.HTMLCanvas)})},
  2001. args: [],
  2002. source: "ul\x0a\x09^ self tag: 'ul'",
  2003. messageSends: ["tag:"],
  2004. referencedClasses: []
  2005. }),
  2006. globals.HTMLCanvas);
  2007. smalltalk.addMethod(
  2008. smalltalk.method({
  2009. selector: "ul:",
  2010. protocol: 'tags',
  2011. fn: function (anObject){
  2012. var self=this;
  2013. return smalltalk.withContext(function($ctx1) {
  2014. var $1;
  2015. $1=_st(self._ul())._with_(anObject);
  2016. return $1;
  2017. }, function($ctx1) {$ctx1.fill(self,"ul:",{anObject:anObject},globals.HTMLCanvas)})},
  2018. args: ["anObject"],
  2019. source: "ul: anObject\x0a\x09^ self ul with: anObject",
  2020. messageSends: ["with:", "ul"],
  2021. referencedClasses: []
  2022. }),
  2023. globals.HTMLCanvas);
  2024. smalltalk.addMethod(
  2025. smalltalk.method({
  2026. selector: "video",
  2027. protocol: 'tags',
  2028. fn: function (){
  2029. var self=this;
  2030. return smalltalk.withContext(function($ctx1) {
  2031. var $1;
  2032. $1=self._tag_("video");
  2033. return $1;
  2034. }, function($ctx1) {$ctx1.fill(self,"video",{},globals.HTMLCanvas)})},
  2035. args: [],
  2036. source: "video\x0a\x09^ self tag: 'video'",
  2037. messageSends: ["tag:"],
  2038. referencedClasses: []
  2039. }),
  2040. globals.HTMLCanvas);
  2041. smalltalk.addMethod(
  2042. smalltalk.method({
  2043. selector: "with:",
  2044. protocol: 'adding',
  2045. fn: function (anObject){
  2046. var self=this;
  2047. return smalltalk.withContext(function($ctx1) {
  2048. var $1;
  2049. $1=_st(self._root())._with_(anObject);
  2050. return $1;
  2051. }, function($ctx1) {$ctx1.fill(self,"with:",{anObject:anObject},globals.HTMLCanvas)})},
  2052. args: ["anObject"],
  2053. source: "with: anObject\x0a\x09^ self root with: anObject",
  2054. messageSends: ["with:", "root"],
  2055. referencedClasses: []
  2056. }),
  2057. globals.HTMLCanvas);
  2058. smalltalk.addMethod(
  2059. smalltalk.method({
  2060. selector: "initialize",
  2061. protocol: 'initialization',
  2062. fn: function (){
  2063. var self=this;
  2064. return smalltalk.withContext(function($ctx1) {
  2065. _st(jQuery)._basicAt_put_("allowJavaScriptCalls",true);
  2066. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},globals.HTMLCanvas.klass)})},
  2067. args: [],
  2068. source: "initialize\x0a\x09\x22Allow JS method calls for the jQuery object.\x0a\x09See boot.js DNU handling.\x22\x0a\x09\x0a\x09jQuery basicAt: 'allowJavaScriptCalls' put: true",
  2069. messageSends: ["basicAt:put:"],
  2070. referencedClasses: []
  2071. }),
  2072. globals.HTMLCanvas.klass);
  2073. smalltalk.addMethod(
  2074. smalltalk.method({
  2075. selector: "onJQuery:",
  2076. protocol: 'instance creation',
  2077. fn: function (aJQuery){
  2078. var self=this;
  2079. return smalltalk.withContext(function($ctx1) {
  2080. var $2,$3,$1;
  2081. $2=self._basicNew();
  2082. _st($2)._initializeFromJQuery_(aJQuery);
  2083. _st($2)._initialize();
  2084. $3=_st($2)._yourself();
  2085. $1=$3;
  2086. return $1;
  2087. }, function($ctx1) {$ctx1.fill(self,"onJQuery:",{aJQuery:aJQuery},globals.HTMLCanvas.klass)})},
  2088. args: ["aJQuery"],
  2089. source: "onJQuery: aJQuery\x0a\x09^ self basicNew\x0a\x09\x09initializeFromJQuery: aJQuery;\x0a\x09\x09initialize;\x0a\x09\x09yourself",
  2090. messageSends: ["initializeFromJQuery:", "basicNew", "initialize", "yourself"],
  2091. referencedClasses: []
  2092. }),
  2093. globals.HTMLCanvas.klass);
  2094. smalltalk.addClass('HTMLSnippet', globals.Object, ['snippets'], 'Canvas');
  2095. globals.HTMLSnippet.comment="My sole instance is the registry of html snippets.\x0a`HTMLSnippet current` is the public singleton instance.\x0a\x0aOn startup, it scans the document for any html elements\x0awith `'data-snippet=\x22foo\x22'` attribute and takes them off the document,\x0aremembering them in the store under the specified name.\x0aIt also install method #foo into HTMLCanvas dynamically.\x0a\x0aEvery html snippet should mark a 'caret', a place where contents\x0acan be inserted, by 'data-snippet=\x22*\x22' (a special name for caret).\x0aFor example:\x0a\x0a`<li data-snippet='menuelement' class='...'><a data-snippet='*'></a></li>`\x0a\x0adefines a list element with a link inside; the link itself is marked as a caret.\x0a\x0aYou can later issue\x0a\x0a`html menuelement href: '/foo'; with: 'A foo'`\x0a\x0ato insert the whole snippet and directly manipulate the caret, so it renders:\x0a\x0a`<li class='...'><a href='/foo'>A foo</a></li>`\x0a\x0aFor a self-careting tags (not very useful, but you do not need to fill class etc.\x0ayou can use\x0a\x0a`<div class='lots of classes' attr1='one' attr2='two' data-snippet='*bar'></div>`\x0a\x0aand in code later do:\x0a\x0a`html bar with: [ xxx ]`\x0a\x0ato render\x0a\x0a`<div class='lots of classes' attr1='one' attr2='two'>...added by xxx...</div>`";
  2096. smalltalk.addMethod(
  2097. smalltalk.method({
  2098. selector: "initializeFromJQuery:",
  2099. protocol: 'initialization',
  2100. fn: function (aJQuery){
  2101. var self=this;
  2102. return smalltalk.withContext(function($ctx1) {
  2103. _st(self._snippetsFromJQuery_(aJQuery))._do_((function(each){
  2104. return smalltalk.withContext(function($ctx2) {
  2105. return self._installSnippetFromJQuery_(_st(each)._asJQuery());
  2106. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,1)})}));
  2107. return self}, function($ctx1) {$ctx1.fill(self,"initializeFromJQuery:",{aJQuery:aJQuery},globals.HTMLSnippet)})},
  2108. args: ["aJQuery"],
  2109. source: "initializeFromJQuery: aJQuery\x0a\x09\x22Finds and takes out all snippets out of aJQuery.\x0a\x09Installs it into self.\x22\x0a\x09\x0a\x09(self snippetsFromJQuery: aJQuery) do: [ :each |\x0a\x09\x09self installSnippetFromJQuery: each asJQuery ]",
  2110. messageSends: ["do:", "snippetsFromJQuery:", "installSnippetFromJQuery:", "asJQuery"],
  2111. referencedClasses: []
  2112. }),
  2113. globals.HTMLSnippet);
  2114. smalltalk.addMethod(
  2115. smalltalk.method({
  2116. selector: "installSnippetFromJQuery:",
  2117. protocol: 'snippet installation',
  2118. fn: function (element){
  2119. var self=this;
  2120. var name;
  2121. return smalltalk.withContext(function($ctx1) {
  2122. var $1,$2;
  2123. name=_st(element)._attr_("data-snippet");
  2124. $1=_st(name).__eq("*");
  2125. if(! smalltalk.assert($1)){
  2126. $2=_st("^\x5c*"._asRegexp())._test_(name);
  2127. if(smalltalk.assert($2)){
  2128. name=_st(name)._allButFirst();
  2129. name;
  2130. _st(element)._attr_put_("data-snippet","*");
  2131. } else {
  2132. _st(element)._removeAttr_("data-snippet");
  2133. };
  2134. self._snippetAt_install_(name,_st(_st(element)._detach())._get_((0)));
  2135. };
  2136. return self}, function($ctx1) {$ctx1.fill(self,"installSnippetFromJQuery:",{element:element,name:name},globals.HTMLSnippet)})},
  2137. args: ["element"],
  2138. source: "installSnippetFromJQuery: element\x0a\x09| name |\x0a\x09name := element attr: 'data-snippet'.\x0a\x09name = '*' ifFalse: [\x0a\x09\x09('^\x5c*' asRegexp test: name)\x0a\x09\x09\x09ifTrue: [\x0a\x09\x09\x09\x09name := name allButFirst.\x0a\x09\x09\x09\x09element attr: 'data-snippet' put: '*' ]\x0a\x09\x09\x09ifFalse: [\x0a\x09\x09\x09\x09element removeAttr: 'data-snippet' ].\x0a\x09\x09self snippetAt: name install: (element detach get: 0) ]",
  2139. messageSends: ["attr:", "ifFalse:", "=", "ifTrue:ifFalse:", "test:", "asRegexp", "allButFirst", "attr:put:", "removeAttr:", "snippetAt:install:", "get:", "detach"],
  2140. referencedClasses: []
  2141. }),
  2142. globals.HTMLSnippet);
  2143. smalltalk.addMethod(
  2144. smalltalk.method({
  2145. selector: "snippetAt:",
  2146. protocol: 'accessing',
  2147. fn: function (aString){
  2148. var self=this;
  2149. return smalltalk.withContext(function($ctx1) {
  2150. var $1;
  2151. $1=_st(self._snippets())._at_(aString);
  2152. return $1;
  2153. }, function($ctx1) {$ctx1.fill(self,"snippetAt:",{aString:aString},globals.HTMLSnippet)})},
  2154. args: ["aString"],
  2155. source: "snippetAt: aString\x0a\x09^ self snippets at: aString",
  2156. messageSends: ["at:", "snippets"],
  2157. referencedClasses: []
  2158. }),
  2159. globals.HTMLSnippet);
  2160. smalltalk.addMethod(
  2161. smalltalk.method({
  2162. selector: "snippetAt:compile:",
  2163. protocol: 'method generation',
  2164. fn: function (aString,anElement){
  2165. var self=this;
  2166. function $ClassBuilder(){return globals.ClassBuilder||(typeof ClassBuilder=="undefined"?nil:ClassBuilder)}
  2167. function $HTMLCanvas(){return globals.HTMLCanvas||(typeof HTMLCanvas=="undefined"?nil:HTMLCanvas)}
  2168. return smalltalk.withContext(function($ctx1) {
  2169. _st(_st($ClassBuilder())._new())._installMethod_forClass_protocol_(_st(_st((function(htmlReceiver){
  2170. return smalltalk.withContext(function($ctx2) {
  2171. return _st(htmlReceiver)._snippet_(anElement);
  2172. }, function($ctx2) {$ctx2.fillBlock({htmlReceiver:htmlReceiver},$ctx1,1)})}))._currySelf())._asCompiledMethod_(aString),$HTMLCanvas(),"**snippets");
  2173. return self}, function($ctx1) {$ctx1.fill(self,"snippetAt:compile:",{aString:aString,anElement:anElement},globals.HTMLSnippet)})},
  2174. args: ["aString", "anElement"],
  2175. source: "snippetAt: aString compile: anElement\x0a\x09\x22Method generation for the snippet.\x0a\x09The selector is aString, the method block uses anElement\x22\x0a\x09\x0a\x09ClassBuilder new\x0a\x09\x09installMethod: ([ :htmlReceiver | htmlReceiver snippet: anElement ]\x0a\x09\x09\x09currySelf asCompiledMethod: aString)\x0a\x09\x09forClass: HTMLCanvas\x0a\x09\x09protocol: '**snippets'",
  2176. messageSends: ["installMethod:forClass:protocol:", "new", "asCompiledMethod:", "currySelf", "snippet:"],
  2177. referencedClasses: ["ClassBuilder", "HTMLCanvas"]
  2178. }),
  2179. globals.HTMLSnippet);
  2180. smalltalk.addMethod(
  2181. smalltalk.method({
  2182. selector: "snippetAt:install:",
  2183. protocol: 'snippet installation',
  2184. fn: function (aString,anElement){
  2185. var self=this;
  2186. return smalltalk.withContext(function($ctx1) {
  2187. _st(self._snippets())._at_put_(aString,anElement);
  2188. self._snippetAt_compile_(aString,anElement);
  2189. return self}, function($ctx1) {$ctx1.fill(self,"snippetAt:install:",{aString:aString,anElement:anElement},globals.HTMLSnippet)})},
  2190. args: ["aString", "anElement"],
  2191. source: "snippetAt: aString install: anElement\x0a\x09self snippets at: aString put: anElement.\x0a\x09self snippetAt: aString compile: anElement",
  2192. messageSends: ["at:put:", "snippets", "snippetAt:compile:"],
  2193. referencedClasses: []
  2194. }),
  2195. globals.HTMLSnippet);
  2196. smalltalk.addMethod(
  2197. smalltalk.method({
  2198. selector: "snippets",
  2199. protocol: 'accessing',
  2200. fn: function (){
  2201. var self=this;
  2202. return smalltalk.withContext(function($ctx1) {
  2203. var $2,$1;
  2204. $2=self["@snippets"];
  2205. if(($receiver = $2) == nil || $receiver == null){
  2206. self["@snippets"]=globals.HashedCollection._newFromPairs_([]);
  2207. $1=self["@snippets"];
  2208. } else {
  2209. $1=$2;
  2210. };
  2211. return $1;
  2212. }, function($ctx1) {$ctx1.fill(self,"snippets",{},globals.HTMLSnippet)})},
  2213. args: [],
  2214. source: "snippets\x0a\x09^ snippets ifNil: [ snippets := #{} ]",
  2215. messageSends: ["ifNil:"],
  2216. referencedClasses: []
  2217. }),
  2218. globals.HTMLSnippet);
  2219. smalltalk.addMethod(
  2220. smalltalk.method({
  2221. selector: "snippetsFromJQuery:",
  2222. protocol: 'private',
  2223. fn: function (aJQuery){
  2224. var self=this;
  2225. return smalltalk.withContext(function($ctx1) {
  2226. var $1;
  2227. $1=_st(_st(aJQuery)._find_("[data-snippet]"))._toArray();
  2228. return $1;
  2229. }, function($ctx1) {$ctx1.fill(self,"snippetsFromJQuery:",{aJQuery:aJQuery},globals.HTMLSnippet)})},
  2230. args: ["aJQuery"],
  2231. source: "snippetsFromJQuery: aJQuery\x0a\x09^ (aJQuery find: '[data-snippet]') toArray",
  2232. messageSends: ["toArray", "find:"],
  2233. referencedClasses: []
  2234. }),
  2235. globals.HTMLSnippet);
  2236. globals.HTMLSnippet.klass.iVarNames = ['current'];
  2237. smalltalk.addMethod(
  2238. smalltalk.method({
  2239. selector: "current",
  2240. protocol: 'instance creation',
  2241. fn: function (){
  2242. var self=this;
  2243. var $1;
  2244. $1=self["@current"];
  2245. return $1;
  2246. },
  2247. args: [],
  2248. source: "current\x0a\x09^ current",
  2249. messageSends: [],
  2250. referencedClasses: []
  2251. }),
  2252. globals.HTMLSnippet.klass);
  2253. smalltalk.addMethod(
  2254. smalltalk.method({
  2255. selector: "ensureCurrent",
  2256. protocol: 'initialization',
  2257. fn: function (){
  2258. var self=this;
  2259. return smalltalk.withContext(function($ctx1) {
  2260. var $1,$2,$3;
  2261. $1=self["@current"];
  2262. if(($receiver = $1) == nil || $receiver == null){
  2263. $2=globals.HTMLSnippet.klass.superclass.fn.prototype._new.apply(_st(self), []);
  2264. _st($2)._initializeFromJQuery_(_st(document)._asJQuery());
  2265. $3=_st($2)._yourself();
  2266. self["@current"]=$3;
  2267. self["@current"];
  2268. } else {
  2269. $1;
  2270. };
  2271. return self}, function($ctx1) {$ctx1.fill(self,"ensureCurrent",{},globals.HTMLSnippet.klass)})},
  2272. args: [],
  2273. source: "ensureCurrent\x0a\x09current ifNil: [\x0a\x09\x09current := super new\x0a\x09\x09\x09initializeFromJQuery: document asJQuery;\x0a\x09\x09\x09yourself ]",
  2274. messageSends: ["ifNil:", "initializeFromJQuery:", "new", "asJQuery", "yourself"],
  2275. referencedClasses: []
  2276. }),
  2277. globals.HTMLSnippet.klass);
  2278. smalltalk.addMethod(
  2279. smalltalk.method({
  2280. selector: "initialize",
  2281. protocol: 'initialization',
  2282. fn: function (){
  2283. var self=this;
  2284. return smalltalk.withContext(function($ctx1) {
  2285. var $1;
  2286. globals.HTMLSnippet.klass.superclass.fn.prototype._initialize.apply(_st(self), []);
  2287. $1=self._isDOMAvailable();
  2288. if(smalltalk.assert($1)){
  2289. self._ensureCurrent();
  2290. };
  2291. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},globals.HTMLSnippet.klass)})},
  2292. args: [],
  2293. source: "initialize\x0a\x09super initialize.\x0a\x09self isDOMAvailable ifTrue: [\x0a\x09\x09self ensureCurrent ]",
  2294. messageSends: ["initialize", "ifTrue:", "isDOMAvailable", "ensureCurrent"],
  2295. referencedClasses: []
  2296. }),
  2297. globals.HTMLSnippet.klass);
  2298. smalltalk.addMethod(
  2299. smalltalk.method({
  2300. selector: "isDOMAvailable",
  2301. protocol: 'instance creation',
  2302. fn: function (){
  2303. var self=this;
  2304. return smalltalk.withContext(function($ctx1) {
  2305. return typeof document !== 'undefined' ;
  2306. return self}, function($ctx1) {$ctx1.fill(self,"isDOMAvailable",{},globals.HTMLSnippet.klass)})},
  2307. args: [],
  2308. source: "isDOMAvailable\x0a\x09< return typeof document !== 'undefined' >",
  2309. messageSends: [],
  2310. referencedClasses: []
  2311. }),
  2312. globals.HTMLSnippet.klass);
  2313. smalltalk.addMethod(
  2314. smalltalk.method({
  2315. selector: "new",
  2316. protocol: 'instance creation',
  2317. fn: function (){
  2318. var self=this;
  2319. return smalltalk.withContext(function($ctx1) {
  2320. self._shouldNotImplement();
  2321. return self}, function($ctx1) {$ctx1.fill(self,"new",{},globals.HTMLSnippet.klass)})},
  2322. args: [],
  2323. source: "new\x0a\x09self shouldNotImplement",
  2324. messageSends: ["shouldNotImplement"],
  2325. referencedClasses: []
  2326. }),
  2327. globals.HTMLSnippet.klass);
  2328. smalltalk.addClass('TagBrush', globals.Object, ['canvas', 'element'], 'Canvas');
  2329. globals.TagBrush.comment="I am a brush for building a single DOM element (which I hold onto).\x0a\x0aAll tags but `<style>` are instances of me (see the `StyleBrush` class).\x0a\x0a## API\x0a\x0a1. Nesting\x0a\x0a Use `#with:` to nest tags. `#with:` can take aString, `TagBrush` instance, a `Widget` or block closure as parameter.\x0a\x0a Example: `aTag with: aString with: aCanvas div`\x0a\x0a2. Events\x0a\x0a The `events` protocol contains all methods related to events (delegating event handling to jQuery).\x0a\x0a Example: `aTag onClick: [ window alert: 'clicked' ]`\x0a\x0a3. Attributes\x0a\x0a The `attribute` protocol contains methods for attribute manipulation (delegating to jQuery too).\x0a\x0a Example: `aTag at: 'value' put: 'hello world'`\x0a\x0a4. Raw access and jQuery\x0a\x0a The `#element` method can be used to access to JavaScript DOM element object.\x0a\x0a Example: `aTag element cssStyle`\x0a\x0a Use `#asJQuery` to access to the receiver converted into a jQuery object.\x0a\x0a Example: `aTag asJQuery css: 'color' value: 'red'`";
  2330. smalltalk.addMethod(
  2331. smalltalk.method({
  2332. selector: "accesskey:",
  2333. protocol: 'attributes',
  2334. fn: function (aString){
  2335. var self=this;
  2336. return smalltalk.withContext(function($ctx1) {
  2337. self._at_put_("accesskey",aString);
  2338. return self}, function($ctx1) {$ctx1.fill(self,"accesskey:",{aString:aString},globals.TagBrush)})},
  2339. args: ["aString"],
  2340. source: "accesskey: aString\x0a\x09self at: 'accesskey' put: aString",
  2341. messageSends: ["at:put:"],
  2342. referencedClasses: []
  2343. }),
  2344. globals.TagBrush);
  2345. smalltalk.addMethod(
  2346. smalltalk.method({
  2347. selector: "action:",
  2348. protocol: 'attributes',
  2349. fn: function (aString){
  2350. var self=this;
  2351. return smalltalk.withContext(function($ctx1) {
  2352. self._at_put_("action",aString);
  2353. return self}, function($ctx1) {$ctx1.fill(self,"action:",{aString:aString},globals.TagBrush)})},
  2354. args: ["aString"],
  2355. source: "action: aString\x0a\x09self at: 'action' put: aString",
  2356. messageSends: ["at:put:"],
  2357. referencedClasses: []
  2358. }),
  2359. globals.TagBrush);
  2360. smalltalk.addMethod(
  2361. smalltalk.method({
  2362. selector: "addBrush:",
  2363. protocol: 'adding',
  2364. fn: function (aTagBrush){
  2365. var self=this;
  2366. return smalltalk.withContext(function($ctx1) {
  2367. self._appendChild_(_st(aTagBrush)._element());
  2368. return aTagBrush;
  2369. }, function($ctx1) {$ctx1.fill(self,"addBrush:",{aTagBrush:aTagBrush},globals.TagBrush)})},
  2370. args: ["aTagBrush"],
  2371. source: "addBrush: aTagBrush\x0a\x09self appendChild: aTagBrush element.\x0a\x09^ aTagBrush",
  2372. messageSends: ["appendChild:", "element"],
  2373. referencedClasses: []
  2374. }),
  2375. globals.TagBrush);
  2376. smalltalk.addMethod(
  2377. smalltalk.method({
  2378. selector: "align:",
  2379. protocol: 'attributes',
  2380. fn: function (aString){
  2381. var self=this;
  2382. return smalltalk.withContext(function($ctx1) {
  2383. self._at_put_("align",aString);
  2384. return self}, function($ctx1) {$ctx1.fill(self,"align:",{aString:aString},globals.TagBrush)})},
  2385. args: ["aString"],
  2386. source: "align: aString\x0a\x09self at: 'align' put: aString",
  2387. messageSends: ["at:put:"],
  2388. referencedClasses: []
  2389. }),
  2390. globals.TagBrush);
  2391. smalltalk.addMethod(
  2392. smalltalk.method({
  2393. selector: "alt:",
  2394. protocol: 'attributes',
  2395. fn: function (aString){
  2396. var self=this;
  2397. return smalltalk.withContext(function($ctx1) {
  2398. self._at_put_("alt",aString);
  2399. return self}, function($ctx1) {$ctx1.fill(self,"alt:",{aString:aString},globals.TagBrush)})},
  2400. args: ["aString"],
  2401. source: "alt: aString\x0a\x09self at: 'alt' put: aString",
  2402. messageSends: ["at:put:"],
  2403. referencedClasses: []
  2404. }),
  2405. globals.TagBrush);
  2406. smalltalk.addMethod(
  2407. smalltalk.method({
  2408. selector: "append:",
  2409. protocol: 'adding',
  2410. fn: function (anObject){
  2411. var self=this;
  2412. return smalltalk.withContext(function($ctx1) {
  2413. _st(anObject)._appendToBrush_(self);
  2414. return self}, function($ctx1) {$ctx1.fill(self,"append:",{anObject:anObject},globals.TagBrush)})},
  2415. args: ["anObject"],
  2416. source: "append: anObject\x0a\x09anObject appendToBrush: self",
  2417. messageSends: ["appendToBrush:"],
  2418. referencedClasses: []
  2419. }),
  2420. globals.TagBrush);
  2421. smalltalk.addMethod(
  2422. smalltalk.method({
  2423. selector: "appendBlock:",
  2424. protocol: 'adding',
  2425. fn: function (aBlock){
  2426. var self=this;
  2427. var root;
  2428. return smalltalk.withContext(function($ctx1) {
  2429. root=_st(self["@canvas"])._root();
  2430. _st(self["@canvas"])._root_(self);
  2431. $ctx1.sendIdx["root:"]=1;
  2432. _st(aBlock)._value_(self["@canvas"]);
  2433. _st(self["@canvas"])._root_(root);
  2434. return self}, function($ctx1) {$ctx1.fill(self,"appendBlock:",{aBlock:aBlock,root:root},globals.TagBrush)})},
  2435. args: ["aBlock"],
  2436. source: "appendBlock: aBlock\x0a\x09| root |\x0a\x09root := canvas root.\x0a\x09canvas root: self.\x0a\x09aBlock value: canvas.\x0a\x09canvas root: root",
  2437. messageSends: ["root", "root:", "value:"],
  2438. referencedClasses: []
  2439. }),
  2440. globals.TagBrush);
  2441. smalltalk.addMethod(
  2442. smalltalk.method({
  2443. selector: "appendChild:",
  2444. protocol: 'adding',
  2445. fn: function (anElement){
  2446. var self=this;
  2447. return smalltalk.withContext(function($ctx1) {
  2448. var element=self['@element'];
  2449. if (null == element.canHaveChildren || element.canHaveChildren) {
  2450. element.appendChild(anElement);
  2451. } else {
  2452. element.text = String(element.text) + anElement.innerHTML;
  2453. } ;
  2454. return self}, function($ctx1) {$ctx1.fill(self,"appendChild:",{anElement:anElement},globals.TagBrush)})},
  2455. args: ["anElement"],
  2456. source: "appendChild: anElement\x0a\x09\x22In IE7 and IE8 appendChild fails on several node types. So we need to check\x22\x0a\x09<var element=self['@element'];\x0a\x09if (null == element.canHaveChildren || element.canHaveChildren) {\x0a\x09\x09element.appendChild(anElement);\x0a\x09} else {\x0a\x09\x09element.text = String(element.text) + anElement.innerHTML;\x0a\x09} >",
  2457. messageSends: [],
  2458. referencedClasses: []
  2459. }),
  2460. globals.TagBrush);
  2461. smalltalk.addMethod(
  2462. smalltalk.method({
  2463. selector: "appendDocumentFragment:",
  2464. protocol: 'private',
  2465. fn: function (anElement){
  2466. var self=this;
  2467. return smalltalk.withContext(function($ctx1) {
  2468. var element=self['@element'].appendChild(anElement["@element"]);
  2469. return self}, function($ctx1) {$ctx1.fill(self,"appendDocumentFragment:",{anElement:anElement},globals.TagBrush)})},
  2470. args: ["anElement"],
  2471. source: "appendDocumentFragment: anElement\x0a\x09<var element=self['@element'].appendChild(anElement[\x22@element\x22])>",
  2472. messageSends: [],
  2473. referencedClasses: []
  2474. }),
  2475. globals.TagBrush);
  2476. smalltalk.addMethod(
  2477. smalltalk.method({
  2478. selector: "appendString:",
  2479. protocol: 'adding',
  2480. fn: function (aString){
  2481. var self=this;
  2482. return smalltalk.withContext(function($ctx1) {
  2483. self._appendChild_(self._createTextNodeFor_(aString));
  2484. return self}, function($ctx1) {$ctx1.fill(self,"appendString:",{aString:aString},globals.TagBrush)})},
  2485. args: ["aString"],
  2486. source: "appendString: aString\x0a\x09self appendChild: (self createTextNodeFor: aString)",
  2487. messageSends: ["appendChild:", "createTextNodeFor:"],
  2488. referencedClasses: []
  2489. }),
  2490. globals.TagBrush);
  2491. smalltalk.addMethod(
  2492. smalltalk.method({
  2493. selector: "appendToBrush:",
  2494. protocol: 'adding',
  2495. fn: function (aTagBrush){
  2496. var self=this;
  2497. return smalltalk.withContext(function($ctx1) {
  2498. _st(aTagBrush)._addBrush_(self);
  2499. return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},globals.TagBrush)})},
  2500. args: ["aTagBrush"],
  2501. source: "appendToBrush: aTagBrush\x0a\x09aTagBrush addBrush: self",
  2502. messageSends: ["addBrush:"],
  2503. referencedClasses: []
  2504. }),
  2505. globals.TagBrush);
  2506. smalltalk.addMethod(
  2507. smalltalk.method({
  2508. selector: "asJQuery",
  2509. protocol: 'converting',
  2510. fn: function (){
  2511. var self=this;
  2512. return smalltalk.withContext(function($ctx1) {
  2513. var $1;
  2514. $1=_st(self._element())._asJQuery();
  2515. return $1;
  2516. }, function($ctx1) {$ctx1.fill(self,"asJQuery",{},globals.TagBrush)})},
  2517. args: [],
  2518. source: "asJQuery\x0a\x09^ self element asJQuery",
  2519. messageSends: ["asJQuery", "element"],
  2520. referencedClasses: []
  2521. }),
  2522. globals.TagBrush);
  2523. smalltalk.addMethod(
  2524. smalltalk.method({
  2525. selector: "asJQueryInContext:",
  2526. protocol: 'converting',
  2527. fn: function (aContext){
  2528. var self=this;
  2529. return smalltalk.withContext(function($ctx1) {
  2530. var $1;
  2531. $1=_st(self._element())._asJQueryInContext_(aContext);
  2532. return $1;
  2533. }, function($ctx1) {$ctx1.fill(self,"asJQueryInContext:",{aContext:aContext},globals.TagBrush)})},
  2534. args: ["aContext"],
  2535. source: "asJQueryInContext: aContext\x0a\x09^ self element asJQueryInContext: aContext",
  2536. messageSends: ["asJQueryInContext:", "element"],
  2537. referencedClasses: []
  2538. }),
  2539. globals.TagBrush);
  2540. smalltalk.addMethod(
  2541. smalltalk.method({
  2542. selector: "at:",
  2543. protocol: 'attributes',
  2544. fn: function (aString){
  2545. var self=this;
  2546. function $Collection(){return globals.Collection||(typeof Collection=="undefined"?nil:Collection)}
  2547. return smalltalk.withContext(function($ctx1) {
  2548. var $1;
  2549. $1=self._at_ifAbsent_(aString,(function(){
  2550. return smalltalk.withContext(function($ctx2) {
  2551. return _st(_st($Collection())._new())._errorNotFound();
  2552. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}));
  2553. return $1;
  2554. }, function($ctx1) {$ctx1.fill(self,"at:",{aString:aString},globals.TagBrush)})},
  2555. args: ["aString"],
  2556. source: "at: aString\x0a\x09^ self at: aString ifAbsent: [ Collection new errorNotFound ]",
  2557. messageSends: ["at:ifAbsent:", "errorNotFound", "new"],
  2558. referencedClasses: ["Collection"]
  2559. }),
  2560. globals.TagBrush);
  2561. smalltalk.addMethod(
  2562. smalltalk.method({
  2563. selector: "at:ifAbsent:",
  2564. protocol: 'attributes',
  2565. fn: function (aString,aBlock){
  2566. var self=this;
  2567. return smalltalk.withContext(function($ctx1) {
  2568. return self['@element'].hasAttribute(aString) ? self['@element'].getAttribute(aString) : aBlock._value();
  2569. return self}, function($ctx1) {$ctx1.fill(self,"at:ifAbsent:",{aString:aString,aBlock:aBlock},globals.TagBrush)})},
  2570. args: ["aString", "aBlock"],
  2571. source: "at: aString ifAbsent: aBlock\x0a\x09<return self['@element'].hasAttribute(aString) ? self['@element'].getAttribute(aString) : aBlock._value()>",
  2572. messageSends: [],
  2573. referencedClasses: []
  2574. }),
  2575. globals.TagBrush);
  2576. smalltalk.addMethod(
  2577. smalltalk.method({
  2578. selector: "at:put:",
  2579. protocol: 'attributes',
  2580. fn: function (aString,aValue){
  2581. var self=this;
  2582. return smalltalk.withContext(function($ctx1) {
  2583. self['@element'].setAttribute(aString, aValue); return aValue;
  2584. return self}, function($ctx1) {$ctx1.fill(self,"at:put:",{aString:aString,aValue:aValue},globals.TagBrush)})},
  2585. args: ["aString", "aValue"],
  2586. source: "at: aString put: aValue\x0a\x09<self['@element'].setAttribute(aString, aValue); return aValue>",
  2587. messageSends: [],
  2588. referencedClasses: []
  2589. }),
  2590. globals.TagBrush);
  2591. smalltalk.addMethod(
  2592. smalltalk.method({
  2593. selector: "class:",
  2594. protocol: 'attributes',
  2595. fn: function (aString){
  2596. var self=this;
  2597. return smalltalk.withContext(function($ctx1) {
  2598. self['@element'].className = aString;
  2599. return self}, function($ctx1) {$ctx1.fill(self,"class:",{aString:aString},globals.TagBrush)})},
  2600. args: ["aString"],
  2601. source: "class: aString\x0a\x09<self['@element'].className = aString>",
  2602. messageSends: [],
  2603. referencedClasses: []
  2604. }),
  2605. globals.TagBrush);
  2606. smalltalk.addMethod(
  2607. smalltalk.method({
  2608. selector: "cols:",
  2609. protocol: 'attributes',
  2610. fn: function (aString){
  2611. var self=this;
  2612. return smalltalk.withContext(function($ctx1) {
  2613. self._at_put_("cols",aString);
  2614. return self}, function($ctx1) {$ctx1.fill(self,"cols:",{aString:aString},globals.TagBrush)})},
  2615. args: ["aString"],
  2616. source: "cols: aString\x0a\x09self at: 'cols' put: aString",
  2617. messageSends: ["at:put:"],
  2618. referencedClasses: []
  2619. }),
  2620. globals.TagBrush);
  2621. smalltalk.addMethod(
  2622. smalltalk.method({
  2623. selector: "contenteditable:",
  2624. protocol: 'attributes',
  2625. fn: function (aString){
  2626. var self=this;
  2627. return smalltalk.withContext(function($ctx1) {
  2628. self._at_put_("contenteditable",aString);
  2629. return self}, function($ctx1) {$ctx1.fill(self,"contenteditable:",{aString:aString},globals.TagBrush)})},
  2630. args: ["aString"],
  2631. source: "contenteditable: aString\x0a\x09self at: 'contenteditable' put: aString",
  2632. messageSends: ["at:put:"],
  2633. referencedClasses: []
  2634. }),
  2635. globals.TagBrush);
  2636. smalltalk.addMethod(
  2637. smalltalk.method({
  2638. selector: "contents:",
  2639. protocol: 'adding',
  2640. fn: function (anObject){
  2641. var self=this;
  2642. return smalltalk.withContext(function($ctx1) {
  2643. var $1;
  2644. self._empty();
  2645. $1=self._append_(anObject);
  2646. return self}, function($ctx1) {$ctx1.fill(self,"contents:",{anObject:anObject},globals.TagBrush)})},
  2647. args: ["anObject"],
  2648. source: "contents: anObject\x0a\x09self\x0a\x09empty;\x0a\x09append: anObject",
  2649. messageSends: ["empty", "append:"],
  2650. referencedClasses: []
  2651. }),
  2652. globals.TagBrush);
  2653. smalltalk.addMethod(
  2654. smalltalk.method({
  2655. selector: "contextmenu:",
  2656. protocol: 'attributes',
  2657. fn: function (aString){
  2658. var self=this;
  2659. return smalltalk.withContext(function($ctx1) {
  2660. self._at_put_("contextmenu",aString);
  2661. return self}, function($ctx1) {$ctx1.fill(self,"contextmenu:",{aString:aString},globals.TagBrush)})},
  2662. args: ["aString"],
  2663. source: "contextmenu: aString\x0a\x09self at: 'contextmenu' put: aString",
  2664. messageSends: ["at:put:"],
  2665. referencedClasses: []
  2666. }),
  2667. globals.TagBrush);
  2668. smalltalk.addMethod(
  2669. smalltalk.method({
  2670. selector: "createElementFor:",
  2671. protocol: 'private',
  2672. fn: function (aString){
  2673. var self=this;
  2674. return smalltalk.withContext(function($ctx1) {
  2675. return document.createElement(String(aString));
  2676. return self}, function($ctx1) {$ctx1.fill(self,"createElementFor:",{aString:aString},globals.TagBrush)})},
  2677. args: ["aString"],
  2678. source: "createElementFor: aString\x0a\x09<return document.createElement(String(aString))>",
  2679. messageSends: [],
  2680. referencedClasses: []
  2681. }),
  2682. globals.TagBrush);
  2683. smalltalk.addMethod(
  2684. smalltalk.method({
  2685. selector: "createTextNodeFor:",
  2686. protocol: 'private',
  2687. fn: function (aString){
  2688. var self=this;
  2689. return smalltalk.withContext(function($ctx1) {
  2690. return document.createTextNode(String(aString));
  2691. return self}, function($ctx1) {$ctx1.fill(self,"createTextNodeFor:",{aString:aString},globals.TagBrush)})},
  2692. args: ["aString"],
  2693. source: "createTextNodeFor: aString\x0a\x09<return document.createTextNode(String(aString))>",
  2694. messageSends: [],
  2695. referencedClasses: []
  2696. }),
  2697. globals.TagBrush);
  2698. smalltalk.addMethod(
  2699. smalltalk.method({
  2700. selector: "draggable:",
  2701. protocol: 'attributes',
  2702. fn: function (aString){
  2703. var self=this;
  2704. return smalltalk.withContext(function($ctx1) {
  2705. self._at_put_("draggable",aString);
  2706. return self}, function($ctx1) {$ctx1.fill(self,"draggable:",{aString:aString},globals.TagBrush)})},
  2707. args: ["aString"],
  2708. source: "draggable: aString\x0a\x09self at: 'draggable' put: aString",
  2709. messageSends: ["at:put:"],
  2710. referencedClasses: []
  2711. }),
  2712. globals.TagBrush);
  2713. smalltalk.addMethod(
  2714. smalltalk.method({
  2715. selector: "element",
  2716. protocol: 'accessing',
  2717. fn: function (){
  2718. var self=this;
  2719. var $1;
  2720. $1=self["@element"];
  2721. return $1;
  2722. },
  2723. args: [],
  2724. source: "element\x0a\x09^ element",
  2725. messageSends: [],
  2726. referencedClasses: []
  2727. }),
  2728. globals.TagBrush);
  2729. smalltalk.addMethod(
  2730. smalltalk.method({
  2731. selector: "empty",
  2732. protocol: 'adding',
  2733. fn: function (){
  2734. var self=this;
  2735. return smalltalk.withContext(function($ctx1) {
  2736. _st(self._asJQuery())._empty();
  2737. return self}, function($ctx1) {$ctx1.fill(self,"empty",{},globals.TagBrush)})},
  2738. args: [],
  2739. source: "empty\x0a\x09self asJQuery empty",
  2740. messageSends: ["empty", "asJQuery"],
  2741. referencedClasses: []
  2742. }),
  2743. globals.TagBrush);
  2744. smalltalk.addMethod(
  2745. smalltalk.method({
  2746. selector: "for:",
  2747. protocol: 'attributes',
  2748. fn: function (aString){
  2749. var self=this;
  2750. return smalltalk.withContext(function($ctx1) {
  2751. self._at_put_("for",aString);
  2752. return self}, function($ctx1) {$ctx1.fill(self,"for:",{aString:aString},globals.TagBrush)})},
  2753. args: ["aString"],
  2754. source: "for: aString\x0a\x09self at: 'for' put: aString",
  2755. messageSends: ["at:put:"],
  2756. referencedClasses: []
  2757. }),
  2758. globals.TagBrush);
  2759. smalltalk.addMethod(
  2760. smalltalk.method({
  2761. selector: "height:",
  2762. protocol: 'attributes',
  2763. fn: function (aString){
  2764. var self=this;
  2765. return smalltalk.withContext(function($ctx1) {
  2766. self._at_put_("height",aString);
  2767. return self}, function($ctx1) {$ctx1.fill(self,"height:",{aString:aString},globals.TagBrush)})},
  2768. args: ["aString"],
  2769. source: "height: aString\x0a\x09self at: 'height' put: aString",
  2770. messageSends: ["at:put:"],
  2771. referencedClasses: []
  2772. }),
  2773. globals.TagBrush);
  2774. smalltalk.addMethod(
  2775. smalltalk.method({
  2776. selector: "hidden",
  2777. protocol: 'attributes',
  2778. fn: function (){
  2779. var self=this;
  2780. return smalltalk.withContext(function($ctx1) {
  2781. self._at_put_("hidden","hidden");
  2782. return self}, function($ctx1) {$ctx1.fill(self,"hidden",{},globals.TagBrush)})},
  2783. args: [],
  2784. source: "hidden\x0a\x09self at: 'hidden' put: 'hidden'",
  2785. messageSends: ["at:put:"],
  2786. referencedClasses: []
  2787. }),
  2788. globals.TagBrush);
  2789. smalltalk.addMethod(
  2790. smalltalk.method({
  2791. selector: "href:",
  2792. protocol: 'attributes',
  2793. fn: function (aString){
  2794. var self=this;
  2795. return smalltalk.withContext(function($ctx1) {
  2796. self._at_put_("href",aString);
  2797. return self}, function($ctx1) {$ctx1.fill(self,"href:",{aString:aString},globals.TagBrush)})},
  2798. args: ["aString"],
  2799. source: "href: aString\x0a\x09self at: 'href' put: aString",
  2800. messageSends: ["at:put:"],
  2801. referencedClasses: []
  2802. }),
  2803. globals.TagBrush);
  2804. smalltalk.addMethod(
  2805. smalltalk.method({
  2806. selector: "id:",
  2807. protocol: 'attributes',
  2808. fn: function (aString){
  2809. var self=this;
  2810. return smalltalk.withContext(function($ctx1) {
  2811. self._at_put_("id",aString);
  2812. return self}, function($ctx1) {$ctx1.fill(self,"id:",{aString:aString},globals.TagBrush)})},
  2813. args: ["aString"],
  2814. source: "id: aString\x0a\x09self at: 'id' put: aString",
  2815. messageSends: ["at:put:"],
  2816. referencedClasses: []
  2817. }),
  2818. globals.TagBrush);
  2819. smalltalk.addMethod(
  2820. smalltalk.method({
  2821. selector: "initializeFromJQuery:canvas:",
  2822. protocol: 'initialization',
  2823. fn: function (aJQuery,aCanvas){
  2824. var self=this;
  2825. return smalltalk.withContext(function($ctx1) {
  2826. self["@element"]=_st(aJQuery)._get_((0));
  2827. self["@canvas"]=aCanvas;
  2828. return self}, function($ctx1) {$ctx1.fill(self,"initializeFromJQuery:canvas:",{aJQuery:aJQuery,aCanvas:aCanvas},globals.TagBrush)})},
  2829. args: ["aJQuery", "aCanvas"],
  2830. source: "initializeFromJQuery: aJQuery canvas: aCanvas\x0a\x09element := aJQuery get: 0.\x0a\x09canvas := aCanvas",
  2831. messageSends: ["get:"],
  2832. referencedClasses: []
  2833. }),
  2834. globals.TagBrush);
  2835. smalltalk.addMethod(
  2836. smalltalk.method({
  2837. selector: "initializeFromString:canvas:",
  2838. protocol: 'initialization',
  2839. fn: function (aString,aCanvas){
  2840. var self=this;
  2841. return smalltalk.withContext(function($ctx1) {
  2842. self["@element"]=self._createElementFor_(aString);
  2843. self["@canvas"]=aCanvas;
  2844. return self}, function($ctx1) {$ctx1.fill(self,"initializeFromString:canvas:",{aString:aString,aCanvas:aCanvas},globals.TagBrush)})},
  2845. args: ["aString", "aCanvas"],
  2846. source: "initializeFromString: aString canvas: aCanvas\x0a\x09element := self createElementFor: aString.\x0a\x09canvas := aCanvas",
  2847. messageSends: ["createElementFor:"],
  2848. referencedClasses: []
  2849. }),
  2850. globals.TagBrush);
  2851. smalltalk.addMethod(
  2852. smalltalk.method({
  2853. selector: "media:",
  2854. protocol: 'attributes',
  2855. fn: function (aString){
  2856. var self=this;
  2857. return smalltalk.withContext(function($ctx1) {
  2858. self._at_put_("media",aString);
  2859. return self}, function($ctx1) {$ctx1.fill(self,"media:",{aString:aString},globals.TagBrush)})},
  2860. args: ["aString"],
  2861. source: "media: aString\x0a\x09self at: 'media' put: aString",
  2862. messageSends: ["at:put:"],
  2863. referencedClasses: []
  2864. }),
  2865. globals.TagBrush);
  2866. smalltalk.addMethod(
  2867. smalltalk.method({
  2868. selector: "method:",
  2869. protocol: 'attributes',
  2870. fn: function (aString){
  2871. var self=this;
  2872. return smalltalk.withContext(function($ctx1) {
  2873. self._at_put_("method",aString);
  2874. return self}, function($ctx1) {$ctx1.fill(self,"method:",{aString:aString},globals.TagBrush)})},
  2875. args: ["aString"],
  2876. source: "method: aString\x0a\x09self at: 'method' put: aString",
  2877. messageSends: ["at:put:"],
  2878. referencedClasses: []
  2879. }),
  2880. globals.TagBrush);
  2881. smalltalk.addMethod(
  2882. smalltalk.method({
  2883. selector: "name:",
  2884. protocol: 'attributes',
  2885. fn: function (aString){
  2886. var self=this;
  2887. return smalltalk.withContext(function($ctx1) {
  2888. self._at_put_("name",aString);
  2889. return self}, function($ctx1) {$ctx1.fill(self,"name:",{aString:aString},globals.TagBrush)})},
  2890. args: ["aString"],
  2891. source: "name: aString\x0a\x09self at: 'name' put: aString",
  2892. messageSends: ["at:put:"],
  2893. referencedClasses: []
  2894. }),
  2895. globals.TagBrush);
  2896. smalltalk.addMethod(
  2897. smalltalk.method({
  2898. selector: "onBlur:",
  2899. protocol: 'events',
  2900. fn: function (aBlock){
  2901. var self=this;
  2902. return smalltalk.withContext(function($ctx1) {
  2903. _st(self._asJQuery())._bind_do_("blur",aBlock);
  2904. return self}, function($ctx1) {$ctx1.fill(self,"onBlur:",{aBlock:aBlock},globals.TagBrush)})},
  2905. args: ["aBlock"],
  2906. source: "onBlur: aBlock\x0a\x09self asJQuery bind: 'blur' do: aBlock",
  2907. messageSends: ["bind:do:", "asJQuery"],
  2908. referencedClasses: []
  2909. }),
  2910. globals.TagBrush);
  2911. smalltalk.addMethod(
  2912. smalltalk.method({
  2913. selector: "onChange:",
  2914. protocol: 'events',
  2915. fn: function (aBlock){
  2916. var self=this;
  2917. return smalltalk.withContext(function($ctx1) {
  2918. _st(self._asJQuery())._bind_do_("change",aBlock);
  2919. return self}, function($ctx1) {$ctx1.fill(self,"onChange:",{aBlock:aBlock},globals.TagBrush)})},
  2920. args: ["aBlock"],
  2921. source: "onChange: aBlock\x0a\x09self asJQuery bind: 'change' do: aBlock",
  2922. messageSends: ["bind:do:", "asJQuery"],
  2923. referencedClasses: []
  2924. }),
  2925. globals.TagBrush);
  2926. smalltalk.addMethod(
  2927. smalltalk.method({
  2928. selector: "onClick:",
  2929. protocol: 'events',
  2930. fn: function (aBlock){
  2931. var self=this;
  2932. return smalltalk.withContext(function($ctx1) {
  2933. _st(self._asJQuery())._bind_do_("click",aBlock);
  2934. return self}, function($ctx1) {$ctx1.fill(self,"onClick:",{aBlock:aBlock},globals.TagBrush)})},
  2935. args: ["aBlock"],
  2936. source: "onClick: aBlock\x0a\x09self asJQuery bind: 'click' do: aBlock",
  2937. messageSends: ["bind:do:", "asJQuery"],
  2938. referencedClasses: []
  2939. }),
  2940. globals.TagBrush);
  2941. smalltalk.addMethod(
  2942. smalltalk.method({
  2943. selector: "onDblClick:",
  2944. protocol: 'events',
  2945. fn: function (aBlock){
  2946. var self=this;
  2947. return smalltalk.withContext(function($ctx1) {
  2948. _st(self._asJQuery())._bind_do_("dblclick",aBlock);
  2949. return self}, function($ctx1) {$ctx1.fill(self,"onDblClick:",{aBlock:aBlock},globals.TagBrush)})},
  2950. args: ["aBlock"],
  2951. source: "onDblClick: aBlock\x0a\x09self asJQuery bind: 'dblclick' do: aBlock",
  2952. messageSends: ["bind:do:", "asJQuery"],
  2953. referencedClasses: []
  2954. }),
  2955. globals.TagBrush);
  2956. smalltalk.addMethod(
  2957. smalltalk.method({
  2958. selector: "onFocus:",
  2959. protocol: 'events',
  2960. fn: function (aBlock){
  2961. var self=this;
  2962. return smalltalk.withContext(function($ctx1) {
  2963. _st(self._asJQuery())._bind_do_("focus",aBlock);
  2964. return self}, function($ctx1) {$ctx1.fill(self,"onFocus:",{aBlock:aBlock},globals.TagBrush)})},
  2965. args: ["aBlock"],
  2966. source: "onFocus: aBlock\x0a\x09self asJQuery bind: 'focus' do: aBlock",
  2967. messageSends: ["bind:do:", "asJQuery"],
  2968. referencedClasses: []
  2969. }),
  2970. globals.TagBrush);
  2971. smalltalk.addMethod(
  2972. smalltalk.method({
  2973. selector: "onFocusIn:",
  2974. protocol: 'events',
  2975. fn: function (aBlock){
  2976. var self=this;
  2977. return smalltalk.withContext(function($ctx1) {
  2978. _st(self._asJQuery())._bind_do_("focusin",aBlock);
  2979. return self}, function($ctx1) {$ctx1.fill(self,"onFocusIn:",{aBlock:aBlock},globals.TagBrush)})},
  2980. args: ["aBlock"],
  2981. source: "onFocusIn: aBlock\x0a\x09self asJQuery bind: 'focusin' do: aBlock",
  2982. messageSends: ["bind:do:", "asJQuery"],
  2983. referencedClasses: []
  2984. }),
  2985. globals.TagBrush);
  2986. smalltalk.addMethod(
  2987. smalltalk.method({
  2988. selector: "onFocusOut:",
  2989. protocol: 'events',
  2990. fn: function (aBlock){
  2991. var self=this;
  2992. return smalltalk.withContext(function($ctx1) {
  2993. _st(self._asJQuery())._bind_do_("focusout",aBlock);
  2994. return self}, function($ctx1) {$ctx1.fill(self,"onFocusOut:",{aBlock:aBlock},globals.TagBrush)})},
  2995. args: ["aBlock"],
  2996. source: "onFocusOut: aBlock\x0a\x09self asJQuery bind: 'focusout' do: aBlock",
  2997. messageSends: ["bind:do:", "asJQuery"],
  2998. referencedClasses: []
  2999. }),
  3000. globals.TagBrush);
  3001. smalltalk.addMethod(
  3002. smalltalk.method({
  3003. selector: "onHover:",
  3004. protocol: 'events',
  3005. fn: function (aBlock){
  3006. var self=this;
  3007. return smalltalk.withContext(function($ctx1) {
  3008. _st(self._asJQuery())._bind_do_("hover",aBlock);
  3009. return self}, function($ctx1) {$ctx1.fill(self,"onHover:",{aBlock:aBlock},globals.TagBrush)})},
  3010. args: ["aBlock"],
  3011. source: "onHover: aBlock\x0a\x09self asJQuery bind: 'hover' do: aBlock",
  3012. messageSends: ["bind:do:", "asJQuery"],
  3013. referencedClasses: []
  3014. }),
  3015. globals.TagBrush);
  3016. smalltalk.addMethod(
  3017. smalltalk.method({
  3018. selector: "onKeyDown:",
  3019. protocol: 'events',
  3020. fn: function (aBlock){
  3021. var self=this;
  3022. return smalltalk.withContext(function($ctx1) {
  3023. _st(self._asJQuery())._bind_do_("keydown",aBlock);
  3024. return self}, function($ctx1) {$ctx1.fill(self,"onKeyDown:",{aBlock:aBlock},globals.TagBrush)})},
  3025. args: ["aBlock"],
  3026. source: "onKeyDown: aBlock\x0a\x09self asJQuery bind: 'keydown' do: aBlock",
  3027. messageSends: ["bind:do:", "asJQuery"],
  3028. referencedClasses: []
  3029. }),
  3030. globals.TagBrush);
  3031. smalltalk.addMethod(
  3032. smalltalk.method({
  3033. selector: "onKeyPress:",
  3034. protocol: 'events',
  3035. fn: function (aBlock){
  3036. var self=this;
  3037. return smalltalk.withContext(function($ctx1) {
  3038. _st(self._asJQuery())._bind_do_("keypress",aBlock);
  3039. return self}, function($ctx1) {$ctx1.fill(self,"onKeyPress:",{aBlock:aBlock},globals.TagBrush)})},
  3040. args: ["aBlock"],
  3041. source: "onKeyPress: aBlock\x0a\x09self asJQuery bind: 'keypress' do: aBlock",
  3042. messageSends: ["bind:do:", "asJQuery"],
  3043. referencedClasses: []
  3044. }),
  3045. globals.TagBrush);
  3046. smalltalk.addMethod(
  3047. smalltalk.method({
  3048. selector: "onKeyUp:",
  3049. protocol: 'events',
  3050. fn: function (aBlock){
  3051. var self=this;
  3052. return smalltalk.withContext(function($ctx1) {
  3053. _st(self._asJQuery())._bind_do_("keyup",aBlock);
  3054. return self}, function($ctx1) {$ctx1.fill(self,"onKeyUp:",{aBlock:aBlock},globals.TagBrush)})},
  3055. args: ["aBlock"],
  3056. source: "onKeyUp: aBlock\x0a\x09self asJQuery bind: 'keyup' do: aBlock",
  3057. messageSends: ["bind:do:", "asJQuery"],
  3058. referencedClasses: []
  3059. }),
  3060. globals.TagBrush);
  3061. smalltalk.addMethod(
  3062. smalltalk.method({
  3063. selector: "onMouseDown:",
  3064. protocol: 'events',
  3065. fn: function (aBlock){
  3066. var self=this;
  3067. return smalltalk.withContext(function($ctx1) {
  3068. _st(self._asJQuery())._bind_do_("mousedown",aBlock);
  3069. return self}, function($ctx1) {$ctx1.fill(self,"onMouseDown:",{aBlock:aBlock},globals.TagBrush)})},
  3070. args: ["aBlock"],
  3071. source: "onMouseDown: aBlock\x0a\x09self asJQuery bind: 'mousedown' do: aBlock",
  3072. messageSends: ["bind:do:", "asJQuery"],
  3073. referencedClasses: []
  3074. }),
  3075. globals.TagBrush);
  3076. smalltalk.addMethod(
  3077. smalltalk.method({
  3078. selector: "onMouseEnter:",
  3079. protocol: 'events',
  3080. fn: function (aBlock){
  3081. var self=this;
  3082. return smalltalk.withContext(function($ctx1) {
  3083. _st(self._asJQuery())._bind_do_("mouseenter",aBlock);
  3084. return self}, function($ctx1) {$ctx1.fill(self,"onMouseEnter:",{aBlock:aBlock},globals.TagBrush)})},
  3085. args: ["aBlock"],
  3086. source: "onMouseEnter: aBlock\x0a\x09self asJQuery bind: 'mouseenter' do: aBlock",
  3087. messageSends: ["bind:do:", "asJQuery"],
  3088. referencedClasses: []
  3089. }),
  3090. globals.TagBrush);
  3091. smalltalk.addMethod(
  3092. smalltalk.method({
  3093. selector: "onMouseLeave:",
  3094. protocol: 'events',
  3095. fn: function (aBlock){
  3096. var self=this;
  3097. return smalltalk.withContext(function($ctx1) {
  3098. _st(self._asJQuery())._bind_do_("mouseleave",aBlock);
  3099. return self}, function($ctx1) {$ctx1.fill(self,"onMouseLeave:",{aBlock:aBlock},globals.TagBrush)})},
  3100. args: ["aBlock"],
  3101. source: "onMouseLeave: aBlock\x0a\x09self asJQuery bind: 'mouseleave' do: aBlock",
  3102. messageSends: ["bind:do:", "asJQuery"],
  3103. referencedClasses: []
  3104. }),
  3105. globals.TagBrush);
  3106. smalltalk.addMethod(
  3107. smalltalk.method({
  3108. selector: "onMouseMove:",
  3109. protocol: 'events',
  3110. fn: function (aBlock){
  3111. var self=this;
  3112. return smalltalk.withContext(function($ctx1) {
  3113. _st(self._asJQuery())._bind_do_("mousemove",aBlock);
  3114. return self}, function($ctx1) {$ctx1.fill(self,"onMouseMove:",{aBlock:aBlock},globals.TagBrush)})},
  3115. args: ["aBlock"],
  3116. source: "onMouseMove: aBlock\x0a\x09self asJQuery bind: 'mousemove' do: aBlock",
  3117. messageSends: ["bind:do:", "asJQuery"],
  3118. referencedClasses: []
  3119. }),
  3120. globals.TagBrush);
  3121. smalltalk.addMethod(
  3122. smalltalk.method({
  3123. selector: "onMouseOut:",
  3124. protocol: 'events',
  3125. fn: function (aBlock){
  3126. var self=this;
  3127. return smalltalk.withContext(function($ctx1) {
  3128. _st(self._asJQuery())._bind_do_("mouseout",aBlock);
  3129. return self}, function($ctx1) {$ctx1.fill(self,"onMouseOut:",{aBlock:aBlock},globals.TagBrush)})},
  3130. args: ["aBlock"],
  3131. source: "onMouseOut: aBlock\x0a\x09self asJQuery bind: 'mouseout' do: aBlock",
  3132. messageSends: ["bind:do:", "asJQuery"],
  3133. referencedClasses: []
  3134. }),
  3135. globals.TagBrush);
  3136. smalltalk.addMethod(
  3137. smalltalk.method({
  3138. selector: "onMouseOver:",
  3139. protocol: 'events',
  3140. fn: function (aBlock){
  3141. var self=this;
  3142. return smalltalk.withContext(function($ctx1) {
  3143. _st(self._asJQuery())._bind_do_("mouseover",aBlock);
  3144. return self}, function($ctx1) {$ctx1.fill(self,"onMouseOver:",{aBlock:aBlock},globals.TagBrush)})},
  3145. args: ["aBlock"],
  3146. source: "onMouseOver: aBlock\x0a\x09self asJQuery bind: 'mouseover' do: aBlock",
  3147. messageSends: ["bind:do:", "asJQuery"],
  3148. referencedClasses: []
  3149. }),
  3150. globals.TagBrush);
  3151. smalltalk.addMethod(
  3152. smalltalk.method({
  3153. selector: "onMouseUp:",
  3154. protocol: 'events',
  3155. fn: function (aBlock){
  3156. var self=this;
  3157. return smalltalk.withContext(function($ctx1) {
  3158. _st(self._asJQuery())._bind_do_("mouseup",aBlock);
  3159. return self}, function($ctx1) {$ctx1.fill(self,"onMouseUp:",{aBlock:aBlock},globals.TagBrush)})},
  3160. args: ["aBlock"],
  3161. source: "onMouseUp: aBlock\x0a\x09self asJQuery bind: 'mouseup' do: aBlock",
  3162. messageSends: ["bind:do:", "asJQuery"],
  3163. referencedClasses: []
  3164. }),
  3165. globals.TagBrush);
  3166. smalltalk.addMethod(
  3167. smalltalk.method({
  3168. selector: "onSelect:",
  3169. protocol: 'events',
  3170. fn: function (aBlock){
  3171. var self=this;
  3172. return smalltalk.withContext(function($ctx1) {
  3173. _st(self._asJQuery())._bind_do_("select",aBlock);
  3174. return self}, function($ctx1) {$ctx1.fill(self,"onSelect:",{aBlock:aBlock},globals.TagBrush)})},
  3175. args: ["aBlock"],
  3176. source: "onSelect: aBlock\x0a\x09self asJQuery bind: 'select' do: aBlock",
  3177. messageSends: ["bind:do:", "asJQuery"],
  3178. referencedClasses: []
  3179. }),
  3180. globals.TagBrush);
  3181. smalltalk.addMethod(
  3182. smalltalk.method({
  3183. selector: "onSubmit:",
  3184. protocol: 'events',
  3185. fn: function (aBlock){
  3186. var self=this;
  3187. return smalltalk.withContext(function($ctx1) {
  3188. _st(self._asJQuery())._bind_do_("submit",aBlock);
  3189. return self}, function($ctx1) {$ctx1.fill(self,"onSubmit:",{aBlock:aBlock},globals.TagBrush)})},
  3190. args: ["aBlock"],
  3191. source: "onSubmit: aBlock\x0a\x09self asJQuery bind: 'submit' do: aBlock",
  3192. messageSends: ["bind:do:", "asJQuery"],
  3193. referencedClasses: []
  3194. }),
  3195. globals.TagBrush);
  3196. smalltalk.addMethod(
  3197. smalltalk.method({
  3198. selector: "onUnload:",
  3199. protocol: 'events',
  3200. fn: function (aBlock){
  3201. var self=this;
  3202. return smalltalk.withContext(function($ctx1) {
  3203. _st(self._asJQuery())._bind_do_("unload",aBlock);
  3204. return self}, function($ctx1) {$ctx1.fill(self,"onUnload:",{aBlock:aBlock},globals.TagBrush)})},
  3205. args: ["aBlock"],
  3206. source: "onUnload: aBlock\x0a\x09self asJQuery bind: 'unload' do: aBlock",
  3207. messageSends: ["bind:do:", "asJQuery"],
  3208. referencedClasses: []
  3209. }),
  3210. globals.TagBrush);
  3211. smalltalk.addMethod(
  3212. smalltalk.method({
  3213. selector: "placeholder:",
  3214. protocol: 'attributes',
  3215. fn: function (aString){
  3216. var self=this;
  3217. return smalltalk.withContext(function($ctx1) {
  3218. self._at_put_("placeholder",aString);
  3219. return self}, function($ctx1) {$ctx1.fill(self,"placeholder:",{aString:aString},globals.TagBrush)})},
  3220. args: ["aString"],
  3221. source: "placeholder: aString\x0a\x09self at: 'placeholder' put: aString",
  3222. messageSends: ["at:put:"],
  3223. referencedClasses: []
  3224. }),
  3225. globals.TagBrush);
  3226. smalltalk.addMethod(
  3227. smalltalk.method({
  3228. selector: "rel:",
  3229. protocol: 'attributes',
  3230. fn: function (aString){
  3231. var self=this;
  3232. return smalltalk.withContext(function($ctx1) {
  3233. self._at_put_("rel",aString);
  3234. return self}, function($ctx1) {$ctx1.fill(self,"rel:",{aString:aString},globals.TagBrush)})},
  3235. args: ["aString"],
  3236. source: "rel: aString\x0a\x09self at: 'rel' put: aString",
  3237. messageSends: ["at:put:"],
  3238. referencedClasses: []
  3239. }),
  3240. globals.TagBrush);
  3241. smalltalk.addMethod(
  3242. smalltalk.method({
  3243. selector: "removeAt:",
  3244. protocol: 'attributes',
  3245. fn: function (aString){
  3246. var self=this;
  3247. return smalltalk.withContext(function($ctx1) {
  3248. self['@element'].removeAttribute(aString);
  3249. return self}, function($ctx1) {$ctx1.fill(self,"removeAt:",{aString:aString},globals.TagBrush)})},
  3250. args: ["aString"],
  3251. source: "removeAt: aString\x0a\x09<self['@element'].removeAttribute(aString)>",
  3252. messageSends: [],
  3253. referencedClasses: []
  3254. }),
  3255. globals.TagBrush);
  3256. smalltalk.addMethod(
  3257. smalltalk.method({
  3258. selector: "rows:",
  3259. protocol: 'attributes',
  3260. fn: function (aString){
  3261. var self=this;
  3262. return smalltalk.withContext(function($ctx1) {
  3263. self._at_put_("rows",aString);
  3264. return self}, function($ctx1) {$ctx1.fill(self,"rows:",{aString:aString},globals.TagBrush)})},
  3265. args: ["aString"],
  3266. source: "rows: aString\x0a\x09self at: 'rows' put: aString",
  3267. messageSends: ["at:put:"],
  3268. referencedClasses: []
  3269. }),
  3270. globals.TagBrush);
  3271. smalltalk.addMethod(
  3272. smalltalk.method({
  3273. selector: "src:",
  3274. protocol: 'attributes',
  3275. fn: function (aString){
  3276. var self=this;
  3277. return smalltalk.withContext(function($ctx1) {
  3278. self._at_put_("src",aString);
  3279. return self}, function($ctx1) {$ctx1.fill(self,"src:",{aString:aString},globals.TagBrush)})},
  3280. args: ["aString"],
  3281. source: "src: aString\x0a\x09self at: 'src' put: aString",
  3282. messageSends: ["at:put:"],
  3283. referencedClasses: []
  3284. }),
  3285. globals.TagBrush);
  3286. smalltalk.addMethod(
  3287. smalltalk.method({
  3288. selector: "style:",
  3289. protocol: 'attributes',
  3290. fn: function (aString){
  3291. var self=this;
  3292. return smalltalk.withContext(function($ctx1) {
  3293. self._at_put_("style",aString);
  3294. return self}, function($ctx1) {$ctx1.fill(self,"style:",{aString:aString},globals.TagBrush)})},
  3295. args: ["aString"],
  3296. source: "style: aString\x0a\x09self at: 'style' put: aString",
  3297. messageSends: ["at:put:"],
  3298. referencedClasses: []
  3299. }),
  3300. globals.TagBrush);
  3301. smalltalk.addMethod(
  3302. smalltalk.method({
  3303. selector: "tabindex:",
  3304. protocol: 'attributes',
  3305. fn: function (aNumber){
  3306. var self=this;
  3307. return smalltalk.withContext(function($ctx1) {
  3308. self._at_put_("tabindex",aNumber);
  3309. return self}, function($ctx1) {$ctx1.fill(self,"tabindex:",{aNumber:aNumber},globals.TagBrush)})},
  3310. args: ["aNumber"],
  3311. source: "tabindex: aNumber\x0a\x09self at: 'tabindex' put: aNumber",
  3312. messageSends: ["at:put:"],
  3313. referencedClasses: []
  3314. }),
  3315. globals.TagBrush);
  3316. smalltalk.addMethod(
  3317. smalltalk.method({
  3318. selector: "target:",
  3319. protocol: 'attributes',
  3320. fn: function (aString){
  3321. var self=this;
  3322. return smalltalk.withContext(function($ctx1) {
  3323. self._at_put_("target",aString);
  3324. return self}, function($ctx1) {$ctx1.fill(self,"target:",{aString:aString},globals.TagBrush)})},
  3325. args: ["aString"],
  3326. source: "target: aString\x0a\x09self at: 'target' put: aString",
  3327. messageSends: ["at:put:"],
  3328. referencedClasses: []
  3329. }),
  3330. globals.TagBrush);
  3331. smalltalk.addMethod(
  3332. smalltalk.method({
  3333. selector: "title:",
  3334. protocol: 'attributes',
  3335. fn: function (aString){
  3336. var self=this;
  3337. return smalltalk.withContext(function($ctx1) {
  3338. self._at_put_("title",aString);
  3339. return self}, function($ctx1) {$ctx1.fill(self,"title:",{aString:aString},globals.TagBrush)})},
  3340. args: ["aString"],
  3341. source: "title: aString\x0a\x09self at: 'title' put: aString",
  3342. messageSends: ["at:put:"],
  3343. referencedClasses: []
  3344. }),
  3345. globals.TagBrush);
  3346. smalltalk.addMethod(
  3347. smalltalk.method({
  3348. selector: "type:",
  3349. protocol: 'attributes',
  3350. fn: function (aString){
  3351. var self=this;
  3352. return smalltalk.withContext(function($ctx1) {
  3353. self._at_put_("type",aString);
  3354. return self}, function($ctx1) {$ctx1.fill(self,"type:",{aString:aString},globals.TagBrush)})},
  3355. args: ["aString"],
  3356. source: "type: aString\x0a\x09self at: 'type' put: aString",
  3357. messageSends: ["at:put:"],
  3358. referencedClasses: []
  3359. }),
  3360. globals.TagBrush);
  3361. smalltalk.addMethod(
  3362. smalltalk.method({
  3363. selector: "valign:",
  3364. protocol: 'attributes',
  3365. fn: function (aString){
  3366. var self=this;
  3367. return smalltalk.withContext(function($ctx1) {
  3368. self._at_put_("valign",aString);
  3369. return self}, function($ctx1) {$ctx1.fill(self,"valign:",{aString:aString},globals.TagBrush)})},
  3370. args: ["aString"],
  3371. source: "valign: aString\x0a\x09self at: 'valign' put: aString",
  3372. messageSends: ["at:put:"],
  3373. referencedClasses: []
  3374. }),
  3375. globals.TagBrush);
  3376. smalltalk.addMethod(
  3377. smalltalk.method({
  3378. selector: "value:",
  3379. protocol: 'attributes',
  3380. fn: function (aString){
  3381. var self=this;
  3382. return smalltalk.withContext(function($ctx1) {
  3383. self._at_put_("value",aString);
  3384. return self}, function($ctx1) {$ctx1.fill(self,"value:",{aString:aString},globals.TagBrush)})},
  3385. args: ["aString"],
  3386. source: "value: aString\x0a\x09self at: 'value' put: aString",
  3387. messageSends: ["at:put:"],
  3388. referencedClasses: []
  3389. }),
  3390. globals.TagBrush);
  3391. smalltalk.addMethod(
  3392. smalltalk.method({
  3393. selector: "width:",
  3394. protocol: 'attributes',
  3395. fn: function (aString){
  3396. var self=this;
  3397. return smalltalk.withContext(function($ctx1) {
  3398. self._at_put_("width",aString);
  3399. return self}, function($ctx1) {$ctx1.fill(self,"width:",{aString:aString},globals.TagBrush)})},
  3400. args: ["aString"],
  3401. source: "width: aString\x0a\x09self at: 'width' put: aString",
  3402. messageSends: ["at:put:"],
  3403. referencedClasses: []
  3404. }),
  3405. globals.TagBrush);
  3406. smalltalk.addMethod(
  3407. smalltalk.method({
  3408. selector: "with:",
  3409. protocol: 'adding',
  3410. fn: function (anObject){
  3411. var self=this;
  3412. return smalltalk.withContext(function($ctx1) {
  3413. self._append_(anObject);
  3414. return self}, function($ctx1) {$ctx1.fill(self,"with:",{anObject:anObject},globals.TagBrush)})},
  3415. args: ["anObject"],
  3416. source: "with: anObject\x0a\x09self append: anObject",
  3417. messageSends: ["append:"],
  3418. referencedClasses: []
  3419. }),
  3420. globals.TagBrush);
  3421. smalltalk.addMethod(
  3422. smalltalk.method({
  3423. selector: "fromJQuery:canvas:",
  3424. protocol: 'instance creation',
  3425. fn: function (aJQuery,aCanvas){
  3426. var self=this;
  3427. return smalltalk.withContext(function($ctx1) {
  3428. var $2,$3,$1;
  3429. $2=self._new();
  3430. _st($2)._initializeFromJQuery_canvas_(aJQuery,aCanvas);
  3431. $3=_st($2)._yourself();
  3432. $1=$3;
  3433. return $1;
  3434. }, function($ctx1) {$ctx1.fill(self,"fromJQuery:canvas:",{aJQuery:aJQuery,aCanvas:aCanvas},globals.TagBrush.klass)})},
  3435. args: ["aJQuery", "aCanvas"],
  3436. source: "fromJQuery: aJQuery canvas: aCanvas\x0a\x09^ self new\x0a\x09\x09initializeFromJQuery: aJQuery canvas: aCanvas;\x0a\x09\x09yourself",
  3437. messageSends: ["initializeFromJQuery:canvas:", "new", "yourself"],
  3438. referencedClasses: []
  3439. }),
  3440. globals.TagBrush.klass);
  3441. smalltalk.addMethod(
  3442. smalltalk.method({
  3443. selector: "fromString:canvas:",
  3444. protocol: 'instance creation',
  3445. fn: function (aString,aCanvas){
  3446. var self=this;
  3447. return smalltalk.withContext(function($ctx1) {
  3448. var $2,$3,$1;
  3449. $2=self._new();
  3450. _st($2)._initializeFromString_canvas_(aString,aCanvas);
  3451. $3=_st($2)._yourself();
  3452. $1=$3;
  3453. return $1;
  3454. }, function($ctx1) {$ctx1.fill(self,"fromString:canvas:",{aString:aString,aCanvas:aCanvas},globals.TagBrush.klass)})},
  3455. args: ["aString", "aCanvas"],
  3456. source: "fromString: aString canvas: aCanvas\x0a\x09^ self new\x0a\x09initializeFromString: aString canvas: aCanvas;\x0a\x09yourself",
  3457. messageSends: ["initializeFromString:canvas:", "new", "yourself"],
  3458. referencedClasses: []
  3459. }),
  3460. globals.TagBrush.klass);
  3461. smalltalk.addClass('Widget', globals.InterfacingObject, [], 'Canvas');
  3462. globals.Widget.comment="I am a presenter building HTML. Subclasses are typically reusable components.\x0a\x0a## API\x0a\x0aUse `#renderContentOn:` to build HTML. (See `HTMLCanvas` and `TagBrush` classes for more about building HTML).\x0a\x0aTo add a widget to the page, the convenience method `#appendToJQuery:` is very useful.\x0a\x0aExemple: \x0a\x0a Counter new appendToJQuery: 'body' asJQuery";
  3463. smalltalk.addMethod(
  3464. smalltalk.method({
  3465. selector: "appendToBrush:",
  3466. protocol: 'adding',
  3467. fn: function (aTagBrush){
  3468. var self=this;
  3469. return smalltalk.withContext(function($ctx1) {
  3470. self._appendToJQuery_(_st(aTagBrush)._asJQuery());
  3471. return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},globals.Widget)})},
  3472. args: ["aTagBrush"],
  3473. source: "appendToBrush: aTagBrush\x0a\x09self appendToJQuery: aTagBrush asJQuery",
  3474. messageSends: ["appendToJQuery:", "asJQuery"],
  3475. referencedClasses: []
  3476. }),
  3477. globals.Widget);
  3478. smalltalk.addMethod(
  3479. smalltalk.method({
  3480. selector: "appendToJQuery:",
  3481. protocol: 'adding',
  3482. fn: function (aJQuery){
  3483. var self=this;
  3484. function $HTMLCanvas(){return globals.HTMLCanvas||(typeof HTMLCanvas=="undefined"?nil:HTMLCanvas)}
  3485. return smalltalk.withContext(function($ctx1) {
  3486. self._renderOn_(_st($HTMLCanvas())._onJQuery_(aJQuery));
  3487. return self}, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery},globals.Widget)})},
  3488. args: ["aJQuery"],
  3489. source: "appendToJQuery: aJQuery\x0a\x09self renderOn: (HTMLCanvas onJQuery: aJQuery)",
  3490. messageSends: ["renderOn:", "onJQuery:"],
  3491. referencedClasses: ["HTMLCanvas"]
  3492. }),
  3493. globals.Widget);
  3494. smalltalk.addMethod(
  3495. smalltalk.method({
  3496. selector: "renderOn:",
  3497. protocol: 'rendering',
  3498. fn: function (html){
  3499. var self=this;
  3500. return self},
  3501. args: ["html"],
  3502. source: "renderOn: html\x0a\x09self",
  3503. messageSends: [],
  3504. referencedClasses: []
  3505. }),
  3506. globals.Widget);
  3507. smalltalk.addMethod(
  3508. smalltalk.method({
  3509. selector: "heliosClass",
  3510. protocol: 'helios',
  3511. fn: function (){
  3512. var self=this;
  3513. return "widget";
  3514. },
  3515. args: [],
  3516. source: "heliosClass\x0a\x09^ 'widget'",
  3517. messageSends: [],
  3518. referencedClasses: []
  3519. }),
  3520. globals.Widget.klass);
  3521. smalltalk.addMethod(
  3522. smalltalk.method({
  3523. selector: "appendToBrush:",
  3524. protocol: '*Canvas',
  3525. fn: function (aTagBrush){
  3526. var self=this;
  3527. return smalltalk.withContext(function($ctx1) {
  3528. _st(aTagBrush)._appendBlock_(self);
  3529. return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},globals.BlockClosure)})},
  3530. args: ["aTagBrush"],
  3531. source: "appendToBrush: aTagBrush\x0a\x09aTagBrush appendBlock: self",
  3532. messageSends: ["appendBlock:"],
  3533. referencedClasses: []
  3534. }),
  3535. globals.BlockClosure);
  3536. smalltalk.addMethod(
  3537. smalltalk.method({
  3538. selector: "appendToJQuery:",
  3539. protocol: '*Canvas',
  3540. fn: function (aJQuery){
  3541. var self=this;
  3542. function $HTMLCanvas(){return globals.HTMLCanvas||(typeof HTMLCanvas=="undefined"?nil:HTMLCanvas)}
  3543. return smalltalk.withContext(function($ctx1) {
  3544. self._value_(_st($HTMLCanvas())._onJQuery_(aJQuery));
  3545. return self}, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery},globals.BlockClosure)})},
  3546. args: ["aJQuery"],
  3547. source: "appendToJQuery: aJQuery\x0a\x09self value: (HTMLCanvas onJQuery: aJQuery)",
  3548. messageSends: ["value:", "onJQuery:"],
  3549. referencedClasses: ["HTMLCanvas"]
  3550. }),
  3551. globals.BlockClosure);
  3552. smalltalk.addMethod(
  3553. smalltalk.method({
  3554. selector: "asSnippet",
  3555. protocol: '*Canvas',
  3556. fn: function (){
  3557. var self=this;
  3558. function $HTMLSnippet(){return globals.HTMLSnippet||(typeof HTMLSnippet=="undefined"?nil:HTMLSnippet)}
  3559. return smalltalk.withContext(function($ctx1) {
  3560. var $1;
  3561. $1=_st(_st($HTMLSnippet())._current())._snippetAt_(self._asString());
  3562. return $1;
  3563. }, function($ctx1) {$ctx1.fill(self,"asSnippet",{},globals.CharacterArray)})},
  3564. args: [],
  3565. source: "asSnippet\x0a\x09^ HTMLSnippet current snippetAt: self asString",
  3566. messageSends: ["snippetAt:", "current", "asString"],
  3567. referencedClasses: ["HTMLSnippet"]
  3568. }),
  3569. globals.CharacterArray);
  3570. smalltalk.addMethod(
  3571. smalltalk.method({
  3572. selector: "asJQuery",
  3573. protocol: '*Canvas',
  3574. fn: function (){
  3575. var self=this;
  3576. return smalltalk.withContext(function($ctx1) {
  3577. return jQuery(self['@jsObject']);
  3578. return self}, function($ctx1) {$ctx1.fill(self,"asJQuery",{},globals.JSObjectProxy)})},
  3579. args: [],
  3580. source: "asJQuery\x0a\x09<return jQuery(self['@jsObject'])>",
  3581. messageSends: [],
  3582. referencedClasses: []
  3583. }),
  3584. globals.JSObjectProxy);
  3585. smalltalk.addMethod(
  3586. smalltalk.method({
  3587. selector: "asJQueryInContext:",
  3588. protocol: '*Canvas',
  3589. fn: function (aContext){
  3590. var self=this;
  3591. return smalltalk.withContext(function($ctx1) {
  3592. return jQuery(self['@jsObject'], aContext);
  3593. return self}, function($ctx1) {$ctx1.fill(self,"asJQueryInContext:",{aContext:aContext},globals.JSObjectProxy)})},
  3594. args: ["aContext"],
  3595. source: "asJQueryInContext: aContext\x0a\x09<return jQuery(self['@jsObject'], aContext)>",
  3596. messageSends: [],
  3597. referencedClasses: []
  3598. }),
  3599. globals.JSObjectProxy);
  3600. smalltalk.addMethod(
  3601. smalltalk.method({
  3602. selector: "appendToBrush:",
  3603. protocol: '*Canvas',
  3604. fn: function (aTagBrush){
  3605. var self=this;
  3606. return smalltalk.withContext(function($ctx1) {
  3607. _st(aTagBrush)._append_(self._asString());
  3608. return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},globals.Object)})},
  3609. args: ["aTagBrush"],
  3610. source: "appendToBrush: aTagBrush\x0a\x09aTagBrush append: self asString",
  3611. messageSends: ["append:", "asString"],
  3612. referencedClasses: []
  3613. }),
  3614. globals.Object);
  3615. smalltalk.addMethod(
  3616. smalltalk.method({
  3617. selector: "appendToJQuery:",
  3618. protocol: '*Canvas',
  3619. fn: function (aJQuery){
  3620. var self=this;
  3621. return smalltalk.withContext(function($ctx1) {
  3622. _st(aJQuery)._append_(self._asString());
  3623. return self}, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery},globals.Object)})},
  3624. args: ["aJQuery"],
  3625. source: "appendToJQuery: aJQuery\x0a\x09aJQuery append: self asString",
  3626. messageSends: ["append:", "asString"],
  3627. referencedClasses: []
  3628. }),
  3629. globals.Object);
  3630. smalltalk.addMethod(
  3631. smalltalk.method({
  3632. selector: "appendToBrush:",
  3633. protocol: '*Canvas',
  3634. fn: function (aTagBrush){
  3635. var self=this;
  3636. return smalltalk.withContext(function($ctx1) {
  3637. _st(aTagBrush)._appendString_(self);
  3638. return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},globals.String)})},
  3639. args: ["aTagBrush"],
  3640. source: "appendToBrush: aTagBrush\x0a\x09aTagBrush appendString: self",
  3641. messageSends: ["appendString:"],
  3642. referencedClasses: []
  3643. }),
  3644. globals.String);
  3645. smalltalk.addMethod(
  3646. smalltalk.method({
  3647. selector: "appendToJQuery:",
  3648. protocol: '*Canvas',
  3649. fn: function (aJQuery){
  3650. var self=this;
  3651. return smalltalk.withContext(function($ctx1) {
  3652. _st(aJQuery)._append_(self);
  3653. return self}, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery},globals.String)})},
  3654. args: ["aJQuery"],
  3655. source: "appendToJQuery: aJQuery\x0a\x09aJQuery append: self",
  3656. messageSends: ["append:"],
  3657. referencedClasses: []
  3658. }),
  3659. globals.String);
  3660. smalltalk.addMethod(
  3661. smalltalk.method({
  3662. selector: "asJQuery",
  3663. protocol: '*Canvas',
  3664. fn: function (){
  3665. var self=this;
  3666. return smalltalk.withContext(function($ctx1) {
  3667. return jQuery(String(self));
  3668. return self}, function($ctx1) {$ctx1.fill(self,"asJQuery",{},globals.String)})},
  3669. args: [],
  3670. source: "asJQuery\x0a\x09<return jQuery(String(self))>",
  3671. messageSends: [],
  3672. referencedClasses: []
  3673. }),
  3674. globals.String);
  3675. smalltalk.addMethod(
  3676. smalltalk.method({
  3677. selector: "asJQueryInContext:",
  3678. protocol: '*Canvas',
  3679. fn: function (aContext){
  3680. var self=this;
  3681. return smalltalk.withContext(function($ctx1) {
  3682. return jQuery(String(self), aContext);
  3683. return self}, function($ctx1) {$ctx1.fill(self,"asJQueryInContext:",{aContext:aContext},globals.String)})},
  3684. args: ["aContext"],
  3685. source: "asJQueryInContext: aContext\x0a\x09<return jQuery(String(self), aContext)>",
  3686. messageSends: [],
  3687. referencedClasses: []
  3688. }),
  3689. globals.String);
  3690. });