Canvas.js 102 KB

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