Canvas.js 105 KB

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