Canvas.js 107 KB

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