Canvas.js 107 KB

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