Canvas.js 107 KB

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