Canvas.js 107 KB

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