2
0

Canvas.js 110 KB

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