Canvas.deploy.js 79 KB

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