Canvas.deploy.js 75 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762
  1. define(["smalltalk","nil","_st"], function(smalltalk,nil,_st){
  2. smalltalk.addPackage('Canvas');
  3. smalltalk.addClass('HTMLCanvas', smalltalk.Object, ['root'], 'Canvas');
  4. smalltalk.addMethod(
  5. smalltalk.method({
  6. selector: "a",
  7. fn: function (){
  8. var self=this;
  9. return smalltalk.withContext(function($ctx1) {
  10. var $1;
  11. $1=self._tag_("a");
  12. return $1;
  13. }, function($ctx1) {$ctx1.fill(self,"a",{},smalltalk.HTMLCanvas)})},
  14. messageSends: ["tag:"]}),
  15. smalltalk.HTMLCanvas);
  16. smalltalk.addMethod(
  17. smalltalk.method({
  18. selector: "abbr",
  19. fn: function (){
  20. var self=this;
  21. return smalltalk.withContext(function($ctx1) {
  22. var $1;
  23. $1=self._tag_("abbr");
  24. return $1;
  25. }, function($ctx1) {$ctx1.fill(self,"abbr",{},smalltalk.HTMLCanvas)})},
  26. messageSends: ["tag:"]}),
  27. smalltalk.HTMLCanvas);
  28. smalltalk.addMethod(
  29. smalltalk.method({
  30. selector: "address",
  31. fn: function (){
  32. var self=this;
  33. return smalltalk.withContext(function($ctx1) {
  34. var $1;
  35. $1=self._tag_("address");
  36. return $1;
  37. }, function($ctx1) {$ctx1.fill(self,"address",{},smalltalk.HTMLCanvas)})},
  38. messageSends: ["tag:"]}),
  39. smalltalk.HTMLCanvas);
  40. smalltalk.addMethod(
  41. smalltalk.method({
  42. selector: "area",
  43. fn: function (){
  44. var self=this;
  45. return smalltalk.withContext(function($ctx1) {
  46. var $1;
  47. $1=self._tag_("area");
  48. return $1;
  49. }, function($ctx1) {$ctx1.fill(self,"area",{},smalltalk.HTMLCanvas)})},
  50. messageSends: ["tag:"]}),
  51. smalltalk.HTMLCanvas);
  52. smalltalk.addMethod(
  53. smalltalk.method({
  54. selector: "article",
  55. fn: function (){
  56. var self=this;
  57. return smalltalk.withContext(function($ctx1) {
  58. var $1;
  59. $1=self._tag_("article");
  60. return $1;
  61. }, function($ctx1) {$ctx1.fill(self,"article",{},smalltalk.HTMLCanvas)})},
  62. messageSends: ["tag:"]}),
  63. smalltalk.HTMLCanvas);
  64. smalltalk.addMethod(
  65. smalltalk.method({
  66. selector: "aside",
  67. fn: function (){
  68. var self=this;
  69. return smalltalk.withContext(function($ctx1) {
  70. var $1;
  71. $1=self._tag_("aside");
  72. return $1;
  73. }, function($ctx1) {$ctx1.fill(self,"aside",{},smalltalk.HTMLCanvas)})},
  74. messageSends: ["tag:"]}),
  75. smalltalk.HTMLCanvas);
  76. smalltalk.addMethod(
  77. smalltalk.method({
  78. selector: "audio",
  79. fn: function (){
  80. var self=this;
  81. return smalltalk.withContext(function($ctx1) {
  82. var $1;
  83. $1=self._tag_("audio");
  84. return $1;
  85. }, function($ctx1) {$ctx1.fill(self,"audio",{},smalltalk.HTMLCanvas)})},
  86. messageSends: ["tag:"]}),
  87. smalltalk.HTMLCanvas);
  88. smalltalk.addMethod(
  89. smalltalk.method({
  90. selector: "base",
  91. fn: function (){
  92. var self=this;
  93. return smalltalk.withContext(function($ctx1) {
  94. var $1;
  95. $1=self._tag_("base");
  96. return $1;
  97. }, function($ctx1) {$ctx1.fill(self,"base",{},smalltalk.HTMLCanvas)})},
  98. messageSends: ["tag:"]}),
  99. smalltalk.HTMLCanvas);
  100. smalltalk.addMethod(
  101. smalltalk.method({
  102. selector: "blockquote",
  103. fn: function (){
  104. var self=this;
  105. return smalltalk.withContext(function($ctx1) {
  106. var $1;
  107. $1=self._tag_("blockquote");
  108. return $1;
  109. }, function($ctx1) {$ctx1.fill(self,"blockquote",{},smalltalk.HTMLCanvas)})},
  110. messageSends: ["tag:"]}),
  111. smalltalk.HTMLCanvas);
  112. smalltalk.addMethod(
  113. smalltalk.method({
  114. selector: "body",
  115. fn: function (){
  116. var self=this;
  117. return smalltalk.withContext(function($ctx1) {
  118. var $1;
  119. $1=self._tag_("body");
  120. return $1;
  121. }, function($ctx1) {$ctx1.fill(self,"body",{},smalltalk.HTMLCanvas)})},
  122. messageSends: ["tag:"]}),
  123. smalltalk.HTMLCanvas);
  124. smalltalk.addMethod(
  125. smalltalk.method({
  126. selector: "br",
  127. fn: function (){
  128. var self=this;
  129. return smalltalk.withContext(function($ctx1) {
  130. var $1;
  131. $1=self._tag_("br");
  132. return $1;
  133. }, function($ctx1) {$ctx1.fill(self,"br",{},smalltalk.HTMLCanvas)})},
  134. messageSends: ["tag:"]}),
  135. smalltalk.HTMLCanvas);
  136. smalltalk.addMethod(
  137. smalltalk.method({
  138. selector: "button",
  139. fn: function (){
  140. var self=this;
  141. return smalltalk.withContext(function($ctx1) {
  142. var $1;
  143. $1=self._tag_("button");
  144. return $1;
  145. }, function($ctx1) {$ctx1.fill(self,"button",{},smalltalk.HTMLCanvas)})},
  146. messageSends: ["tag:"]}),
  147. smalltalk.HTMLCanvas);
  148. smalltalk.addMethod(
  149. smalltalk.method({
  150. selector: "canvas",
  151. fn: function (){
  152. var self=this;
  153. return smalltalk.withContext(function($ctx1) {
  154. var $1;
  155. $1=self._tag_("canvas");
  156. return $1;
  157. }, function($ctx1) {$ctx1.fill(self,"canvas",{},smalltalk.HTMLCanvas)})},
  158. messageSends: ["tag:"]}),
  159. smalltalk.HTMLCanvas);
  160. smalltalk.addMethod(
  161. smalltalk.method({
  162. selector: "caption",
  163. fn: function (){
  164. var self=this;
  165. return smalltalk.withContext(function($ctx1) {
  166. var $1;
  167. $1=self._tag_("caption");
  168. return $1;
  169. }, function($ctx1) {$ctx1.fill(self,"caption",{},smalltalk.HTMLCanvas)})},
  170. messageSends: ["tag:"]}),
  171. smalltalk.HTMLCanvas);
  172. smalltalk.addMethod(
  173. smalltalk.method({
  174. selector: "cite",
  175. fn: function (){
  176. var self=this;
  177. return smalltalk.withContext(function($ctx1) {
  178. var $1;
  179. $1=self._tag_("cite");
  180. return $1;
  181. }, function($ctx1) {$ctx1.fill(self,"cite",{},smalltalk.HTMLCanvas)})},
  182. messageSends: ["tag:"]}),
  183. smalltalk.HTMLCanvas);
  184. smalltalk.addMethod(
  185. smalltalk.method({
  186. selector: "code",
  187. fn: function (){
  188. var self=this;
  189. return smalltalk.withContext(function($ctx1) {
  190. var $1;
  191. $1=self._tag_("code");
  192. return $1;
  193. }, function($ctx1) {$ctx1.fill(self,"code",{},smalltalk.HTMLCanvas)})},
  194. messageSends: ["tag:"]}),
  195. smalltalk.HTMLCanvas);
  196. smalltalk.addMethod(
  197. smalltalk.method({
  198. selector: "col",
  199. fn: function (){
  200. var self=this;
  201. return smalltalk.withContext(function($ctx1) {
  202. var $1;
  203. $1=self._tag_("col");
  204. return $1;
  205. }, function($ctx1) {$ctx1.fill(self,"col",{},smalltalk.HTMLCanvas)})},
  206. messageSends: ["tag:"]}),
  207. smalltalk.HTMLCanvas);
  208. smalltalk.addMethod(
  209. smalltalk.method({
  210. selector: "colgroup",
  211. fn: function (){
  212. var self=this;
  213. return smalltalk.withContext(function($ctx1) {
  214. var $1;
  215. $1=self._tag_("colgroup");
  216. return $1;
  217. }, function($ctx1) {$ctx1.fill(self,"colgroup",{},smalltalk.HTMLCanvas)})},
  218. messageSends: ["tag:"]}),
  219. smalltalk.HTMLCanvas);
  220. smalltalk.addMethod(
  221. smalltalk.method({
  222. selector: "command",
  223. fn: function (){
  224. var self=this;
  225. return smalltalk.withContext(function($ctx1) {
  226. var $1;
  227. $1=self._tag_("command");
  228. return $1;
  229. }, function($ctx1) {$ctx1.fill(self,"command",{},smalltalk.HTMLCanvas)})},
  230. messageSends: ["tag:"]}),
  231. smalltalk.HTMLCanvas);
  232. smalltalk.addMethod(
  233. smalltalk.method({
  234. selector: "datalist",
  235. fn: function (){
  236. var self=this;
  237. return smalltalk.withContext(function($ctx1) {
  238. var $1;
  239. $1=self._tag_("datalist");
  240. return $1;
  241. }, function($ctx1) {$ctx1.fill(self,"datalist",{},smalltalk.HTMLCanvas)})},
  242. messageSends: ["tag:"]}),
  243. smalltalk.HTMLCanvas);
  244. smalltalk.addMethod(
  245. smalltalk.method({
  246. selector: "dd",
  247. fn: function (){
  248. var self=this;
  249. return smalltalk.withContext(function($ctx1) {
  250. var $1;
  251. $1=self._tag_("dd");
  252. return $1;
  253. }, function($ctx1) {$ctx1.fill(self,"dd",{},smalltalk.HTMLCanvas)})},
  254. messageSends: ["tag:"]}),
  255. smalltalk.HTMLCanvas);
  256. smalltalk.addMethod(
  257. smalltalk.method({
  258. selector: "del",
  259. fn: function (){
  260. var self=this;
  261. return smalltalk.withContext(function($ctx1) {
  262. var $1;
  263. $1=self._tag_("del");
  264. return $1;
  265. }, function($ctx1) {$ctx1.fill(self,"del",{},smalltalk.HTMLCanvas)})},
  266. messageSends: ["tag:"]}),
  267. smalltalk.HTMLCanvas);
  268. smalltalk.addMethod(
  269. smalltalk.method({
  270. selector: "details",
  271. fn: function (){
  272. var self=this;
  273. return smalltalk.withContext(function($ctx1) {
  274. var $1;
  275. $1=self._tag_("details");
  276. return $1;
  277. }, function($ctx1) {$ctx1.fill(self,"details",{},smalltalk.HTMLCanvas)})},
  278. messageSends: ["tag:"]}),
  279. smalltalk.HTMLCanvas);
  280. smalltalk.addMethod(
  281. smalltalk.method({
  282. selector: "div",
  283. fn: function (){
  284. var self=this;
  285. return smalltalk.withContext(function($ctx1) {
  286. var $1;
  287. $1=self._tag_("div");
  288. return $1;
  289. }, function($ctx1) {$ctx1.fill(self,"div",{},smalltalk.HTMLCanvas)})},
  290. messageSends: ["tag:"]}),
  291. smalltalk.HTMLCanvas);
  292. smalltalk.addMethod(
  293. smalltalk.method({
  294. selector: "div:",
  295. fn: function (aBlock){
  296. var self=this;
  297. return smalltalk.withContext(function($ctx1) {
  298. var $1;
  299. $1=_st(self._div())._with_(aBlock);
  300. return $1;
  301. }, function($ctx1) {$ctx1.fill(self,"div:",{aBlock:aBlock},smalltalk.HTMLCanvas)})},
  302. messageSends: ["with:", "div"]}),
  303. smalltalk.HTMLCanvas);
  304. smalltalk.addMethod(
  305. smalltalk.method({
  306. selector: "dl",
  307. fn: function (){
  308. var self=this;
  309. return smalltalk.withContext(function($ctx1) {
  310. var $1;
  311. $1=self._tag_("dl");
  312. return $1;
  313. }, function($ctx1) {$ctx1.fill(self,"dl",{},smalltalk.HTMLCanvas)})},
  314. messageSends: ["tag:"]}),
  315. smalltalk.HTMLCanvas);
  316. smalltalk.addMethod(
  317. smalltalk.method({
  318. selector: "dt",
  319. fn: function (){
  320. var self=this;
  321. return smalltalk.withContext(function($ctx1) {
  322. var $1;
  323. $1=self._tag_("dt");
  324. return $1;
  325. }, function($ctx1) {$ctx1.fill(self,"dt",{},smalltalk.HTMLCanvas)})},
  326. messageSends: ["tag:"]}),
  327. smalltalk.HTMLCanvas);
  328. smalltalk.addMethod(
  329. smalltalk.method({
  330. selector: "em",
  331. fn: function (){
  332. var self=this;
  333. return smalltalk.withContext(function($ctx1) {
  334. var $1;
  335. $1=self._tag_("em");
  336. return $1;
  337. }, function($ctx1) {$ctx1.fill(self,"em",{},smalltalk.HTMLCanvas)})},
  338. messageSends: ["tag:"]}),
  339. smalltalk.HTMLCanvas);
  340. smalltalk.addMethod(
  341. smalltalk.method({
  342. selector: "embed",
  343. fn: function (){
  344. var self=this;
  345. return smalltalk.withContext(function($ctx1) {
  346. var $1;
  347. $1=self._tag_("embed");
  348. return $1;
  349. }, function($ctx1) {$ctx1.fill(self,"embed",{},smalltalk.HTMLCanvas)})},
  350. messageSends: ["tag:"]}),
  351. smalltalk.HTMLCanvas);
  352. smalltalk.addMethod(
  353. smalltalk.method({
  354. selector: "entity:",
  355. fn: function (aString){
  356. var self=this;
  357. var result;
  358. return smalltalk.withContext(function($ctx1) {
  359. var $1;
  360. result=_st(_st("<span />"._asJQuery())._html_(_st("&".__comma(aString)).__comma(";")))._text();
  361. $1=_st(_st(result)._size()).__eq((1));
  362. if(! smalltalk.assert($1)){
  363. self._error_("Not an HTML entity: ".__comma(aString));
  364. };
  365. self._with_(result);
  366. return self}, function($ctx1) {$ctx1.fill(self,"entity:",{aString:aString,result:result},smalltalk.HTMLCanvas)})},
  367. messageSends: ["text", "html:", ",", "asJQuery", "ifFalse:", "error:", "=", "size", "with:"]}),
  368. smalltalk.HTMLCanvas);
  369. smalltalk.addMethod(
  370. smalltalk.method({
  371. selector: "fieldset",
  372. fn: function (){
  373. var self=this;
  374. return smalltalk.withContext(function($ctx1) {
  375. var $1;
  376. $1=self._tag_("fieldset");
  377. return $1;
  378. }, function($ctx1) {$ctx1.fill(self,"fieldset",{},smalltalk.HTMLCanvas)})},
  379. messageSends: ["tag:"]}),
  380. smalltalk.HTMLCanvas);
  381. smalltalk.addMethod(
  382. smalltalk.method({
  383. selector: "figcaption",
  384. fn: function (){
  385. var self=this;
  386. return smalltalk.withContext(function($ctx1) {
  387. var $1;
  388. $1=self._tag_("figcaption");
  389. return $1;
  390. }, function($ctx1) {$ctx1.fill(self,"figcaption",{},smalltalk.HTMLCanvas)})},
  391. messageSends: ["tag:"]}),
  392. smalltalk.HTMLCanvas);
  393. smalltalk.addMethod(
  394. smalltalk.method({
  395. selector: "figure",
  396. fn: function (){
  397. var self=this;
  398. return smalltalk.withContext(function($ctx1) {
  399. var $1;
  400. $1=self._tag_("figure");
  401. return $1;
  402. }, function($ctx1) {$ctx1.fill(self,"figure",{},smalltalk.HTMLCanvas)})},
  403. messageSends: ["tag:"]}),
  404. smalltalk.HTMLCanvas);
  405. smalltalk.addMethod(
  406. smalltalk.method({
  407. selector: "footer",
  408. fn: function (){
  409. var self=this;
  410. return smalltalk.withContext(function($ctx1) {
  411. var $1;
  412. $1=self._tag_("footer");
  413. return $1;
  414. }, function($ctx1) {$ctx1.fill(self,"footer",{},smalltalk.HTMLCanvas)})},
  415. messageSends: ["tag:"]}),
  416. smalltalk.HTMLCanvas);
  417. smalltalk.addMethod(
  418. smalltalk.method({
  419. selector: "form",
  420. fn: function (){
  421. var self=this;
  422. return smalltalk.withContext(function($ctx1) {
  423. var $1;
  424. $1=self._tag_("form");
  425. return $1;
  426. }, function($ctx1) {$ctx1.fill(self,"form",{},smalltalk.HTMLCanvas)})},
  427. messageSends: ["tag:"]}),
  428. smalltalk.HTMLCanvas);
  429. smalltalk.addMethod(
  430. smalltalk.method({
  431. selector: "h1",
  432. fn: function (){
  433. var self=this;
  434. return smalltalk.withContext(function($ctx1) {
  435. var $1;
  436. $1=self._tag_("h1");
  437. return $1;
  438. }, function($ctx1) {$ctx1.fill(self,"h1",{},smalltalk.HTMLCanvas)})},
  439. messageSends: ["tag:"]}),
  440. smalltalk.HTMLCanvas);
  441. smalltalk.addMethod(
  442. smalltalk.method({
  443. selector: "h1:",
  444. fn: function (anObject){
  445. var self=this;
  446. return smalltalk.withContext(function($ctx1) {
  447. var $1;
  448. $1=_st(self._h1())._with_(anObject);
  449. return $1;
  450. }, function($ctx1) {$ctx1.fill(self,"h1:",{anObject:anObject},smalltalk.HTMLCanvas)})},
  451. messageSends: ["with:", "h1"]}),
  452. smalltalk.HTMLCanvas);
  453. smalltalk.addMethod(
  454. smalltalk.method({
  455. selector: "h2",
  456. fn: function (){
  457. var self=this;
  458. return smalltalk.withContext(function($ctx1) {
  459. var $1;
  460. $1=self._tag_("h2");
  461. return $1;
  462. }, function($ctx1) {$ctx1.fill(self,"h2",{},smalltalk.HTMLCanvas)})},
  463. messageSends: ["tag:"]}),
  464. smalltalk.HTMLCanvas);
  465. smalltalk.addMethod(
  466. smalltalk.method({
  467. selector: "h2:",
  468. fn: function (anObject){
  469. var self=this;
  470. return smalltalk.withContext(function($ctx1) {
  471. var $1;
  472. $1=_st(self._h2())._with_(anObject);
  473. return $1;
  474. }, function($ctx1) {$ctx1.fill(self,"h2:",{anObject:anObject},smalltalk.HTMLCanvas)})},
  475. messageSends: ["with:", "h2"]}),
  476. smalltalk.HTMLCanvas);
  477. smalltalk.addMethod(
  478. smalltalk.method({
  479. selector: "h3",
  480. fn: function (){
  481. var self=this;
  482. return smalltalk.withContext(function($ctx1) {
  483. var $1;
  484. $1=self._tag_("h3");
  485. return $1;
  486. }, function($ctx1) {$ctx1.fill(self,"h3",{},smalltalk.HTMLCanvas)})},
  487. messageSends: ["tag:"]}),
  488. smalltalk.HTMLCanvas);
  489. smalltalk.addMethod(
  490. smalltalk.method({
  491. selector: "h3:",
  492. fn: function (anObject){
  493. var self=this;
  494. return smalltalk.withContext(function($ctx1) {
  495. var $1;
  496. $1=_st(self._h3())._with_(anObject);
  497. return $1;
  498. }, function($ctx1) {$ctx1.fill(self,"h3:",{anObject:anObject},smalltalk.HTMLCanvas)})},
  499. messageSends: ["with:", "h3"]}),
  500. smalltalk.HTMLCanvas);
  501. smalltalk.addMethod(
  502. smalltalk.method({
  503. selector: "h4",
  504. fn: function (){
  505. var self=this;
  506. return smalltalk.withContext(function($ctx1) {
  507. var $1;
  508. $1=self._tag_("h4");
  509. return $1;
  510. }, function($ctx1) {$ctx1.fill(self,"h4",{},smalltalk.HTMLCanvas)})},
  511. messageSends: ["tag:"]}),
  512. smalltalk.HTMLCanvas);
  513. smalltalk.addMethod(
  514. smalltalk.method({
  515. selector: "h4:",
  516. fn: function (anObject){
  517. var self=this;
  518. return smalltalk.withContext(function($ctx1) {
  519. var $1;
  520. $1=_st(self._h4())._with_(anObject);
  521. return $1;
  522. }, function($ctx1) {$ctx1.fill(self,"h4:",{anObject:anObject},smalltalk.HTMLCanvas)})},
  523. messageSends: ["with:", "h4"]}),
  524. smalltalk.HTMLCanvas);
  525. smalltalk.addMethod(
  526. smalltalk.method({
  527. selector: "h5",
  528. fn: function (){
  529. var self=this;
  530. return smalltalk.withContext(function($ctx1) {
  531. var $1;
  532. $1=self._tag_("h5");
  533. return $1;
  534. }, function($ctx1) {$ctx1.fill(self,"h5",{},smalltalk.HTMLCanvas)})},
  535. messageSends: ["tag:"]}),
  536. smalltalk.HTMLCanvas);
  537. smalltalk.addMethod(
  538. smalltalk.method({
  539. selector: "h5:",
  540. fn: function (anObject){
  541. var self=this;
  542. return smalltalk.withContext(function($ctx1) {
  543. var $1;
  544. $1=_st(self._h5())._with_(anObject);
  545. return $1;
  546. }, function($ctx1) {$ctx1.fill(self,"h5:",{anObject:anObject},smalltalk.HTMLCanvas)})},
  547. messageSends: ["with:", "h5"]}),
  548. smalltalk.HTMLCanvas);
  549. smalltalk.addMethod(
  550. smalltalk.method({
  551. selector: "h6",
  552. fn: function (){
  553. var self=this;
  554. return smalltalk.withContext(function($ctx1) {
  555. var $1;
  556. $1=self._tag_("h6");
  557. return $1;
  558. }, function($ctx1) {$ctx1.fill(self,"h6",{},smalltalk.HTMLCanvas)})},
  559. messageSends: ["tag:"]}),
  560. smalltalk.HTMLCanvas);
  561. smalltalk.addMethod(
  562. smalltalk.method({
  563. selector: "h6:",
  564. fn: function (anObject){
  565. var self=this;
  566. return smalltalk.withContext(function($ctx1) {
  567. var $1;
  568. $1=_st(self._h6())._with_(anObject);
  569. return $1;
  570. }, function($ctx1) {$ctx1.fill(self,"h6:",{anObject:anObject},smalltalk.HTMLCanvas)})},
  571. messageSends: ["with:", "h6"]}),
  572. smalltalk.HTMLCanvas);
  573. smalltalk.addMethod(
  574. smalltalk.method({
  575. selector: "head",
  576. fn: function (){
  577. var self=this;
  578. return smalltalk.withContext(function($ctx1) {
  579. var $1;
  580. $1=self._tag_("head");
  581. return $1;
  582. }, function($ctx1) {$ctx1.fill(self,"head",{},smalltalk.HTMLCanvas)})},
  583. messageSends: ["tag:"]}),
  584. smalltalk.HTMLCanvas);
  585. smalltalk.addMethod(
  586. smalltalk.method({
  587. selector: "header",
  588. fn: function (){
  589. var self=this;
  590. return smalltalk.withContext(function($ctx1) {
  591. var $1;
  592. $1=self._tag_("header");
  593. return $1;
  594. }, function($ctx1) {$ctx1.fill(self,"header",{},smalltalk.HTMLCanvas)})},
  595. messageSends: ["tag:"]}),
  596. smalltalk.HTMLCanvas);
  597. smalltalk.addMethod(
  598. smalltalk.method({
  599. selector: "hgroup",
  600. fn: function (){
  601. var self=this;
  602. return smalltalk.withContext(function($ctx1) {
  603. var $1;
  604. $1=self._tag_("hgroup");
  605. return $1;
  606. }, function($ctx1) {$ctx1.fill(self,"hgroup",{},smalltalk.HTMLCanvas)})},
  607. messageSends: ["tag:"]}),
  608. smalltalk.HTMLCanvas);
  609. smalltalk.addMethod(
  610. smalltalk.method({
  611. selector: "hr",
  612. fn: function (){
  613. var self=this;
  614. return smalltalk.withContext(function($ctx1) {
  615. var $1;
  616. $1=self._tag_("hr");
  617. return $1;
  618. }, function($ctx1) {$ctx1.fill(self,"hr",{},smalltalk.HTMLCanvas)})},
  619. messageSends: ["tag:"]}),
  620. smalltalk.HTMLCanvas);
  621. smalltalk.addMethod(
  622. smalltalk.method({
  623. selector: "html",
  624. fn: function (){
  625. var self=this;
  626. return smalltalk.withContext(function($ctx1) {
  627. var $1;
  628. $1=self._tag_("html");
  629. return $1;
  630. }, function($ctx1) {$ctx1.fill(self,"html",{},smalltalk.HTMLCanvas)})},
  631. messageSends: ["tag:"]}),
  632. smalltalk.HTMLCanvas);
  633. smalltalk.addMethod(
  634. smalltalk.method({
  635. selector: "iframe",
  636. fn: function (){
  637. var self=this;
  638. return smalltalk.withContext(function($ctx1) {
  639. var $1;
  640. $1=self._tag_("iframe");
  641. return $1;
  642. }, function($ctx1) {$ctx1.fill(self,"iframe",{},smalltalk.HTMLCanvas)})},
  643. messageSends: ["tag:"]}),
  644. smalltalk.HTMLCanvas);
  645. smalltalk.addMethod(
  646. smalltalk.method({
  647. selector: "iframe:",
  648. fn: function (aString){
  649. var self=this;
  650. return smalltalk.withContext(function($ctx1) {
  651. var $1;
  652. $1=_st(self._iframe())._src_(aString);
  653. return $1;
  654. }, function($ctx1) {$ctx1.fill(self,"iframe:",{aString:aString},smalltalk.HTMLCanvas)})},
  655. messageSends: ["src:", "iframe"]}),
  656. smalltalk.HTMLCanvas);
  657. smalltalk.addMethod(
  658. smalltalk.method({
  659. selector: "img",
  660. fn: function (){
  661. var self=this;
  662. return smalltalk.withContext(function($ctx1) {
  663. var $1;
  664. $1=self._tag_("img");
  665. return $1;
  666. }, function($ctx1) {$ctx1.fill(self,"img",{},smalltalk.HTMLCanvas)})},
  667. messageSends: ["tag:"]}),
  668. smalltalk.HTMLCanvas);
  669. smalltalk.addMethod(
  670. smalltalk.method({
  671. selector: "img:",
  672. fn: function (aString){
  673. var self=this;
  674. return smalltalk.withContext(function($ctx1) {
  675. var $1;
  676. $1=_st(self._img())._src_(aString);
  677. return $1;
  678. }, function($ctx1) {$ctx1.fill(self,"img:",{aString:aString},smalltalk.HTMLCanvas)})},
  679. messageSends: ["src:", "img"]}),
  680. smalltalk.HTMLCanvas);
  681. smalltalk.addMethod(
  682. smalltalk.method({
  683. selector: "initialize",
  684. fn: function (){
  685. var self=this;
  686. function $TagBrush(){return smalltalk.TagBrush||(typeof TagBrush=="undefined"?nil:TagBrush)}
  687. return smalltalk.withContext(function($ctx1) {
  688. var $1;
  689. smalltalk.HTMLCanvas.superclass.fn.prototype._initialize.apply(_st(self), []);
  690. $1=self["@root"];
  691. if(($receiver = $1) == nil || $receiver == undefined){
  692. self["@root"]=_st($TagBrush())._fromString_canvas_("div",self);
  693. self["@root"];
  694. } else {
  695. $1;
  696. };
  697. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.HTMLCanvas)})},
  698. messageSends: ["initialize", "ifNil:", "fromString:canvas:"]}),
  699. smalltalk.HTMLCanvas);
  700. smalltalk.addMethod(
  701. smalltalk.method({
  702. selector: "initializeFromJQuery:",
  703. fn: function (aJQuery){
  704. var self=this;
  705. function $TagBrush(){return smalltalk.TagBrush||(typeof TagBrush=="undefined"?nil:TagBrush)}
  706. return smalltalk.withContext(function($ctx1) {
  707. self["@root"]=_st($TagBrush())._fromJQuery_canvas_(aJQuery,self);
  708. return self}, function($ctx1) {$ctx1.fill(self,"initializeFromJQuery:",{aJQuery:aJQuery},smalltalk.HTMLCanvas)})},
  709. messageSends: ["fromJQuery:canvas:"]}),
  710. smalltalk.HTMLCanvas);
  711. smalltalk.addMethod(
  712. smalltalk.method({
  713. selector: "input",
  714. fn: function (){
  715. var self=this;
  716. return smalltalk.withContext(function($ctx1) {
  717. var $1;
  718. $1=self._tag_("input");
  719. return $1;
  720. }, function($ctx1) {$ctx1.fill(self,"input",{},smalltalk.HTMLCanvas)})},
  721. messageSends: ["tag:"]}),
  722. smalltalk.HTMLCanvas);
  723. smalltalk.addMethod(
  724. smalltalk.method({
  725. selector: "label",
  726. fn: function (){
  727. var self=this;
  728. return smalltalk.withContext(function($ctx1) {
  729. var $1;
  730. $1=self._tag_("label");
  731. return $1;
  732. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HTMLCanvas)})},
  733. messageSends: ["tag:"]}),
  734. smalltalk.HTMLCanvas);
  735. smalltalk.addMethod(
  736. smalltalk.method({
  737. selector: "legend",
  738. fn: function (){
  739. var self=this;
  740. return smalltalk.withContext(function($ctx1) {
  741. var $1;
  742. $1=self._tag_("legend");
  743. return $1;
  744. }, function($ctx1) {$ctx1.fill(self,"legend",{},smalltalk.HTMLCanvas)})},
  745. messageSends: ["tag:"]}),
  746. smalltalk.HTMLCanvas);
  747. smalltalk.addMethod(
  748. smalltalk.method({
  749. selector: "li",
  750. fn: function (){
  751. var self=this;
  752. return smalltalk.withContext(function($ctx1) {
  753. var $1;
  754. $1=self._tag_("li");
  755. return $1;
  756. }, function($ctx1) {$ctx1.fill(self,"li",{},smalltalk.HTMLCanvas)})},
  757. messageSends: ["tag:"]}),
  758. smalltalk.HTMLCanvas);
  759. smalltalk.addMethod(
  760. smalltalk.method({
  761. selector: "li:",
  762. fn: function (anObject){
  763. var self=this;
  764. return smalltalk.withContext(function($ctx1) {
  765. var $1;
  766. $1=_st(self._li())._with_(anObject);
  767. return $1;
  768. }, function($ctx1) {$ctx1.fill(self,"li:",{anObject:anObject},smalltalk.HTMLCanvas)})},
  769. messageSends: ["with:", "li"]}),
  770. smalltalk.HTMLCanvas);
  771. smalltalk.addMethod(
  772. smalltalk.method({
  773. selector: "link",
  774. fn: function (){
  775. var self=this;
  776. return smalltalk.withContext(function($ctx1) {
  777. var $1;
  778. $1=self._tag_("link");
  779. return $1;
  780. }, function($ctx1) {$ctx1.fill(self,"link",{},smalltalk.HTMLCanvas)})},
  781. messageSends: ["tag:"]}),
  782. smalltalk.HTMLCanvas);
  783. smalltalk.addMethod(
  784. smalltalk.method({
  785. selector: "map",
  786. fn: function (){
  787. var self=this;
  788. return smalltalk.withContext(function($ctx1) {
  789. var $1;
  790. $1=self._tag_("map");
  791. return $1;
  792. }, function($ctx1) {$ctx1.fill(self,"map",{},smalltalk.HTMLCanvas)})},
  793. messageSends: ["tag:"]}),
  794. smalltalk.HTMLCanvas);
  795. smalltalk.addMethod(
  796. smalltalk.method({
  797. selector: "mark",
  798. fn: function (){
  799. var self=this;
  800. return smalltalk.withContext(function($ctx1) {
  801. var $1;
  802. $1=self._tag_("mark");
  803. return $1;
  804. }, function($ctx1) {$ctx1.fill(self,"mark",{},smalltalk.HTMLCanvas)})},
  805. messageSends: ["tag:"]}),
  806. smalltalk.HTMLCanvas);
  807. smalltalk.addMethod(
  808. smalltalk.method({
  809. selector: "menu",
  810. fn: function (){
  811. var self=this;
  812. return smalltalk.withContext(function($ctx1) {
  813. var $1;
  814. $1=self._tag_("menu");
  815. return $1;
  816. }, function($ctx1) {$ctx1.fill(self,"menu",{},smalltalk.HTMLCanvas)})},
  817. messageSends: ["tag:"]}),
  818. smalltalk.HTMLCanvas);
  819. smalltalk.addMethod(
  820. smalltalk.method({
  821. selector: "meta",
  822. fn: function (){
  823. var self=this;
  824. return smalltalk.withContext(function($ctx1) {
  825. var $1;
  826. $1=self._tag_("meta");
  827. return $1;
  828. }, function($ctx1) {$ctx1.fill(self,"meta",{},smalltalk.HTMLCanvas)})},
  829. messageSends: ["tag:"]}),
  830. smalltalk.HTMLCanvas);
  831. smalltalk.addMethod(
  832. smalltalk.method({
  833. selector: "nav",
  834. fn: function (){
  835. var self=this;
  836. return smalltalk.withContext(function($ctx1) {
  837. var $1;
  838. $1=self._tag_("nav");
  839. return $1;
  840. }, function($ctx1) {$ctx1.fill(self,"nav",{},smalltalk.HTMLCanvas)})},
  841. messageSends: ["tag:"]}),
  842. smalltalk.HTMLCanvas);
  843. smalltalk.addMethod(
  844. smalltalk.method({
  845. selector: "newTag:",
  846. fn: function (aString){
  847. var self=this;
  848. function $TagBrush(){return smalltalk.TagBrush||(typeof TagBrush=="undefined"?nil:TagBrush)}
  849. return smalltalk.withContext(function($ctx1) {
  850. var $1;
  851. $1=_st($TagBrush())._fromString_canvas_(aString,self);
  852. return $1;
  853. }, function($ctx1) {$ctx1.fill(self,"newTag:",{aString:aString},smalltalk.HTMLCanvas)})},
  854. messageSends: ["fromString:canvas:"]}),
  855. smalltalk.HTMLCanvas);
  856. smalltalk.addMethod(
  857. smalltalk.method({
  858. selector: "noscript",
  859. fn: function (){
  860. var self=this;
  861. return smalltalk.withContext(function($ctx1) {
  862. var $1;
  863. $1=self._tag_("noscript");
  864. return $1;
  865. }, function($ctx1) {$ctx1.fill(self,"noscript",{},smalltalk.HTMLCanvas)})},
  866. messageSends: ["tag:"]}),
  867. smalltalk.HTMLCanvas);
  868. smalltalk.addMethod(
  869. smalltalk.method({
  870. selector: "object",
  871. fn: function (){
  872. var self=this;
  873. return smalltalk.withContext(function($ctx1) {
  874. var $1;
  875. $1=self._tag_("object");
  876. return $1;
  877. }, function($ctx1) {$ctx1.fill(self,"object",{},smalltalk.HTMLCanvas)})},
  878. messageSends: ["tag:"]}),
  879. smalltalk.HTMLCanvas);
  880. smalltalk.addMethod(
  881. smalltalk.method({
  882. selector: "ol",
  883. fn: function (){
  884. var self=this;
  885. return smalltalk.withContext(function($ctx1) {
  886. var $1;
  887. $1=self._tag_("ol");
  888. return $1;
  889. }, function($ctx1) {$ctx1.fill(self,"ol",{},smalltalk.HTMLCanvas)})},
  890. messageSends: ["tag:"]}),
  891. smalltalk.HTMLCanvas);
  892. smalltalk.addMethod(
  893. smalltalk.method({
  894. selector: "ol:",
  895. fn: function (anObject){
  896. var self=this;
  897. return smalltalk.withContext(function($ctx1) {
  898. var $1;
  899. $1=_st(self._ol())._with_(anObject);
  900. return $1;
  901. }, function($ctx1) {$ctx1.fill(self,"ol:",{anObject:anObject},smalltalk.HTMLCanvas)})},
  902. messageSends: ["with:", "ol"]}),
  903. smalltalk.HTMLCanvas);
  904. smalltalk.addMethod(
  905. smalltalk.method({
  906. selector: "optgroup",
  907. fn: function (){
  908. var self=this;
  909. return smalltalk.withContext(function($ctx1) {
  910. var $1;
  911. $1=self._tag_("optgroup");
  912. return $1;
  913. }, function($ctx1) {$ctx1.fill(self,"optgroup",{},smalltalk.HTMLCanvas)})},
  914. messageSends: ["tag:"]}),
  915. smalltalk.HTMLCanvas);
  916. smalltalk.addMethod(
  917. smalltalk.method({
  918. selector: "option",
  919. fn: function (){
  920. var self=this;
  921. return smalltalk.withContext(function($ctx1) {
  922. var $1;
  923. $1=self._tag_("option");
  924. return $1;
  925. }, function($ctx1) {$ctx1.fill(self,"option",{},smalltalk.HTMLCanvas)})},
  926. messageSends: ["tag:"]}),
  927. smalltalk.HTMLCanvas);
  928. smalltalk.addMethod(
  929. smalltalk.method({
  930. selector: "output",
  931. fn: function (){
  932. var self=this;
  933. return smalltalk.withContext(function($ctx1) {
  934. var $1;
  935. $1=self._tag_("output");
  936. return $1;
  937. }, function($ctx1) {$ctx1.fill(self,"output",{},smalltalk.HTMLCanvas)})},
  938. messageSends: ["tag:"]}),
  939. smalltalk.HTMLCanvas);
  940. smalltalk.addMethod(
  941. smalltalk.method({
  942. selector: "p",
  943. fn: function (){
  944. var self=this;
  945. return smalltalk.withContext(function($ctx1) {
  946. var $1;
  947. $1=self._tag_("p");
  948. return $1;
  949. }, function($ctx1) {$ctx1.fill(self,"p",{},smalltalk.HTMLCanvas)})},
  950. messageSends: ["tag:"]}),
  951. smalltalk.HTMLCanvas);
  952. smalltalk.addMethod(
  953. smalltalk.method({
  954. selector: "p:",
  955. fn: function (anObject){
  956. var self=this;
  957. return smalltalk.withContext(function($ctx1) {
  958. var $1;
  959. $1=_st(self._p())._with_(anObject);
  960. return $1;
  961. }, function($ctx1) {$ctx1.fill(self,"p:",{anObject:anObject},smalltalk.HTMLCanvas)})},
  962. messageSends: ["with:", "p"]}),
  963. smalltalk.HTMLCanvas);
  964. smalltalk.addMethod(
  965. smalltalk.method({
  966. selector: "param",
  967. fn: function (){
  968. var self=this;
  969. return smalltalk.withContext(function($ctx1) {
  970. var $1;
  971. $1=self._tag_("param");
  972. return $1;
  973. }, function($ctx1) {$ctx1.fill(self,"param",{},smalltalk.HTMLCanvas)})},
  974. messageSends: ["tag:"]}),
  975. smalltalk.HTMLCanvas);
  976. smalltalk.addMethod(
  977. smalltalk.method({
  978. selector: "pre",
  979. fn: function (){
  980. var self=this;
  981. return smalltalk.withContext(function($ctx1) {
  982. var $1;
  983. $1=self._tag_("pre");
  984. return $1;
  985. }, function($ctx1) {$ctx1.fill(self,"pre",{},smalltalk.HTMLCanvas)})},
  986. messageSends: ["tag:"]}),
  987. smalltalk.HTMLCanvas);
  988. smalltalk.addMethod(
  989. smalltalk.method({
  990. selector: "progress",
  991. fn: function (){
  992. var self=this;
  993. return smalltalk.withContext(function($ctx1) {
  994. var $1;
  995. $1=self._tag_("progress");
  996. return $1;
  997. }, function($ctx1) {$ctx1.fill(self,"progress",{},smalltalk.HTMLCanvas)})},
  998. messageSends: ["tag:"]}),
  999. smalltalk.HTMLCanvas);
  1000. smalltalk.addMethod(
  1001. smalltalk.method({
  1002. selector: "root",
  1003. fn: function (){
  1004. var self=this;
  1005. return smalltalk.withContext(function($ctx1) {
  1006. var $1;
  1007. $1=self["@root"];
  1008. return $1;
  1009. }, function($ctx1) {$ctx1.fill(self,"root",{},smalltalk.HTMLCanvas)})},
  1010. messageSends: []}),
  1011. smalltalk.HTMLCanvas);
  1012. smalltalk.addMethod(
  1013. smalltalk.method({
  1014. selector: "root:",
  1015. fn: function (aTagBrush){
  1016. var self=this;
  1017. return smalltalk.withContext(function($ctx1) {
  1018. self["@root"]=aTagBrush;
  1019. return self}, function($ctx1) {$ctx1.fill(self,"root:",{aTagBrush:aTagBrush},smalltalk.HTMLCanvas)})},
  1020. messageSends: []}),
  1021. smalltalk.HTMLCanvas);
  1022. smalltalk.addMethod(
  1023. smalltalk.method({
  1024. selector: "script",
  1025. fn: function (){
  1026. var self=this;
  1027. return smalltalk.withContext(function($ctx1) {
  1028. var $1;
  1029. $1=self._tag_("script");
  1030. return $1;
  1031. }, function($ctx1) {$ctx1.fill(self,"script",{},smalltalk.HTMLCanvas)})},
  1032. messageSends: ["tag:"]}),
  1033. smalltalk.HTMLCanvas);
  1034. smalltalk.addMethod(
  1035. smalltalk.method({
  1036. selector: "section",
  1037. fn: function (){
  1038. var self=this;
  1039. return smalltalk.withContext(function($ctx1) {
  1040. var $1;
  1041. $1=self._tag_("section");
  1042. return $1;
  1043. }, function($ctx1) {$ctx1.fill(self,"section",{},smalltalk.HTMLCanvas)})},
  1044. messageSends: ["tag:"]}),
  1045. smalltalk.HTMLCanvas);
  1046. smalltalk.addMethod(
  1047. smalltalk.method({
  1048. selector: "select",
  1049. fn: function (){
  1050. var self=this;
  1051. return smalltalk.withContext(function($ctx1) {
  1052. var $1;
  1053. $1=self._tag_("select");
  1054. return $1;
  1055. }, function($ctx1) {$ctx1.fill(self,"select",{},smalltalk.HTMLCanvas)})},
  1056. messageSends: ["tag:"]}),
  1057. smalltalk.HTMLCanvas);
  1058. smalltalk.addMethod(
  1059. smalltalk.method({
  1060. selector: "small",
  1061. fn: function (){
  1062. var self=this;
  1063. return smalltalk.withContext(function($ctx1) {
  1064. var $1;
  1065. $1=self._tag_("small");
  1066. return $1;
  1067. }, function($ctx1) {$ctx1.fill(self,"small",{},smalltalk.HTMLCanvas)})},
  1068. messageSends: ["tag:"]}),
  1069. smalltalk.HTMLCanvas);
  1070. smalltalk.addMethod(
  1071. smalltalk.method({
  1072. selector: "snippet:",
  1073. fn: function (anElement){
  1074. var self=this;
  1075. var clone,caret;
  1076. function $TagBrush(){return smalltalk.TagBrush||(typeof TagBrush=="undefined"?nil:TagBrush)}
  1077. return smalltalk.withContext(function($ctx1) {
  1078. var $1,$2;
  1079. clone=_st(_st(anElement)._asJQuery())._clone();
  1080. self._with_(_st($TagBrush())._fromJQuery_canvas_(clone,self));
  1081. caret=_st(clone)._find_("[data-snippet=\x22*\x22]");
  1082. $1=_st(_st(caret)._toArray())._isEmpty();
  1083. if(smalltalk.assert($1)){
  1084. caret=clone;
  1085. caret;
  1086. };
  1087. $2=_st($TagBrush())._fromJQuery_canvas_(_st(caret)._removeAttr_("data-snippet"),self);
  1088. return $2;
  1089. }, function($ctx1) {$ctx1.fill(self,"snippet:",{anElement:anElement,clone:clone,caret:caret},smalltalk.HTMLCanvas)})},
  1090. messageSends: ["clone", "asJQuery", "with:", "fromJQuery:canvas:", "find:", "ifTrue:", "isEmpty", "toArray", "removeAttr:"]}),
  1091. smalltalk.HTMLCanvas);
  1092. smalltalk.addMethod(
  1093. smalltalk.method({
  1094. selector: "source",
  1095. fn: function (){
  1096. var self=this;
  1097. return smalltalk.withContext(function($ctx1) {
  1098. var $1;
  1099. $1=self._tag_("source");
  1100. return $1;
  1101. }, function($ctx1) {$ctx1.fill(self,"source",{},smalltalk.HTMLCanvas)})},
  1102. messageSends: ["tag:"]}),
  1103. smalltalk.HTMLCanvas);
  1104. smalltalk.addMethod(
  1105. smalltalk.method({
  1106. selector: "span",
  1107. fn: function (){
  1108. var self=this;
  1109. return smalltalk.withContext(function($ctx1) {
  1110. var $1;
  1111. $1=self._tag_("span");
  1112. return $1;
  1113. }, function($ctx1) {$ctx1.fill(self,"span",{},smalltalk.HTMLCanvas)})},
  1114. messageSends: ["tag:"]}),
  1115. smalltalk.HTMLCanvas);
  1116. smalltalk.addMethod(
  1117. smalltalk.method({
  1118. selector: "span:",
  1119. fn: function (anObject){
  1120. var self=this;
  1121. return smalltalk.withContext(function($ctx1) {
  1122. var $1;
  1123. $1=_st(self._span())._with_(anObject);
  1124. return $1;
  1125. }, function($ctx1) {$ctx1.fill(self,"span:",{anObject:anObject},smalltalk.HTMLCanvas)})},
  1126. messageSends: ["with:", "span"]}),
  1127. smalltalk.HTMLCanvas);
  1128. smalltalk.addMethod(
  1129. smalltalk.method({
  1130. selector: "strong",
  1131. fn: function (){
  1132. var self=this;
  1133. return smalltalk.withContext(function($ctx1) {
  1134. var $1;
  1135. $1=self._tag_("strong");
  1136. return $1;
  1137. }, function($ctx1) {$ctx1.fill(self,"strong",{},smalltalk.HTMLCanvas)})},
  1138. messageSends: ["tag:"]}),
  1139. smalltalk.HTMLCanvas);
  1140. smalltalk.addMethod(
  1141. smalltalk.method({
  1142. selector: "strong:",
  1143. fn: function (anObject){
  1144. var self=this;
  1145. return smalltalk.withContext(function($ctx1) {
  1146. var $1;
  1147. $1=_st(self._strong())._with_(anObject);
  1148. return $1;
  1149. }, function($ctx1) {$ctx1.fill(self,"strong:",{anObject:anObject},smalltalk.HTMLCanvas)})},
  1150. messageSends: ["with:", "strong"]}),
  1151. smalltalk.HTMLCanvas);
  1152. smalltalk.addMethod(
  1153. smalltalk.method({
  1154. selector: "style",
  1155. fn: function (){
  1156. var self=this;
  1157. function $StyleTag(){return smalltalk.StyleTag||(typeof StyleTag=="undefined"?nil:StyleTag)}
  1158. return smalltalk.withContext(function($ctx1) {
  1159. var $1;
  1160. $1=_st(self["@root"])._addBrush_(_st($StyleTag())._canvas_(self));
  1161. return $1;
  1162. }, function($ctx1) {$ctx1.fill(self,"style",{},smalltalk.HTMLCanvas)})},
  1163. messageSends: ["addBrush:", "canvas:"]}),
  1164. smalltalk.HTMLCanvas);
  1165. smalltalk.addMethod(
  1166. smalltalk.method({
  1167. selector: "style:",
  1168. fn: function (aString){
  1169. var self=this;
  1170. return smalltalk.withContext(function($ctx1) {
  1171. var $2,$3,$1;
  1172. $2=self._style();
  1173. _st($2)._with_(aString);
  1174. $3=_st($2)._yourself();
  1175. $1=$3;
  1176. return $1;
  1177. }, function($ctx1) {$ctx1.fill(self,"style:",{aString:aString},smalltalk.HTMLCanvas)})},
  1178. messageSends: ["with:", "style", "yourself"]}),
  1179. smalltalk.HTMLCanvas);
  1180. smalltalk.addMethod(
  1181. smalltalk.method({
  1182. selector: "sub",
  1183. fn: function (){
  1184. var self=this;
  1185. return smalltalk.withContext(function($ctx1) {
  1186. var $1;
  1187. $1=self._tag_("sub");
  1188. return $1;
  1189. }, function($ctx1) {$ctx1.fill(self,"sub",{},smalltalk.HTMLCanvas)})},
  1190. messageSends: ["tag:"]}),
  1191. smalltalk.HTMLCanvas);
  1192. smalltalk.addMethod(
  1193. smalltalk.method({
  1194. selector: "summary",
  1195. fn: function (){
  1196. var self=this;
  1197. return smalltalk.withContext(function($ctx1) {
  1198. var $1;
  1199. $1=self._tag_("summary");
  1200. return $1;
  1201. }, function($ctx1) {$ctx1.fill(self,"summary",{},smalltalk.HTMLCanvas)})},
  1202. messageSends: ["tag:"]}),
  1203. smalltalk.HTMLCanvas);
  1204. smalltalk.addMethod(
  1205. smalltalk.method({
  1206. selector: "sup",
  1207. fn: function (){
  1208. var self=this;
  1209. return smalltalk.withContext(function($ctx1) {
  1210. var $1;
  1211. $1=self._tag_("sup");
  1212. return $1;
  1213. }, function($ctx1) {$ctx1.fill(self,"sup",{},smalltalk.HTMLCanvas)})},
  1214. messageSends: ["tag:"]}),
  1215. smalltalk.HTMLCanvas);
  1216. smalltalk.addMethod(
  1217. smalltalk.method({
  1218. selector: "table",
  1219. fn: function (){
  1220. var self=this;
  1221. return smalltalk.withContext(function($ctx1) {
  1222. var $1;
  1223. $1=self._tag_("table");
  1224. return $1;
  1225. }, function($ctx1) {$ctx1.fill(self,"table",{},smalltalk.HTMLCanvas)})},
  1226. messageSends: ["tag:"]}),
  1227. smalltalk.HTMLCanvas);
  1228. smalltalk.addMethod(
  1229. smalltalk.method({
  1230. selector: "tag:",
  1231. fn: function (aString){
  1232. var self=this;
  1233. return smalltalk.withContext(function($ctx1) {
  1234. var $1;
  1235. $1=_st(self["@root"])._addBrush_(self._newTag_(aString));
  1236. return $1;
  1237. }, function($ctx1) {$ctx1.fill(self,"tag:",{aString:aString},smalltalk.HTMLCanvas)})},
  1238. messageSends: ["addBrush:", "newTag:"]}),
  1239. smalltalk.HTMLCanvas);
  1240. smalltalk.addMethod(
  1241. smalltalk.method({
  1242. selector: "tbody",
  1243. fn: function (){
  1244. var self=this;
  1245. return smalltalk.withContext(function($ctx1) {
  1246. var $1;
  1247. $1=self._tag_("tbody");
  1248. return $1;
  1249. }, function($ctx1) {$ctx1.fill(self,"tbody",{},smalltalk.HTMLCanvas)})},
  1250. messageSends: ["tag:"]}),
  1251. smalltalk.HTMLCanvas);
  1252. smalltalk.addMethod(
  1253. smalltalk.method({
  1254. selector: "td",
  1255. fn: function (){
  1256. var self=this;
  1257. return smalltalk.withContext(function($ctx1) {
  1258. var $1;
  1259. $1=self._tag_("td");
  1260. return $1;
  1261. }, function($ctx1) {$ctx1.fill(self,"td",{},smalltalk.HTMLCanvas)})},
  1262. messageSends: ["tag:"]}),
  1263. smalltalk.HTMLCanvas);
  1264. smalltalk.addMethod(
  1265. smalltalk.method({
  1266. selector: "textarea",
  1267. fn: function (){
  1268. var self=this;
  1269. return smalltalk.withContext(function($ctx1) {
  1270. var $1;
  1271. $1=self._tag_("textarea");
  1272. return $1;
  1273. }, function($ctx1) {$ctx1.fill(self,"textarea",{},smalltalk.HTMLCanvas)})},
  1274. messageSends: ["tag:"]}),
  1275. smalltalk.HTMLCanvas);
  1276. smalltalk.addMethod(
  1277. smalltalk.method({
  1278. selector: "tfoot",
  1279. fn: function (){
  1280. var self=this;
  1281. return smalltalk.withContext(function($ctx1) {
  1282. var $1;
  1283. $1=self._tag_("tfoot");
  1284. return $1;
  1285. }, function($ctx1) {$ctx1.fill(self,"tfoot",{},smalltalk.HTMLCanvas)})},
  1286. messageSends: ["tag:"]}),
  1287. smalltalk.HTMLCanvas);
  1288. smalltalk.addMethod(
  1289. smalltalk.method({
  1290. selector: "th",
  1291. fn: function (){
  1292. var self=this;
  1293. return smalltalk.withContext(function($ctx1) {
  1294. var $1;
  1295. $1=self._tag_("th");
  1296. return $1;
  1297. }, function($ctx1) {$ctx1.fill(self,"th",{},smalltalk.HTMLCanvas)})},
  1298. messageSends: ["tag:"]}),
  1299. smalltalk.HTMLCanvas);
  1300. smalltalk.addMethod(
  1301. smalltalk.method({
  1302. selector: "thead",
  1303. fn: function (){
  1304. var self=this;
  1305. return smalltalk.withContext(function($ctx1) {
  1306. var $1;
  1307. $1=self._tag_("thead");
  1308. return $1;
  1309. }, function($ctx1) {$ctx1.fill(self,"thead",{},smalltalk.HTMLCanvas)})},
  1310. messageSends: ["tag:"]}),
  1311. smalltalk.HTMLCanvas);
  1312. smalltalk.addMethod(
  1313. smalltalk.method({
  1314. selector: "time",
  1315. fn: function (){
  1316. var self=this;
  1317. return smalltalk.withContext(function($ctx1) {
  1318. var $1;
  1319. $1=self._tag_("time");
  1320. return $1;
  1321. }, function($ctx1) {$ctx1.fill(self,"time",{},smalltalk.HTMLCanvas)})},
  1322. messageSends: ["tag:"]}),
  1323. smalltalk.HTMLCanvas);
  1324. smalltalk.addMethod(
  1325. smalltalk.method({
  1326. selector: "title",
  1327. fn: function (){
  1328. var self=this;
  1329. return smalltalk.withContext(function($ctx1) {
  1330. var $1;
  1331. $1=self._tag_("title");
  1332. return $1;
  1333. }, function($ctx1) {$ctx1.fill(self,"title",{},smalltalk.HTMLCanvas)})},
  1334. messageSends: ["tag:"]}),
  1335. smalltalk.HTMLCanvas);
  1336. smalltalk.addMethod(
  1337. smalltalk.method({
  1338. selector: "tr",
  1339. fn: function (){
  1340. var self=this;
  1341. return smalltalk.withContext(function($ctx1) {
  1342. var $1;
  1343. $1=self._tag_("tr");
  1344. return $1;
  1345. }, function($ctx1) {$ctx1.fill(self,"tr",{},smalltalk.HTMLCanvas)})},
  1346. messageSends: ["tag:"]}),
  1347. smalltalk.HTMLCanvas);
  1348. smalltalk.addMethod(
  1349. smalltalk.method({
  1350. selector: "ul",
  1351. fn: function (){
  1352. var self=this;
  1353. return smalltalk.withContext(function($ctx1) {
  1354. var $1;
  1355. $1=self._tag_("ul");
  1356. return $1;
  1357. }, function($ctx1) {$ctx1.fill(self,"ul",{},smalltalk.HTMLCanvas)})},
  1358. messageSends: ["tag:"]}),
  1359. smalltalk.HTMLCanvas);
  1360. smalltalk.addMethod(
  1361. smalltalk.method({
  1362. selector: "ul:",
  1363. fn: function (anObject){
  1364. var self=this;
  1365. return smalltalk.withContext(function($ctx1) {
  1366. var $1;
  1367. $1=_st(self._ul())._with_(anObject);
  1368. return $1;
  1369. }, function($ctx1) {$ctx1.fill(self,"ul:",{anObject:anObject},smalltalk.HTMLCanvas)})},
  1370. messageSends: ["with:", "ul"]}),
  1371. smalltalk.HTMLCanvas);
  1372. smalltalk.addMethod(
  1373. smalltalk.method({
  1374. selector: "video",
  1375. fn: function (){
  1376. var self=this;
  1377. return smalltalk.withContext(function($ctx1) {
  1378. var $1;
  1379. $1=self._tag_("video");
  1380. return $1;
  1381. }, function($ctx1) {$ctx1.fill(self,"video",{},smalltalk.HTMLCanvas)})},
  1382. messageSends: ["tag:"]}),
  1383. smalltalk.HTMLCanvas);
  1384. smalltalk.addMethod(
  1385. smalltalk.method({
  1386. selector: "with:",
  1387. fn: function (anObject){
  1388. var self=this;
  1389. return smalltalk.withContext(function($ctx1) {
  1390. var $1;
  1391. $1=_st(self._root())._with_(anObject);
  1392. return $1;
  1393. }, function($ctx1) {$ctx1.fill(self,"with:",{anObject:anObject},smalltalk.HTMLCanvas)})},
  1394. messageSends: ["with:", "root"]}),
  1395. smalltalk.HTMLCanvas);
  1396. smalltalk.addMethod(
  1397. smalltalk.method({
  1398. selector: "browserVersion",
  1399. fn: function (){
  1400. var self=this;
  1401. return smalltalk.withContext(function($ctx1) {
  1402. var $1;
  1403. $1=_st(_st(jQuery)._at_("browser"))._version();
  1404. return $1;
  1405. }, function($ctx1) {$ctx1.fill(self,"browserVersion",{},smalltalk.HTMLCanvas.klass)})},
  1406. messageSends: ["version", "at:"]}),
  1407. smalltalk.HTMLCanvas.klass);
  1408. smalltalk.addMethod(
  1409. smalltalk.method({
  1410. selector: "isMSIE",
  1411. fn: function (){
  1412. var self=this;
  1413. return smalltalk.withContext(function($ctx1) {
  1414. var $1;
  1415. $1=_st(_st(_st(jQuery)._at_("browser"))._at_("msie"))._notNil();
  1416. return $1;
  1417. }, function($ctx1) {$ctx1.fill(self,"isMSIE",{},smalltalk.HTMLCanvas.klass)})},
  1418. messageSends: ["notNil", "at:"]}),
  1419. smalltalk.HTMLCanvas.klass);
  1420. smalltalk.addMethod(
  1421. smalltalk.method({
  1422. selector: "isMozilla",
  1423. fn: function (){
  1424. var self=this;
  1425. return smalltalk.withContext(function($ctx1) {
  1426. var $1;
  1427. $1=_st(_st(_st(jQuery)._at_("browser"))._at_("mozilla"))._notNil();
  1428. return $1;
  1429. }, function($ctx1) {$ctx1.fill(self,"isMozilla",{},smalltalk.HTMLCanvas.klass)})},
  1430. messageSends: ["notNil", "at:"]}),
  1431. smalltalk.HTMLCanvas.klass);
  1432. smalltalk.addMethod(
  1433. smalltalk.method({
  1434. selector: "isOpera",
  1435. fn: function (){
  1436. var self=this;
  1437. return smalltalk.withContext(function($ctx1) {
  1438. var $1;
  1439. $1=_st(_st(_st(jQuery)._at_("browser"))._at_("opera"))._notNil();
  1440. return $1;
  1441. }, function($ctx1) {$ctx1.fill(self,"isOpera",{},smalltalk.HTMLCanvas.klass)})},
  1442. messageSends: ["notNil", "at:"]}),
  1443. smalltalk.HTMLCanvas.klass);
  1444. smalltalk.addMethod(
  1445. smalltalk.method({
  1446. selector: "isWebkit",
  1447. fn: function (){
  1448. var self=this;
  1449. return smalltalk.withContext(function($ctx1) {
  1450. var $1;
  1451. $1=_st(_st(_st(jQuery)._at_("browser"))._at_("webkit"))._notNil();
  1452. return $1;
  1453. }, function($ctx1) {$ctx1.fill(self,"isWebkit",{},smalltalk.HTMLCanvas.klass)})},
  1454. messageSends: ["notNil", "at:"]}),
  1455. smalltalk.HTMLCanvas.klass);
  1456. smalltalk.addMethod(
  1457. smalltalk.method({
  1458. selector: "onJQuery:",
  1459. fn: function (aJQuery){
  1460. var self=this;
  1461. return smalltalk.withContext(function($ctx1) {
  1462. var $2,$3,$1;
  1463. $2=self._basicNew();
  1464. _st($2)._initializeFromJQuery_(aJQuery);
  1465. _st($2)._initialize();
  1466. $3=_st($2)._yourself();
  1467. $1=$3;
  1468. return $1;
  1469. }, function($ctx1) {$ctx1.fill(self,"onJQuery:",{aJQuery:aJQuery},smalltalk.HTMLCanvas.klass)})},
  1470. messageSends: ["initializeFromJQuery:", "basicNew", "initialize", "yourself"]}),
  1471. smalltalk.HTMLCanvas.klass);
  1472. smalltalk.addClass('HTMLSnippet', smalltalk.Object, ['snippets'], 'Canvas');
  1473. smalltalk.addMethod(
  1474. smalltalk.method({
  1475. selector: "initializeFromJQuery:",
  1476. fn: function (aJQuery){
  1477. var self=this;
  1478. return smalltalk.withContext(function($ctx1) {
  1479. _st(self._snippetsFromJQuery_(aJQuery))._do_((function(each){
  1480. return smalltalk.withContext(function($ctx2) {
  1481. return self._installSnippetFromJQuery_(_st(each)._asJQuery());
  1482. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  1483. return self}, function($ctx1) {$ctx1.fill(self,"initializeFromJQuery:",{aJQuery:aJQuery},smalltalk.HTMLSnippet)})},
  1484. messageSends: ["do:", "installSnippetFromJQuery:", "asJQuery", "snippetsFromJQuery:"]}),
  1485. smalltalk.HTMLSnippet);
  1486. smalltalk.addMethod(
  1487. smalltalk.method({
  1488. selector: "installSnippetFromJQuery:",
  1489. fn: function (element){
  1490. var self=this;
  1491. var name;
  1492. return smalltalk.withContext(function($ctx1) {
  1493. var $1,$2;
  1494. name=_st(element)._attr_("data-snippet");
  1495. $1=_st(name).__eq("*");
  1496. if(! smalltalk.assert($1)){
  1497. $2=_st("^\x5c*"._asRegexp())._test_(name);
  1498. if(smalltalk.assert($2)){
  1499. name=_st(name)._allButFirst();
  1500. name;
  1501. _st(element)._attr_put_("data-snippet","*");
  1502. } else {
  1503. _st(element)._removeAttr_("data-snippet");
  1504. };
  1505. self._snippetAt_install_(name,_st(_st(element)._detach())._get_((0)));
  1506. };
  1507. return self}, function($ctx1) {$ctx1.fill(self,"installSnippetFromJQuery:",{element:element,name:name},smalltalk.HTMLSnippet)})},
  1508. messageSends: ["attr:", "ifFalse:", "ifTrue:ifFalse:", "allButFirst", "attr:put:", "removeAttr:", "test:", "asRegexp", "snippetAt:install:", "get:", "detach", "="]}),
  1509. smalltalk.HTMLSnippet);
  1510. smalltalk.addMethod(
  1511. smalltalk.method({
  1512. selector: "snippetAt:",
  1513. fn: function (aString){
  1514. var self=this;
  1515. return smalltalk.withContext(function($ctx1) {
  1516. var $1;
  1517. $1=_st(self._snippets())._at_(aString);
  1518. return $1;
  1519. }, function($ctx1) {$ctx1.fill(self,"snippetAt:",{aString:aString},smalltalk.HTMLSnippet)})},
  1520. messageSends: ["at:", "snippets"]}),
  1521. smalltalk.HTMLSnippet);
  1522. smalltalk.addMethod(
  1523. smalltalk.method({
  1524. selector: "snippetAt:compile:",
  1525. fn: function (aString,anElement){
  1526. var self=this;
  1527. function $HTMLCanvas(){return smalltalk.HTMLCanvas||(typeof HTMLCanvas=="undefined"?nil:HTMLCanvas)}
  1528. function $ClassBuilder(){return smalltalk.ClassBuilder||(typeof ClassBuilder=="undefined"?nil:ClassBuilder)}
  1529. return smalltalk.withContext(function($ctx1) {
  1530. _st(_st($ClassBuilder())._new())._installMethod_forClass_category_(_st(_st((function(htmlReceiver){
  1531. return smalltalk.withContext(function($ctx2) {
  1532. return _st(htmlReceiver)._snippet_(anElement);
  1533. }, function($ctx2) {$ctx2.fillBlock({htmlReceiver:htmlReceiver},$ctx1)})}))._currySelf())._asCompiledMethod_(aString),$HTMLCanvas(),"**snippets");
  1534. return self}, function($ctx1) {$ctx1.fill(self,"snippetAt:compile:",{aString:aString,anElement:anElement},smalltalk.HTMLSnippet)})},
  1535. messageSends: ["installMethod:forClass:category:", "asCompiledMethod:", "currySelf", "snippet:", "new"]}),
  1536. smalltalk.HTMLSnippet);
  1537. smalltalk.addMethod(
  1538. smalltalk.method({
  1539. selector: "snippetAt:install:",
  1540. fn: function (aString,anElement){
  1541. var self=this;
  1542. return smalltalk.withContext(function($ctx1) {
  1543. _st(self._snippets())._at_put_(aString,anElement);
  1544. self._snippetAt_compile_(aString,anElement);
  1545. return self}, function($ctx1) {$ctx1.fill(self,"snippetAt:install:",{aString:aString,anElement:anElement},smalltalk.HTMLSnippet)})},
  1546. messageSends: ["at:put:", "snippets", "snippetAt:compile:"]}),
  1547. smalltalk.HTMLSnippet);
  1548. smalltalk.addMethod(
  1549. smalltalk.method({
  1550. selector: "snippets",
  1551. fn: function (){
  1552. var self=this;
  1553. return smalltalk.withContext(function($ctx1) {
  1554. var $2,$1;
  1555. $2=self["@snippets"];
  1556. if(($receiver = $2) == nil || $receiver == undefined){
  1557. self["@snippets"]=smalltalk.HashedCollection._from_([]);
  1558. $1=self["@snippets"];
  1559. } else {
  1560. $1=$2;
  1561. };
  1562. return $1;
  1563. }, function($ctx1) {$ctx1.fill(self,"snippets",{},smalltalk.HTMLSnippet)})},
  1564. messageSends: ["ifNil:"]}),
  1565. smalltalk.HTMLSnippet);
  1566. smalltalk.addMethod(
  1567. smalltalk.method({
  1568. selector: "snippetsFromJQuery:",
  1569. fn: function (aJQuery){
  1570. var self=this;
  1571. return smalltalk.withContext(function($ctx1) {
  1572. var $1;
  1573. $1=_st(_st(aJQuery)._find_("[data-snippet]"))._toArray();
  1574. return $1;
  1575. }, function($ctx1) {$ctx1.fill(self,"snippetsFromJQuery:",{aJQuery:aJQuery},smalltalk.HTMLSnippet)})},
  1576. messageSends: ["toArray", "find:"]}),
  1577. smalltalk.HTMLSnippet);
  1578. smalltalk.HTMLSnippet.klass.iVarNames = ['current'];
  1579. smalltalk.addMethod(
  1580. smalltalk.method({
  1581. selector: "current",
  1582. fn: function (){
  1583. var self=this;
  1584. return smalltalk.withContext(function($ctx1) {
  1585. var $1;
  1586. $1=self["@current"];
  1587. return $1;
  1588. }, function($ctx1) {$ctx1.fill(self,"current",{},smalltalk.HTMLSnippet.klass)})},
  1589. messageSends: []}),
  1590. smalltalk.HTMLSnippet.klass);
  1591. smalltalk.addMethod(
  1592. smalltalk.method({
  1593. selector: "ensureCurrent",
  1594. fn: function (){
  1595. var self=this;
  1596. return smalltalk.withContext(function($ctx1) {
  1597. var $1,$2,$3;
  1598. $1=self["@current"];
  1599. if(($receiver = $1) == nil || $receiver == undefined){
  1600. $2=smalltalk.HTMLSnippet.klass.superclass.fn.prototype._new.apply(_st(self), []);
  1601. _st($2)._initializeFromJQuery_(_st(document)._asJQuery());
  1602. $3=_st($2)._yourself();
  1603. self["@current"]=$3;
  1604. self["@current"];
  1605. } else {
  1606. $1;
  1607. };
  1608. return self}, function($ctx1) {$ctx1.fill(self,"ensureCurrent",{},smalltalk.HTMLSnippet.klass)})},
  1609. messageSends: ["ifNil:", "initializeFromJQuery:", "asJQuery", "new", "yourself"]}),
  1610. smalltalk.HTMLSnippet.klass);
  1611. smalltalk.addMethod(
  1612. smalltalk.method({
  1613. selector: "initialize",
  1614. fn: function (){
  1615. var self=this;
  1616. return smalltalk.withContext(function($ctx1) {
  1617. var $1;
  1618. smalltalk.HTMLSnippet.klass.superclass.fn.prototype._initialize.apply(_st(self), []);
  1619. $1=self._isDOMAvailable();
  1620. if(smalltalk.assert($1)){
  1621. self._ensureCurrent();
  1622. };
  1623. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.HTMLSnippet.klass)})},
  1624. messageSends: ["initialize", "ifTrue:", "ensureCurrent", "isDOMAvailable"]}),
  1625. smalltalk.HTMLSnippet.klass);
  1626. smalltalk.addMethod(
  1627. smalltalk.method({
  1628. selector: "isDOMAvailable",
  1629. fn: function (){
  1630. var self=this;
  1631. return smalltalk.withContext(function($ctx1) {
  1632. return typeof document !== 'undefined' ;
  1633. return self}, function($ctx1) {$ctx1.fill(self,"isDOMAvailable",{},smalltalk.HTMLSnippet.klass)})},
  1634. messageSends: []}),
  1635. smalltalk.HTMLSnippet.klass);
  1636. smalltalk.addMethod(
  1637. smalltalk.method({
  1638. selector: "new",
  1639. fn: function (){
  1640. var self=this;
  1641. return smalltalk.withContext(function($ctx1) {
  1642. self._shouldNotImplement();
  1643. return self}, function($ctx1) {$ctx1.fill(self,"new",{},smalltalk.HTMLSnippet.klass)})},
  1644. messageSends: ["shouldNotImplement"]}),
  1645. smalltalk.HTMLSnippet.klass);
  1646. smalltalk.addClass('TagBrush', smalltalk.Object, ['canvas', 'element'], 'Canvas');
  1647. smalltalk.addMethod(
  1648. smalltalk.method({
  1649. selector: "accesskey:",
  1650. fn: function (aString){
  1651. var self=this;
  1652. return smalltalk.withContext(function($ctx1) {
  1653. self._at_put_("accesskey",aString);
  1654. return self}, function($ctx1) {$ctx1.fill(self,"accesskey:",{aString:aString},smalltalk.TagBrush)})},
  1655. messageSends: ["at:put:"]}),
  1656. smalltalk.TagBrush);
  1657. smalltalk.addMethod(
  1658. smalltalk.method({
  1659. selector: "action:",
  1660. fn: function (aString){
  1661. var self=this;
  1662. return smalltalk.withContext(function($ctx1) {
  1663. self._at_put_("action",aString);
  1664. return self}, function($ctx1) {$ctx1.fill(self,"action:",{aString:aString},smalltalk.TagBrush)})},
  1665. messageSends: ["at:put:"]}),
  1666. smalltalk.TagBrush);
  1667. smalltalk.addMethod(
  1668. smalltalk.method({
  1669. selector: "addBrush:",
  1670. fn: function (aTagBrush){
  1671. var self=this;
  1672. return smalltalk.withContext(function($ctx1) {
  1673. var $1;
  1674. self._appendChild_(_st(aTagBrush)._element());
  1675. $1=aTagBrush;
  1676. return $1;
  1677. }, function($ctx1) {$ctx1.fill(self,"addBrush:",{aTagBrush:aTagBrush},smalltalk.TagBrush)})},
  1678. messageSends: ["appendChild:", "element"]}),
  1679. smalltalk.TagBrush);
  1680. smalltalk.addMethod(
  1681. smalltalk.method({
  1682. selector: "align:",
  1683. fn: function (aString){
  1684. var self=this;
  1685. return smalltalk.withContext(function($ctx1) {
  1686. self._at_put_("align",aString);
  1687. return self}, function($ctx1) {$ctx1.fill(self,"align:",{aString:aString},smalltalk.TagBrush)})},
  1688. messageSends: ["at:put:"]}),
  1689. smalltalk.TagBrush);
  1690. smalltalk.addMethod(
  1691. smalltalk.method({
  1692. selector: "alt:",
  1693. fn: function (aString){
  1694. var self=this;
  1695. return smalltalk.withContext(function($ctx1) {
  1696. self._at_put_("alt",aString);
  1697. return self}, function($ctx1) {$ctx1.fill(self,"alt:",{aString:aString},smalltalk.TagBrush)})},
  1698. messageSends: ["at:put:"]}),
  1699. smalltalk.TagBrush);
  1700. smalltalk.addMethod(
  1701. smalltalk.method({
  1702. selector: "append:",
  1703. fn: function (anObject){
  1704. var self=this;
  1705. return smalltalk.withContext(function($ctx1) {
  1706. _st(anObject)._appendToBrush_(self);
  1707. return self}, function($ctx1) {$ctx1.fill(self,"append:",{anObject:anObject},smalltalk.TagBrush)})},
  1708. messageSends: ["appendToBrush:"]}),
  1709. smalltalk.TagBrush);
  1710. smalltalk.addMethod(
  1711. smalltalk.method({
  1712. selector: "appendBlock:",
  1713. fn: function (aBlock){
  1714. var self=this;
  1715. var root;
  1716. return smalltalk.withContext(function($ctx1) {
  1717. root=_st(self["@canvas"])._root();
  1718. _st(self["@canvas"])._root_(self);
  1719. _st(aBlock)._value_(self["@canvas"]);
  1720. _st(self["@canvas"])._root_(root);
  1721. return self}, function($ctx1) {$ctx1.fill(self,"appendBlock:",{aBlock:aBlock,root:root},smalltalk.TagBrush)})},
  1722. messageSends: ["root", "root:", "value:"]}),
  1723. smalltalk.TagBrush);
  1724. smalltalk.addMethod(
  1725. smalltalk.method({
  1726. selector: "appendChild:",
  1727. fn: function (anElement){
  1728. var self=this;
  1729. return smalltalk.withContext(function($ctx1) {
  1730. var element=self['@element'];
  1731. if (null == element.canHaveChildren || element.canHaveChildren) {
  1732. element.appendChild(anElement);
  1733. } else {
  1734. element.text = String(element.text) + anElement.innerHTML;
  1735. } ;
  1736. return self}, function($ctx1) {$ctx1.fill(self,"appendChild:",{anElement:anElement},smalltalk.TagBrush)})},
  1737. messageSends: []}),
  1738. smalltalk.TagBrush);
  1739. smalltalk.addMethod(
  1740. smalltalk.method({
  1741. selector: "appendString:",
  1742. fn: function (aString){
  1743. var self=this;
  1744. return smalltalk.withContext(function($ctx1) {
  1745. self._appendChild_(self._createTextNodeFor_(aString));
  1746. return self}, function($ctx1) {$ctx1.fill(self,"appendString:",{aString:aString},smalltalk.TagBrush)})},
  1747. messageSends: ["appendChild:", "createTextNodeFor:"]}),
  1748. smalltalk.TagBrush);
  1749. smalltalk.addMethod(
  1750. smalltalk.method({
  1751. selector: "appendToBrush:",
  1752. fn: function (aTagBrush){
  1753. var self=this;
  1754. return smalltalk.withContext(function($ctx1) {
  1755. _st(aTagBrush)._addBrush_(self);
  1756. return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},smalltalk.TagBrush)})},
  1757. messageSends: ["addBrush:"]}),
  1758. smalltalk.TagBrush);
  1759. smalltalk.addMethod(
  1760. smalltalk.method({
  1761. selector: "asJQuery",
  1762. fn: function (){
  1763. var self=this;
  1764. return smalltalk.withContext(function($ctx1) {
  1765. var $1;
  1766. $1=_st(window)._jQuery_(self._element());
  1767. return $1;
  1768. }, function($ctx1) {$ctx1.fill(self,"asJQuery",{},smalltalk.TagBrush)})},
  1769. messageSends: ["jQuery:", "element"]}),
  1770. smalltalk.TagBrush);
  1771. smalltalk.addMethod(
  1772. smalltalk.method({
  1773. selector: "at:put:",
  1774. fn: function (aString,aValue){
  1775. var self=this;
  1776. return smalltalk.withContext(function($ctx1) {
  1777. self['@element'].setAttribute(aString, aValue);
  1778. return self}, function($ctx1) {$ctx1.fill(self,"at:put:",{aString:aString,aValue:aValue},smalltalk.TagBrush)})},
  1779. messageSends: []}),
  1780. smalltalk.TagBrush);
  1781. smalltalk.addMethod(
  1782. smalltalk.method({
  1783. selector: "class:",
  1784. fn: function (aString){
  1785. var self=this;
  1786. return smalltalk.withContext(function($ctx1) {
  1787. self['@element'].className = aString;
  1788. return self}, function($ctx1) {$ctx1.fill(self,"class:",{aString:aString},smalltalk.TagBrush)})},
  1789. messageSends: []}),
  1790. smalltalk.TagBrush);
  1791. smalltalk.addMethod(
  1792. smalltalk.method({
  1793. selector: "cols:",
  1794. fn: function (aString){
  1795. var self=this;
  1796. return smalltalk.withContext(function($ctx1) {
  1797. self._at_put_("cols",aString);
  1798. return self}, function($ctx1) {$ctx1.fill(self,"cols:",{aString:aString},smalltalk.TagBrush)})},
  1799. messageSends: ["at:put:"]}),
  1800. smalltalk.TagBrush);
  1801. smalltalk.addMethod(
  1802. smalltalk.method({
  1803. selector: "contenteditable:",
  1804. fn: function (aString){
  1805. var self=this;
  1806. return smalltalk.withContext(function($ctx1) {
  1807. self._at_put_("contenteditable",aString);
  1808. return self}, function($ctx1) {$ctx1.fill(self,"contenteditable:",{aString:aString},smalltalk.TagBrush)})},
  1809. messageSends: ["at:put:"]}),
  1810. smalltalk.TagBrush);
  1811. smalltalk.addMethod(
  1812. smalltalk.method({
  1813. selector: "contents:",
  1814. fn: function (anObject){
  1815. var self=this;
  1816. return smalltalk.withContext(function($ctx1) {
  1817. var $1,$2;
  1818. $1=self;
  1819. _st($1)._empty();
  1820. $2=_st($1)._append_(anObject);
  1821. return self}, function($ctx1) {$ctx1.fill(self,"contents:",{anObject:anObject},smalltalk.TagBrush)})},
  1822. messageSends: ["empty", "append:"]}),
  1823. smalltalk.TagBrush);
  1824. smalltalk.addMethod(
  1825. smalltalk.method({
  1826. selector: "contextmenu:",
  1827. fn: function (aString){
  1828. var self=this;
  1829. return smalltalk.withContext(function($ctx1) {
  1830. self._at_put_("contextmenu",aString);
  1831. return self}, function($ctx1) {$ctx1.fill(self,"contextmenu:",{aString:aString},smalltalk.TagBrush)})},
  1832. messageSends: ["at:put:"]}),
  1833. smalltalk.TagBrush);
  1834. smalltalk.addMethod(
  1835. smalltalk.method({
  1836. selector: "createElementFor:",
  1837. fn: function (aString){
  1838. var self=this;
  1839. return smalltalk.withContext(function($ctx1) {
  1840. return document.createElement(String(aString));
  1841. return self}, function($ctx1) {$ctx1.fill(self,"createElementFor:",{aString:aString},smalltalk.TagBrush)})},
  1842. messageSends: []}),
  1843. smalltalk.TagBrush);
  1844. smalltalk.addMethod(
  1845. smalltalk.method({
  1846. selector: "createTextNodeFor:",
  1847. fn: function (aString){
  1848. var self=this;
  1849. return smalltalk.withContext(function($ctx1) {
  1850. return document.createTextNode(String(aString));
  1851. return self}, function($ctx1) {$ctx1.fill(self,"createTextNodeFor:",{aString:aString},smalltalk.TagBrush)})},
  1852. messageSends: []}),
  1853. smalltalk.TagBrush);
  1854. smalltalk.addMethod(
  1855. smalltalk.method({
  1856. selector: "draggable:",
  1857. fn: function (aString){
  1858. var self=this;
  1859. return smalltalk.withContext(function($ctx1) {
  1860. self._at_put_("draggable",aString);
  1861. return self}, function($ctx1) {$ctx1.fill(self,"draggable:",{aString:aString},smalltalk.TagBrush)})},
  1862. messageSends: ["at:put:"]}),
  1863. smalltalk.TagBrush);
  1864. smalltalk.addMethod(
  1865. smalltalk.method({
  1866. selector: "element",
  1867. fn: function (){
  1868. var self=this;
  1869. return smalltalk.withContext(function($ctx1) {
  1870. var $1;
  1871. $1=self["@element"];
  1872. return $1;
  1873. }, function($ctx1) {$ctx1.fill(self,"element",{},smalltalk.TagBrush)})},
  1874. messageSends: []}),
  1875. smalltalk.TagBrush);
  1876. smalltalk.addMethod(
  1877. smalltalk.method({
  1878. selector: "empty",
  1879. fn: function (){
  1880. var self=this;
  1881. return smalltalk.withContext(function($ctx1) {
  1882. _st(self._asJQuery())._empty();
  1883. return self}, function($ctx1) {$ctx1.fill(self,"empty",{},smalltalk.TagBrush)})},
  1884. messageSends: ["empty", "asJQuery"]}),
  1885. smalltalk.TagBrush);
  1886. smalltalk.addMethod(
  1887. smalltalk.method({
  1888. selector: "for:",
  1889. fn: function (aString){
  1890. var self=this;
  1891. return smalltalk.withContext(function($ctx1) {
  1892. self._at_put_("for",aString);
  1893. return self}, function($ctx1) {$ctx1.fill(self,"for:",{aString:aString},smalltalk.TagBrush)})},
  1894. messageSends: ["at:put:"]}),
  1895. smalltalk.TagBrush);
  1896. smalltalk.addMethod(
  1897. smalltalk.method({
  1898. selector: "height:",
  1899. fn: function (aString){
  1900. var self=this;
  1901. return smalltalk.withContext(function($ctx1) {
  1902. self._at_put_("height",aString);
  1903. return self}, function($ctx1) {$ctx1.fill(self,"height:",{aString:aString},smalltalk.TagBrush)})},
  1904. messageSends: ["at:put:"]}),
  1905. smalltalk.TagBrush);
  1906. smalltalk.addMethod(
  1907. smalltalk.method({
  1908. selector: "hidden",
  1909. fn: function (){
  1910. var self=this;
  1911. return smalltalk.withContext(function($ctx1) {
  1912. self._at_put_("hidden","hidden");
  1913. return self}, function($ctx1) {$ctx1.fill(self,"hidden",{},smalltalk.TagBrush)})},
  1914. messageSends: ["at:put:"]}),
  1915. smalltalk.TagBrush);
  1916. smalltalk.addMethod(
  1917. smalltalk.method({
  1918. selector: "href:",
  1919. fn: function (aString){
  1920. var self=this;
  1921. return smalltalk.withContext(function($ctx1) {
  1922. self._at_put_("href",aString);
  1923. return self}, function($ctx1) {$ctx1.fill(self,"href:",{aString:aString},smalltalk.TagBrush)})},
  1924. messageSends: ["at:put:"]}),
  1925. smalltalk.TagBrush);
  1926. smalltalk.addMethod(
  1927. smalltalk.method({
  1928. selector: "id:",
  1929. fn: function (aString){
  1930. var self=this;
  1931. return smalltalk.withContext(function($ctx1) {
  1932. self._at_put_("id",aString);
  1933. return self}, function($ctx1) {$ctx1.fill(self,"id:",{aString:aString},smalltalk.TagBrush)})},
  1934. messageSends: ["at:put:"]}),
  1935. smalltalk.TagBrush);
  1936. smalltalk.addMethod(
  1937. smalltalk.method({
  1938. selector: "initializeFromJQuery:canvas:",
  1939. fn: function (aJQuery,aCanvas){
  1940. var self=this;
  1941. return smalltalk.withContext(function($ctx1) {
  1942. self["@element"]=_st(aJQuery)._get_((0));
  1943. self["@canvas"]=aCanvas;
  1944. return self}, function($ctx1) {$ctx1.fill(self,"initializeFromJQuery:canvas:",{aJQuery:aJQuery,aCanvas:aCanvas},smalltalk.TagBrush)})},
  1945. messageSends: ["get:"]}),
  1946. smalltalk.TagBrush);
  1947. smalltalk.addMethod(
  1948. smalltalk.method({
  1949. selector: "initializeFromString:canvas:",
  1950. fn: function (aString,aCanvas){
  1951. var self=this;
  1952. return smalltalk.withContext(function($ctx1) {
  1953. self["@element"]=self._createElementFor_(aString);
  1954. self["@canvas"]=aCanvas;
  1955. return self}, function($ctx1) {$ctx1.fill(self,"initializeFromString:canvas:",{aString:aString,aCanvas:aCanvas},smalltalk.TagBrush)})},
  1956. messageSends: ["createElementFor:"]}),
  1957. smalltalk.TagBrush);
  1958. smalltalk.addMethod(
  1959. smalltalk.method({
  1960. selector: "media:",
  1961. fn: function (aString){
  1962. var self=this;
  1963. return smalltalk.withContext(function($ctx1) {
  1964. self._at_put_("media",aString);
  1965. return self}, function($ctx1) {$ctx1.fill(self,"media:",{aString:aString},smalltalk.TagBrush)})},
  1966. messageSends: ["at:put:"]}),
  1967. smalltalk.TagBrush);
  1968. smalltalk.addMethod(
  1969. smalltalk.method({
  1970. selector: "method:",
  1971. fn: function (aString){
  1972. var self=this;
  1973. return smalltalk.withContext(function($ctx1) {
  1974. self._at_put_("method",aString);
  1975. return self}, function($ctx1) {$ctx1.fill(self,"method:",{aString:aString},smalltalk.TagBrush)})},
  1976. messageSends: ["at:put:"]}),
  1977. smalltalk.TagBrush);
  1978. smalltalk.addMethod(
  1979. smalltalk.method({
  1980. selector: "name:",
  1981. fn: function (aString){
  1982. var self=this;
  1983. return smalltalk.withContext(function($ctx1) {
  1984. self._at_put_("name",aString);
  1985. return self}, function($ctx1) {$ctx1.fill(self,"name:",{aString:aString},smalltalk.TagBrush)})},
  1986. messageSends: ["at:put:"]}),
  1987. smalltalk.TagBrush);
  1988. smalltalk.addMethod(
  1989. smalltalk.method({
  1990. selector: "onBlur:",
  1991. fn: function (aBlock){
  1992. var self=this;
  1993. return smalltalk.withContext(function($ctx1) {
  1994. _st(self._asJQuery())._bind_do_("blur",aBlock);
  1995. return self}, function($ctx1) {$ctx1.fill(self,"onBlur:",{aBlock:aBlock},smalltalk.TagBrush)})},
  1996. messageSends: ["bind:do:", "asJQuery"]}),
  1997. smalltalk.TagBrush);
  1998. smalltalk.addMethod(
  1999. smalltalk.method({
  2000. selector: "onChange:",
  2001. fn: function (aBlock){
  2002. var self=this;
  2003. return smalltalk.withContext(function($ctx1) {
  2004. _st(self._asJQuery())._bind_do_("change",aBlock);
  2005. return self}, function($ctx1) {$ctx1.fill(self,"onChange:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2006. messageSends: ["bind:do:", "asJQuery"]}),
  2007. smalltalk.TagBrush);
  2008. smalltalk.addMethod(
  2009. smalltalk.method({
  2010. selector: "onClick:",
  2011. fn: function (aBlock){
  2012. var self=this;
  2013. return smalltalk.withContext(function($ctx1) {
  2014. _st(self._asJQuery())._bind_do_("click",aBlock);
  2015. return self}, function($ctx1) {$ctx1.fill(self,"onClick:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2016. messageSends: ["bind:do:", "asJQuery"]}),
  2017. smalltalk.TagBrush);
  2018. smalltalk.addMethod(
  2019. smalltalk.method({
  2020. selector: "onDblClick:",
  2021. fn: function (aBlock){
  2022. var self=this;
  2023. return smalltalk.withContext(function($ctx1) {
  2024. _st(self._asJQuery())._bind_do_("dblclick",aBlock);
  2025. return self}, function($ctx1) {$ctx1.fill(self,"onDblClick:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2026. messageSends: ["bind:do:", "asJQuery"]}),
  2027. smalltalk.TagBrush);
  2028. smalltalk.addMethod(
  2029. smalltalk.method({
  2030. selector: "onFocus:",
  2031. fn: function (aBlock){
  2032. var self=this;
  2033. return smalltalk.withContext(function($ctx1) {
  2034. _st(self._asJQuery())._bind_do_("focus",aBlock);
  2035. return self}, function($ctx1) {$ctx1.fill(self,"onFocus:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2036. messageSends: ["bind:do:", "asJQuery"]}),
  2037. smalltalk.TagBrush);
  2038. smalltalk.addMethod(
  2039. smalltalk.method({
  2040. selector: "onFocusIn:",
  2041. fn: function (aBlock){
  2042. var self=this;
  2043. return smalltalk.withContext(function($ctx1) {
  2044. _st(self._asJQuery())._bind_do_("focusin",aBlock);
  2045. return self}, function($ctx1) {$ctx1.fill(self,"onFocusIn:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2046. messageSends: ["bind:do:", "asJQuery"]}),
  2047. smalltalk.TagBrush);
  2048. smalltalk.addMethod(
  2049. smalltalk.method({
  2050. selector: "onFocusOut:",
  2051. fn: function (aBlock){
  2052. var self=this;
  2053. return smalltalk.withContext(function($ctx1) {
  2054. _st(self._asJQuery())._bind_do_("focusout",aBlock);
  2055. return self}, function($ctx1) {$ctx1.fill(self,"onFocusOut:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2056. messageSends: ["bind:do:", "asJQuery"]}),
  2057. smalltalk.TagBrush);
  2058. smalltalk.addMethod(
  2059. smalltalk.method({
  2060. selector: "onHover:",
  2061. fn: function (aBlock){
  2062. var self=this;
  2063. return smalltalk.withContext(function($ctx1) {
  2064. _st(self._asJQuery())._bind_do_("hover",aBlock);
  2065. return self}, function($ctx1) {$ctx1.fill(self,"onHover:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2066. messageSends: ["bind:do:", "asJQuery"]}),
  2067. smalltalk.TagBrush);
  2068. smalltalk.addMethod(
  2069. smalltalk.method({
  2070. selector: "onKeyDown:",
  2071. fn: function (aBlock){
  2072. var self=this;
  2073. return smalltalk.withContext(function($ctx1) {
  2074. _st(self._asJQuery())._bind_do_("keydown",aBlock);
  2075. return self}, function($ctx1) {$ctx1.fill(self,"onKeyDown:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2076. messageSends: ["bind:do:", "asJQuery"]}),
  2077. smalltalk.TagBrush);
  2078. smalltalk.addMethod(
  2079. smalltalk.method({
  2080. selector: "onKeyPress:",
  2081. fn: function (aBlock){
  2082. var self=this;
  2083. return smalltalk.withContext(function($ctx1) {
  2084. _st(self._asJQuery())._bind_do_("keypress",aBlock);
  2085. return self}, function($ctx1) {$ctx1.fill(self,"onKeyPress:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2086. messageSends: ["bind:do:", "asJQuery"]}),
  2087. smalltalk.TagBrush);
  2088. smalltalk.addMethod(
  2089. smalltalk.method({
  2090. selector: "onKeyUp:",
  2091. fn: function (aBlock){
  2092. var self=this;
  2093. return smalltalk.withContext(function($ctx1) {
  2094. _st(self._asJQuery())._bind_do_("keyup",aBlock);
  2095. return self}, function($ctx1) {$ctx1.fill(self,"onKeyUp:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2096. messageSends: ["bind:do:", "asJQuery"]}),
  2097. smalltalk.TagBrush);
  2098. smalltalk.addMethod(
  2099. smalltalk.method({
  2100. selector: "onMouseDown:",
  2101. fn: function (aBlock){
  2102. var self=this;
  2103. return smalltalk.withContext(function($ctx1) {
  2104. _st(self._asJQuery())._bind_do_("mousedown",aBlock);
  2105. return self}, function($ctx1) {$ctx1.fill(self,"onMouseDown:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2106. messageSends: ["bind:do:", "asJQuery"]}),
  2107. smalltalk.TagBrush);
  2108. smalltalk.addMethod(
  2109. smalltalk.method({
  2110. selector: "onMouseEnter:",
  2111. fn: function (aBlock){
  2112. var self=this;
  2113. return smalltalk.withContext(function($ctx1) {
  2114. _st(self._asJQuery())._bind_do_("mouseenter",aBlock);
  2115. return self}, function($ctx1) {$ctx1.fill(self,"onMouseEnter:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2116. messageSends: ["bind:do:", "asJQuery"]}),
  2117. smalltalk.TagBrush);
  2118. smalltalk.addMethod(
  2119. smalltalk.method({
  2120. selector: "onMouseLeave:",
  2121. fn: function (aBlock){
  2122. var self=this;
  2123. return smalltalk.withContext(function($ctx1) {
  2124. _st(self._asJQuery())._bind_do_("mouseleave",aBlock);
  2125. return self}, function($ctx1) {$ctx1.fill(self,"onMouseLeave:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2126. messageSends: ["bind:do:", "asJQuery"]}),
  2127. smalltalk.TagBrush);
  2128. smalltalk.addMethod(
  2129. smalltalk.method({
  2130. selector: "onMouseMove:",
  2131. fn: function (aBlock){
  2132. var self=this;
  2133. return smalltalk.withContext(function($ctx1) {
  2134. _st(self._asJQuery())._bind_do_("mousemove",aBlock);
  2135. return self}, function($ctx1) {$ctx1.fill(self,"onMouseMove:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2136. messageSends: ["bind:do:", "asJQuery"]}),
  2137. smalltalk.TagBrush);
  2138. smalltalk.addMethod(
  2139. smalltalk.method({
  2140. selector: "onMouseOut:",
  2141. fn: function (aBlock){
  2142. var self=this;
  2143. return smalltalk.withContext(function($ctx1) {
  2144. _st(self._asJQuery())._bind_do_("mouseout",aBlock);
  2145. return self}, function($ctx1) {$ctx1.fill(self,"onMouseOut:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2146. messageSends: ["bind:do:", "asJQuery"]}),
  2147. smalltalk.TagBrush);
  2148. smalltalk.addMethod(
  2149. smalltalk.method({
  2150. selector: "onMouseOver:",
  2151. fn: function (aBlock){
  2152. var self=this;
  2153. return smalltalk.withContext(function($ctx1) {
  2154. _st(self._asJQuery())._bind_do_("mouseover",aBlock);
  2155. return self}, function($ctx1) {$ctx1.fill(self,"onMouseOver:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2156. messageSends: ["bind:do:", "asJQuery"]}),
  2157. smalltalk.TagBrush);
  2158. smalltalk.addMethod(
  2159. smalltalk.method({
  2160. selector: "onMouseUp:",
  2161. fn: function (aBlock){
  2162. var self=this;
  2163. return smalltalk.withContext(function($ctx1) {
  2164. _st(self._asJQuery())._bind_do_("mouseup",aBlock);
  2165. return self}, function($ctx1) {$ctx1.fill(self,"onMouseUp:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2166. messageSends: ["bind:do:", "asJQuery"]}),
  2167. smalltalk.TagBrush);
  2168. smalltalk.addMethod(
  2169. smalltalk.method({
  2170. selector: "onSelect:",
  2171. fn: function (aBlock){
  2172. var self=this;
  2173. return smalltalk.withContext(function($ctx1) {
  2174. _st(self._asJQuery())._bind_do_("select",aBlock);
  2175. return self}, function($ctx1) {$ctx1.fill(self,"onSelect:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2176. messageSends: ["bind:do:", "asJQuery"]}),
  2177. smalltalk.TagBrush);
  2178. smalltalk.addMethod(
  2179. smalltalk.method({
  2180. selector: "onSubmit:",
  2181. fn: function (aBlock){
  2182. var self=this;
  2183. return smalltalk.withContext(function($ctx1) {
  2184. _st(self._asJQuery())._bind_do_("submit",aBlock);
  2185. return self}, function($ctx1) {$ctx1.fill(self,"onSubmit:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2186. messageSends: ["bind:do:", "asJQuery"]}),
  2187. smalltalk.TagBrush);
  2188. smalltalk.addMethod(
  2189. smalltalk.method({
  2190. selector: "onUnload:",
  2191. fn: function (aBlock){
  2192. var self=this;
  2193. return smalltalk.withContext(function($ctx1) {
  2194. _st(self._asJQuery())._bind_do_("unload",aBlock);
  2195. return self}, function($ctx1) {$ctx1.fill(self,"onUnload:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2196. messageSends: ["bind:do:", "asJQuery"]}),
  2197. smalltalk.TagBrush);
  2198. smalltalk.addMethod(
  2199. smalltalk.method({
  2200. selector: "placeholder:",
  2201. fn: function (aString){
  2202. var self=this;
  2203. return smalltalk.withContext(function($ctx1) {
  2204. self._at_put_("placeholder",aString);
  2205. return self}, function($ctx1) {$ctx1.fill(self,"placeholder:",{aString:aString},smalltalk.TagBrush)})},
  2206. messageSends: ["at:put:"]}),
  2207. smalltalk.TagBrush);
  2208. smalltalk.addMethod(
  2209. smalltalk.method({
  2210. selector: "rel:",
  2211. fn: function (aString){
  2212. var self=this;
  2213. return smalltalk.withContext(function($ctx1) {
  2214. self._at_put_("rel",aString);
  2215. return self}, function($ctx1) {$ctx1.fill(self,"rel:",{aString:aString},smalltalk.TagBrush)})},
  2216. messageSends: ["at:put:"]}),
  2217. smalltalk.TagBrush);
  2218. smalltalk.addMethod(
  2219. smalltalk.method({
  2220. selector: "removeAt:",
  2221. fn: function (aString){
  2222. var self=this;
  2223. return smalltalk.withContext(function($ctx1) {
  2224. self['@element'].removeAttribute(aString);
  2225. return self}, function($ctx1) {$ctx1.fill(self,"removeAt:",{aString:aString},smalltalk.TagBrush)})},
  2226. messageSends: []}),
  2227. smalltalk.TagBrush);
  2228. smalltalk.addMethod(
  2229. smalltalk.method({
  2230. selector: "rows:",
  2231. fn: function (aString){
  2232. var self=this;
  2233. return smalltalk.withContext(function($ctx1) {
  2234. self._at_put_("rows",aString);
  2235. return self}, function($ctx1) {$ctx1.fill(self,"rows:",{aString:aString},smalltalk.TagBrush)})},
  2236. messageSends: ["at:put:"]}),
  2237. smalltalk.TagBrush);
  2238. smalltalk.addMethod(
  2239. smalltalk.method({
  2240. selector: "src:",
  2241. fn: function (aString){
  2242. var self=this;
  2243. return smalltalk.withContext(function($ctx1) {
  2244. self._at_put_("src",aString);
  2245. return self}, function($ctx1) {$ctx1.fill(self,"src:",{aString:aString},smalltalk.TagBrush)})},
  2246. messageSends: ["at:put:"]}),
  2247. smalltalk.TagBrush);
  2248. smalltalk.addMethod(
  2249. smalltalk.method({
  2250. selector: "style:",
  2251. fn: function (aString){
  2252. var self=this;
  2253. return smalltalk.withContext(function($ctx1) {
  2254. self._at_put_("style",aString);
  2255. return self}, function($ctx1) {$ctx1.fill(self,"style:",{aString:aString},smalltalk.TagBrush)})},
  2256. messageSends: ["at:put:"]}),
  2257. smalltalk.TagBrush);
  2258. smalltalk.addMethod(
  2259. smalltalk.method({
  2260. selector: "tabindex:",
  2261. fn: function (aNumber){
  2262. var self=this;
  2263. return smalltalk.withContext(function($ctx1) {
  2264. self._at_put_("tabindex",aNumber);
  2265. return self}, function($ctx1) {$ctx1.fill(self,"tabindex:",{aNumber:aNumber},smalltalk.TagBrush)})},
  2266. messageSends: ["at:put:"]}),
  2267. smalltalk.TagBrush);
  2268. smalltalk.addMethod(
  2269. smalltalk.method({
  2270. selector: "target:",
  2271. fn: function (aString){
  2272. var self=this;
  2273. return smalltalk.withContext(function($ctx1) {
  2274. self._at_put_("target",aString);
  2275. return self}, function($ctx1) {$ctx1.fill(self,"target:",{aString:aString},smalltalk.TagBrush)})},
  2276. messageSends: ["at:put:"]}),
  2277. smalltalk.TagBrush);
  2278. smalltalk.addMethod(
  2279. smalltalk.method({
  2280. selector: "title:",
  2281. fn: function (aString){
  2282. var self=this;
  2283. return smalltalk.withContext(function($ctx1) {
  2284. self._at_put_("title",aString);
  2285. return self}, function($ctx1) {$ctx1.fill(self,"title:",{aString:aString},smalltalk.TagBrush)})},
  2286. messageSends: ["at:put:"]}),
  2287. smalltalk.TagBrush);
  2288. smalltalk.addMethod(
  2289. smalltalk.method({
  2290. selector: "type:",
  2291. fn: function (aString){
  2292. var self=this;
  2293. return smalltalk.withContext(function($ctx1) {
  2294. self._at_put_("type",aString);
  2295. return self}, function($ctx1) {$ctx1.fill(self,"type:",{aString:aString},smalltalk.TagBrush)})},
  2296. messageSends: ["at:put:"]}),
  2297. smalltalk.TagBrush);
  2298. smalltalk.addMethod(
  2299. smalltalk.method({
  2300. selector: "valign:",
  2301. fn: function (aString){
  2302. var self=this;
  2303. return smalltalk.withContext(function($ctx1) {
  2304. self._at_put_("valign",aString);
  2305. return self}, function($ctx1) {$ctx1.fill(self,"valign:",{aString:aString},smalltalk.TagBrush)})},
  2306. messageSends: ["at:put:"]}),
  2307. smalltalk.TagBrush);
  2308. smalltalk.addMethod(
  2309. smalltalk.method({
  2310. selector: "value:",
  2311. fn: function (aString){
  2312. var self=this;
  2313. return smalltalk.withContext(function($ctx1) {
  2314. self._at_put_("value",aString);
  2315. return self}, function($ctx1) {$ctx1.fill(self,"value:",{aString:aString},smalltalk.TagBrush)})},
  2316. messageSends: ["at:put:"]}),
  2317. smalltalk.TagBrush);
  2318. smalltalk.addMethod(
  2319. smalltalk.method({
  2320. selector: "width:",
  2321. fn: function (aString){
  2322. var self=this;
  2323. return smalltalk.withContext(function($ctx1) {
  2324. self._at_put_("width",aString);
  2325. return self}, function($ctx1) {$ctx1.fill(self,"width:",{aString:aString},smalltalk.TagBrush)})},
  2326. messageSends: ["at:put:"]}),
  2327. smalltalk.TagBrush);
  2328. smalltalk.addMethod(
  2329. smalltalk.method({
  2330. selector: "with:",
  2331. fn: function (anObject){
  2332. var self=this;
  2333. return smalltalk.withContext(function($ctx1) {
  2334. self._append_(anObject);
  2335. return self}, function($ctx1) {$ctx1.fill(self,"with:",{anObject:anObject},smalltalk.TagBrush)})},
  2336. messageSends: ["append:"]}),
  2337. smalltalk.TagBrush);
  2338. smalltalk.addMethod(
  2339. smalltalk.method({
  2340. selector: "fromJQuery:canvas:",
  2341. fn: function (aJQuery,aCanvas){
  2342. var self=this;
  2343. return smalltalk.withContext(function($ctx1) {
  2344. var $2,$3,$1;
  2345. $2=self._new();
  2346. _st($2)._initializeFromJQuery_canvas_(aJQuery,aCanvas);
  2347. $3=_st($2)._yourself();
  2348. $1=$3;
  2349. return $1;
  2350. }, function($ctx1) {$ctx1.fill(self,"fromJQuery:canvas:",{aJQuery:aJQuery,aCanvas:aCanvas},smalltalk.TagBrush.klass)})},
  2351. messageSends: ["initializeFromJQuery:canvas:", "new", "yourself"]}),
  2352. smalltalk.TagBrush.klass);
  2353. smalltalk.addMethod(
  2354. smalltalk.method({
  2355. selector: "fromString:canvas:",
  2356. fn: function (aString,aCanvas){
  2357. var self=this;
  2358. return smalltalk.withContext(function($ctx1) {
  2359. var $2,$3,$1;
  2360. $2=self._new();
  2361. _st($2)._initializeFromString_canvas_(aString,aCanvas);
  2362. $3=_st($2)._yourself();
  2363. $1=$3;
  2364. return $1;
  2365. }, function($ctx1) {$ctx1.fill(self,"fromString:canvas:",{aString:aString,aCanvas:aCanvas},smalltalk.TagBrush.klass)})},
  2366. messageSends: ["initializeFromString:canvas:", "new", "yourself"]}),
  2367. smalltalk.TagBrush.klass);
  2368. smalltalk.addClass('StyleTag', smalltalk.TagBrush, ['canvas', 'element'], 'Canvas');
  2369. smalltalk.addMethod(
  2370. smalltalk.method({
  2371. selector: "with:",
  2372. fn: function (aString){
  2373. var self=this;
  2374. function $HTMLCanvas(){return smalltalk.HTMLCanvas||(typeof HTMLCanvas=="undefined"?nil:HTMLCanvas)}
  2375. return smalltalk.withContext(function($ctx1) {
  2376. var $1;
  2377. $1=_st($HTMLCanvas())._isMSIE();
  2378. if(smalltalk.assert($1)){
  2379. _st(_st(self._element())._styleSheet())._cssText_(aString);
  2380. } else {
  2381. smalltalk.StyleTag.superclass.fn.prototype._with_.apply(_st(self), [aString]);
  2382. };
  2383. return self}, function($ctx1) {$ctx1.fill(self,"with:",{aString:aString},smalltalk.StyleTag)})},
  2384. messageSends: ["ifTrue:ifFalse:", "cssText:", "styleSheet", "element", "with:", "isMSIE"]}),
  2385. smalltalk.StyleTag);
  2386. smalltalk.addMethod(
  2387. smalltalk.method({
  2388. selector: "canvas:",
  2389. fn: function (aCanvas){
  2390. var self=this;
  2391. return smalltalk.withContext(function($ctx1) {
  2392. var $2,$3,$1;
  2393. $2=self._new();
  2394. _st($2)._initializeFromString_canvas_("style",aCanvas);
  2395. $3=_st($2)._yourself();
  2396. $1=$3;
  2397. return $1;
  2398. }, function($ctx1) {$ctx1.fill(self,"canvas:",{aCanvas:aCanvas},smalltalk.StyleTag.klass)})},
  2399. messageSends: ["initializeFromString:canvas:", "new", "yourself"]}),
  2400. smalltalk.StyleTag.klass);
  2401. smalltalk.addClass('Widget', smalltalk.Object, [], 'Canvas');
  2402. smalltalk.addMethod(
  2403. smalltalk.method({
  2404. selector: "appendToBrush:",
  2405. fn: function (aTagBrush){
  2406. var self=this;
  2407. return smalltalk.withContext(function($ctx1) {
  2408. self._appendToJQuery_(_st(aTagBrush)._asJQuery());
  2409. return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},smalltalk.Widget)})},
  2410. messageSends: ["appendToJQuery:", "asJQuery"]}),
  2411. smalltalk.Widget);
  2412. smalltalk.addMethod(
  2413. smalltalk.method({
  2414. selector: "appendToJQuery:",
  2415. fn: function (aJQuery){
  2416. var self=this;
  2417. function $HTMLCanvas(){return smalltalk.HTMLCanvas||(typeof HTMLCanvas=="undefined"?nil:HTMLCanvas)}
  2418. return smalltalk.withContext(function($ctx1) {
  2419. self._renderOn_(_st($HTMLCanvas())._onJQuery_(aJQuery));
  2420. return self}, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery},smalltalk.Widget)})},
  2421. messageSends: ["renderOn:", "onJQuery:"]}),
  2422. smalltalk.Widget);
  2423. smalltalk.addMethod(
  2424. smalltalk.method({
  2425. selector: "renderOn:",
  2426. fn: function (html){
  2427. var self=this;
  2428. return smalltalk.withContext(function($ctx1) {
  2429. return self}, function($ctx1) {$ctx1.fill(self,"renderOn:",{html:html},smalltalk.Widget)})},
  2430. messageSends: []}),
  2431. smalltalk.Widget);
  2432. smalltalk.addMethod(
  2433. smalltalk.method({
  2434. selector: "heliosClass",
  2435. fn: function (){
  2436. var self=this;
  2437. return smalltalk.withContext(function($ctx1) {
  2438. return "widget";
  2439. }, function($ctx1) {$ctx1.fill(self,"heliosClass",{},smalltalk.Widget.klass)})},
  2440. messageSends: []}),
  2441. smalltalk.Widget.klass);
  2442. smalltalk.addMethod(
  2443. smalltalk.method({
  2444. selector: "appendToBrush:",
  2445. fn: function (aTagBrush){
  2446. var self=this;
  2447. return smalltalk.withContext(function($ctx1) {
  2448. _st(aTagBrush)._append_(self._asString());
  2449. return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},smalltalk.Object)})},
  2450. messageSends: ["append:", "asString"]}),
  2451. smalltalk.Object);
  2452. smalltalk.addMethod(
  2453. smalltalk.method({
  2454. selector: "appendToJQuery:",
  2455. fn: function (aJQuery){
  2456. var self=this;
  2457. return smalltalk.withContext(function($ctx1) {
  2458. _st(aJQuery)._append_(self._asString());
  2459. return self}, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery},smalltalk.Object)})},
  2460. messageSends: ["append:", "asString"]}),
  2461. smalltalk.Object);
  2462. smalltalk.addMethod(
  2463. smalltalk.method({
  2464. selector: "appendToBrush:",
  2465. fn: function (aTagBrush){
  2466. var self=this;
  2467. return smalltalk.withContext(function($ctx1) {
  2468. _st(aTagBrush)._appendBlock_(self);
  2469. return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},smalltalk.BlockClosure)})},
  2470. messageSends: ["appendBlock:"]}),
  2471. smalltalk.BlockClosure);
  2472. smalltalk.addMethod(
  2473. smalltalk.method({
  2474. selector: "appendToJQuery:",
  2475. fn: function (aJQuery){
  2476. var self=this;
  2477. function $HTMLCanvas(){return smalltalk.HTMLCanvas||(typeof HTMLCanvas=="undefined"?nil:HTMLCanvas)}
  2478. return smalltalk.withContext(function($ctx1) {
  2479. self._value_(_st($HTMLCanvas())._onJQuery_(aJQuery));
  2480. return self}, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery},smalltalk.BlockClosure)})},
  2481. messageSends: ["value:", "onJQuery:"]}),
  2482. smalltalk.BlockClosure);
  2483. smalltalk.addMethod(
  2484. smalltalk.method({
  2485. selector: "asSnippet",
  2486. fn: function (){
  2487. var self=this;
  2488. function $HTMLSnippet(){return smalltalk.HTMLSnippet||(typeof HTMLSnippet=="undefined"?nil:HTMLSnippet)}
  2489. return smalltalk.withContext(function($ctx1) {
  2490. var $1;
  2491. $1=_st(_st($HTMLSnippet())._current())._snippetAt_(self._asString());
  2492. return $1;
  2493. }, function($ctx1) {$ctx1.fill(self,"asSnippet",{},smalltalk.CharacterArray)})},
  2494. messageSends: ["snippetAt:", "asString", "current"]}),
  2495. smalltalk.CharacterArray);
  2496. smalltalk.addMethod(
  2497. smalltalk.method({
  2498. selector: "appendToBrush:",
  2499. fn: function (aTagBrush){
  2500. var self=this;
  2501. return smalltalk.withContext(function($ctx1) {
  2502. _st(aTagBrush)._appendString_(self);
  2503. return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},smalltalk.String)})},
  2504. messageSends: ["appendString:"]}),
  2505. smalltalk.String);
  2506. smalltalk.addMethod(
  2507. smalltalk.method({
  2508. selector: "appendToJQuery:",
  2509. fn: function (aJQuery){
  2510. var self=this;
  2511. return smalltalk.withContext(function($ctx1) {
  2512. _st(aJQuery)._append_(self);
  2513. return self}, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery},smalltalk.String)})},
  2514. messageSends: ["append:"]}),
  2515. smalltalk.String);
  2516. smalltalk.addMethod(
  2517. smalltalk.method({
  2518. selector: "asJQuery",
  2519. fn: function (){
  2520. var self=this;
  2521. return smalltalk.withContext(function($ctx1) {
  2522. return jQuery(String(self));
  2523. return self}, function($ctx1) {$ctx1.fill(self,"asJQuery",{},smalltalk.String)})},
  2524. messageSends: []}),
  2525. smalltalk.String);
  2526. smalltalk.addMethod(
  2527. smalltalk.method({
  2528. selector: "asJQuery",
  2529. fn: function (){
  2530. var self=this;
  2531. return smalltalk.withContext(function($ctx1) {
  2532. return jQuery(self['@jsObject']);
  2533. return self}, function($ctx1) {$ctx1.fill(self,"asJQuery",{},smalltalk.JSObjectProxy)})},
  2534. messageSends: []}),
  2535. smalltalk.JSObjectProxy);
  2536. });