2
0

Canvas.js 110 KB

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