2
0

Canvas.deploy.js 76 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749
  1. smalltalk.addPackage('Canvas');
  2. smalltalk.addClass('HTMLCanvas', smalltalk.Object, ['root'], 'Canvas');
  3. smalltalk.addMethod(
  4. smalltalk.method({
  5. selector: "a",
  6. fn: function (){
  7. var self=this;
  8. return smalltalk.withContext(function($ctx1) {
  9. 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. smalltalk.method({
  17. selector: "abbr",
  18. fn: function (){
  19. var self=this;
  20. return smalltalk.withContext(function($ctx1) {
  21. 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. smalltalk.method({
  29. selector: "address",
  30. fn: function (){
  31. var self=this;
  32. return smalltalk.withContext(function($ctx1) {
  33. 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. smalltalk.method({
  41. selector: "area",
  42. fn: function (){
  43. var self=this;
  44. return smalltalk.withContext(function($ctx1) {
  45. 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. smalltalk.method({
  53. selector: "article",
  54. fn: function (){
  55. var self=this;
  56. return smalltalk.withContext(function($ctx1) {
  57. 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. smalltalk.method({
  65. selector: "aside",
  66. fn: function (){
  67. var self=this;
  68. return smalltalk.withContext(function($ctx1) {
  69. 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. smalltalk.method({
  77. selector: "audio",
  78. fn: function (){
  79. var self=this;
  80. return smalltalk.withContext(function($ctx1) {
  81. 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. smalltalk.method({
  89. selector: "base",
  90. fn: function (){
  91. var self=this;
  92. return smalltalk.withContext(function($ctx1) {
  93. 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. smalltalk.method({
  101. selector: "blockquote",
  102. fn: function (){
  103. var self=this;
  104. return smalltalk.withContext(function($ctx1) {
  105. 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. smalltalk.method({
  113. selector: "body",
  114. fn: function (){
  115. var self=this;
  116. return smalltalk.withContext(function($ctx1) {
  117. 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. smalltalk.method({
  125. selector: "br",
  126. fn: function (){
  127. var self=this;
  128. return smalltalk.withContext(function($ctx1) {
  129. 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. smalltalk.method({
  137. selector: "button",
  138. fn: function (){
  139. var self=this;
  140. return smalltalk.withContext(function($ctx1) {
  141. 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. smalltalk.method({
  149. selector: "canvas",
  150. fn: function (){
  151. var self=this;
  152. return smalltalk.withContext(function($ctx1) {
  153. 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. smalltalk.method({
  161. selector: "caption",
  162. fn: function (){
  163. var self=this;
  164. return smalltalk.withContext(function($ctx1) {
  165. 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. smalltalk.method({
  173. selector: "cite",
  174. fn: function (){
  175. var self=this;
  176. return smalltalk.withContext(function($ctx1) {
  177. 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. smalltalk.method({
  185. selector: "code",
  186. fn: function (){
  187. var self=this;
  188. return smalltalk.withContext(function($ctx1) {
  189. 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. smalltalk.method({
  197. selector: "col",
  198. fn: function (){
  199. var self=this;
  200. return smalltalk.withContext(function($ctx1) {
  201. 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. smalltalk.method({
  209. selector: "colgroup",
  210. fn: function (){
  211. var self=this;
  212. return smalltalk.withContext(function($ctx1) {
  213. 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. smalltalk.method({
  221. selector: "command",
  222. fn: function (){
  223. var self=this;
  224. return smalltalk.withContext(function($ctx1) {
  225. 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. smalltalk.method({
  233. selector: "datalist",
  234. fn: function (){
  235. var self=this;
  236. return smalltalk.withContext(function($ctx1) {
  237. 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. smalltalk.method({
  245. selector: "dd",
  246. fn: function (){
  247. var self=this;
  248. return smalltalk.withContext(function($ctx1) {
  249. 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. smalltalk.method({
  257. selector: "del",
  258. fn: function (){
  259. var self=this;
  260. return smalltalk.withContext(function($ctx1) {
  261. 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. smalltalk.method({
  269. selector: "details",
  270. fn: function (){
  271. var self=this;
  272. return smalltalk.withContext(function($ctx1) {
  273. 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. smalltalk.method({
  281. selector: "div",
  282. fn: function (){
  283. var self=this;
  284. return smalltalk.withContext(function($ctx1) {
  285. 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. smalltalk.method({
  293. selector: "div:",
  294. fn: function (aBlock){
  295. var self=this;
  296. return smalltalk.withContext(function($ctx1) {
  297. 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. smalltalk.method({
  305. selector: "dl",
  306. fn: function (){
  307. var self=this;
  308. return smalltalk.withContext(function($ctx1) {
  309. 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. smalltalk.method({
  317. selector: "dt",
  318. fn: function (){
  319. var self=this;
  320. return smalltalk.withContext(function($ctx1) {
  321. 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. smalltalk.method({
  329. selector: "em",
  330. fn: function (){
  331. var self=this;
  332. return smalltalk.withContext(function($ctx1) {
  333. 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. smalltalk.method({
  341. selector: "embed",
  342. fn: function (){
  343. var self=this;
  344. return smalltalk.withContext(function($ctx1) {
  345. 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. smalltalk.method({
  353. selector: "entity:",
  354. fn: function (aString){
  355. var self=this;
  356. var result;
  357. return smalltalk.withContext(function($ctx1) {
  358. 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. smalltalk.method({
  370. selector: "fieldset",
  371. fn: function (){
  372. var self=this;
  373. return smalltalk.withContext(function($ctx1) {
  374. 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. smalltalk.method({
  382. selector: "figcaption",
  383. fn: function (){
  384. var self=this;
  385. return smalltalk.withContext(function($ctx1) {
  386. 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. smalltalk.method({
  394. selector: "figure",
  395. fn: function (){
  396. var self=this;
  397. return smalltalk.withContext(function($ctx1) {
  398. 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. smalltalk.method({
  406. selector: "footer",
  407. fn: function (){
  408. var self=this;
  409. return smalltalk.withContext(function($ctx1) {
  410. 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. smalltalk.method({
  418. selector: "form",
  419. fn: function (){
  420. var self=this;
  421. return smalltalk.withContext(function($ctx1) {
  422. 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. smalltalk.method({
  430. selector: "h1",
  431. fn: function (){
  432. var self=this;
  433. return smalltalk.withContext(function($ctx1) {
  434. 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. smalltalk.method({
  442. selector: "h1:",
  443. fn: function (anObject){
  444. var self=this;
  445. return smalltalk.withContext(function($ctx1) {
  446. 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. smalltalk.method({
  454. selector: "h2",
  455. fn: function (){
  456. var self=this;
  457. return smalltalk.withContext(function($ctx1) {
  458. 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. smalltalk.method({
  466. selector: "h2:",
  467. fn: function (anObject){
  468. var self=this;
  469. return smalltalk.withContext(function($ctx1) {
  470. 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. smalltalk.method({
  478. selector: "h3",
  479. fn: function (){
  480. var self=this;
  481. return smalltalk.withContext(function($ctx1) {
  482. 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. smalltalk.method({
  490. selector: "h3:",
  491. fn: function (anObject){
  492. var self=this;
  493. return smalltalk.withContext(function($ctx1) {
  494. 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. smalltalk.method({
  502. selector: "h4",
  503. fn: function (){
  504. var self=this;
  505. return smalltalk.withContext(function($ctx1) {
  506. 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. smalltalk.method({
  514. selector: "h4:",
  515. fn: function (anObject){
  516. var self=this;
  517. return smalltalk.withContext(function($ctx1) {
  518. 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. smalltalk.method({
  526. selector: "h5",
  527. fn: function (){
  528. var self=this;
  529. return smalltalk.withContext(function($ctx1) {
  530. 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. smalltalk.method({
  538. selector: "h5:",
  539. fn: function (anObject){
  540. var self=this;
  541. return smalltalk.withContext(function($ctx1) {
  542. 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. smalltalk.method({
  550. selector: "h6",
  551. fn: function (){
  552. var self=this;
  553. return smalltalk.withContext(function($ctx1) {
  554. 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. smalltalk.method({
  562. selector: "h6:",
  563. fn: function (anObject){
  564. var self=this;
  565. return smalltalk.withContext(function($ctx1) {
  566. 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. smalltalk.method({
  574. selector: "head",
  575. fn: function (){
  576. var self=this;
  577. return smalltalk.withContext(function($ctx1) {
  578. 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. smalltalk.method({
  586. selector: "header",
  587. fn: function (){
  588. var self=this;
  589. return smalltalk.withContext(function($ctx1) {
  590. 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. smalltalk.method({
  598. selector: "hgroup",
  599. fn: function (){
  600. var self=this;
  601. return smalltalk.withContext(function($ctx1) {
  602. 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. smalltalk.method({
  610. selector: "hr",
  611. fn: function (){
  612. var self=this;
  613. return smalltalk.withContext(function($ctx1) {
  614. 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. smalltalk.method({
  622. selector: "html",
  623. fn: function (){
  624. var self=this;
  625. return smalltalk.withContext(function($ctx1) {
  626. 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. smalltalk.method({
  634. selector: "iframe",
  635. fn: function (){
  636. var self=this;
  637. return smalltalk.withContext(function($ctx1) {
  638. 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. smalltalk.method({
  646. selector: "iframe:",
  647. fn: function (aString){
  648. var self=this;
  649. return smalltalk.withContext(function($ctx1) {
  650. 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. smalltalk.method({
  658. selector: "img",
  659. fn: function (){
  660. var self=this;
  661. return smalltalk.withContext(function($ctx1) {
  662. 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. smalltalk.method({
  670. selector: "img:",
  671. fn: function (aString){
  672. var self=this;
  673. return smalltalk.withContext(function($ctx1) {
  674. 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. smalltalk.method({
  682. selector: "initialize",
  683. fn: function (){
  684. var self=this;
  685. function $TagBrush(){return smalltalk.TagBrush||(typeof TagBrush=="undefined"?nil:TagBrush)}
  686. return smalltalk.withContext(function($ctx1) {
  687. 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. smalltalk.method({
  701. selector: "initializeFromJQuery:",
  702. fn: function (aJQuery){
  703. var self=this;
  704. function $TagBrush(){return smalltalk.TagBrush||(typeof TagBrush=="undefined"?nil:TagBrush)}
  705. return smalltalk.withContext(function($ctx1) {
  706. 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. smalltalk.method({
  712. selector: "input",
  713. fn: function (){
  714. var self=this;
  715. return smalltalk.withContext(function($ctx1) {
  716. 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. smalltalk.method({
  724. selector: "label",
  725. fn: function (){
  726. var self=this;
  727. return smalltalk.withContext(function($ctx1) {
  728. 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. smalltalk.method({
  736. selector: "legend",
  737. fn: function (){
  738. var self=this;
  739. return smalltalk.withContext(function($ctx1) {
  740. 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. smalltalk.method({
  748. selector: "li",
  749. fn: function (){
  750. var self=this;
  751. return smalltalk.withContext(function($ctx1) {
  752. 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. smalltalk.method({
  760. selector: "li:",
  761. fn: function (anObject){
  762. var self=this;
  763. return smalltalk.withContext(function($ctx1) {
  764. 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. smalltalk.method({
  772. selector: "link",
  773. fn: function (){
  774. var self=this;
  775. return smalltalk.withContext(function($ctx1) {
  776. 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. smalltalk.method({
  784. selector: "map",
  785. fn: function (){
  786. var self=this;
  787. return smalltalk.withContext(function($ctx1) {
  788. 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. smalltalk.method({
  796. selector: "mark",
  797. fn: function (){
  798. var self=this;
  799. return smalltalk.withContext(function($ctx1) {
  800. 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. smalltalk.method({
  808. selector: "menu",
  809. fn: function (){
  810. var self=this;
  811. return smalltalk.withContext(function($ctx1) {
  812. 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. smalltalk.method({
  820. selector: "meta",
  821. fn: function (){
  822. var self=this;
  823. return smalltalk.withContext(function($ctx1) {
  824. 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. smalltalk.method({
  832. selector: "nav",
  833. fn: function (){
  834. var self=this;
  835. return smalltalk.withContext(function($ctx1) {
  836. 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. smalltalk.method({
  844. selector: "newTag:",
  845. fn: function (aString){
  846. var self=this;
  847. function $TagBrush(){return smalltalk.TagBrush||(typeof TagBrush=="undefined"?nil:TagBrush)}
  848. return smalltalk.withContext(function($ctx1) {
  849. 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. smalltalk.method({
  857. selector: "noscript",
  858. fn: function (){
  859. var self=this;
  860. return smalltalk.withContext(function($ctx1) {
  861. 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. smalltalk.method({
  869. selector: "object",
  870. fn: function (){
  871. var self=this;
  872. return smalltalk.withContext(function($ctx1) {
  873. 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. smalltalk.method({
  881. selector: "ol",
  882. fn: function (){
  883. var self=this;
  884. return smalltalk.withContext(function($ctx1) {
  885. 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. smalltalk.method({
  893. selector: "ol:",
  894. fn: function (anObject){
  895. var self=this;
  896. return smalltalk.withContext(function($ctx1) {
  897. 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. smalltalk.method({
  905. selector: "optgroup",
  906. fn: function (){
  907. var self=this;
  908. return smalltalk.withContext(function($ctx1) {
  909. 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. smalltalk.method({
  917. selector: "option",
  918. fn: function (){
  919. var self=this;
  920. return smalltalk.withContext(function($ctx1) {
  921. 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. smalltalk.method({
  929. selector: "output",
  930. fn: function (){
  931. var self=this;
  932. return smalltalk.withContext(function($ctx1) {
  933. 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. smalltalk.method({
  941. selector: "p",
  942. fn: function (){
  943. var self=this;
  944. return smalltalk.withContext(function($ctx1) {
  945. 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. smalltalk.method({
  953. selector: "p:",
  954. fn: function (anObject){
  955. var self=this;
  956. return smalltalk.withContext(function($ctx1) {
  957. 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. smalltalk.method({
  965. selector: "param",
  966. fn: function (){
  967. var self=this;
  968. return smalltalk.withContext(function($ctx1) {
  969. 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. smalltalk.method({
  977. selector: "pre",
  978. fn: function (){
  979. var self=this;
  980. return smalltalk.withContext(function($ctx1) {
  981. 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. smalltalk.method({
  989. selector: "progress",
  990. fn: function (){
  991. var self=this;
  992. return smalltalk.withContext(function($ctx1) {
  993. 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. smalltalk.method({
  1001. selector: "root",
  1002. fn: function (){
  1003. var self=this;
  1004. return smalltalk.withContext(function($ctx1) {
  1005. 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. smalltalk.method({
  1013. selector: "root:",
  1014. fn: function (aTagBrush){
  1015. var self=this;
  1016. return smalltalk.withContext(function($ctx1) {
  1017. 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. smalltalk.method({
  1023. selector: "script",
  1024. fn: function (){
  1025. var self=this;
  1026. return smalltalk.withContext(function($ctx1) {
  1027. 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. smalltalk.method({
  1035. selector: "section",
  1036. fn: function (){
  1037. var self=this;
  1038. return smalltalk.withContext(function($ctx1) {
  1039. 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. smalltalk.method({
  1047. selector: "select",
  1048. fn: function (){
  1049. var self=this;
  1050. return smalltalk.withContext(function($ctx1) {
  1051. 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. smalltalk.method({
  1059. selector: "small",
  1060. fn: function (){
  1061. var self=this;
  1062. return smalltalk.withContext(function($ctx1) {
  1063. 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. smalltalk.method({
  1071. selector: "snippet:",
  1072. fn: function (anElement){
  1073. var self=this;
  1074. var clone,caret;
  1075. function $TagBrush(){return smalltalk.TagBrush||(typeof TagBrush=="undefined"?nil:TagBrush)}
  1076. return smalltalk.withContext(function($ctx1) {
  1077. 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. smalltalk.method({
  1093. selector: "source",
  1094. fn: function (){
  1095. var self=this;
  1096. return smalltalk.withContext(function($ctx1) {
  1097. 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. smalltalk.method({
  1105. selector: "span",
  1106. fn: function (){
  1107. var self=this;
  1108. return smalltalk.withContext(function($ctx1) {
  1109. 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. smalltalk.method({
  1117. selector: "span:",
  1118. fn: function (anObject){
  1119. var self=this;
  1120. return smalltalk.withContext(function($ctx1) {
  1121. 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. smalltalk.method({
  1129. selector: "strong",
  1130. fn: function (){
  1131. var self=this;
  1132. return smalltalk.withContext(function($ctx1) {
  1133. 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. smalltalk.method({
  1141. selector: "strong:",
  1142. fn: function (anObject){
  1143. var self=this;
  1144. return smalltalk.withContext(function($ctx1) {
  1145. 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. smalltalk.method({
  1153. selector: "style",
  1154. fn: function (){
  1155. var self=this;
  1156. function $StyleTag(){return smalltalk.StyleTag||(typeof StyleTag=="undefined"?nil:StyleTag)}
  1157. return smalltalk.withContext(function($ctx1) {
  1158. 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. smalltalk.method({
  1166. selector: "style:",
  1167. fn: function (aString){
  1168. var self=this;
  1169. return smalltalk.withContext(function($ctx1) {
  1170. 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. smalltalk.method({
  1181. selector: "sub",
  1182. fn: function (){
  1183. var self=this;
  1184. return smalltalk.withContext(function($ctx1) {
  1185. 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. smalltalk.method({
  1193. selector: "summary",
  1194. fn: function (){
  1195. var self=this;
  1196. return smalltalk.withContext(function($ctx1) {
  1197. 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. smalltalk.method({
  1205. selector: "sup",
  1206. fn: function (){
  1207. var self=this;
  1208. return smalltalk.withContext(function($ctx1) {
  1209. 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. smalltalk.method({
  1217. selector: "table",
  1218. fn: function (){
  1219. var self=this;
  1220. return smalltalk.withContext(function($ctx1) {
  1221. 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. smalltalk.method({
  1229. selector: "tag:",
  1230. fn: function (aString){
  1231. var self=this;
  1232. return smalltalk.withContext(function($ctx1) {
  1233. 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. smalltalk.method({
  1241. selector: "tbody",
  1242. fn: function (){
  1243. var self=this;
  1244. return smalltalk.withContext(function($ctx1) {
  1245. 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. smalltalk.method({
  1253. selector: "td",
  1254. fn: function (){
  1255. var self=this;
  1256. return smalltalk.withContext(function($ctx1) {
  1257. 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. smalltalk.method({
  1265. selector: "textarea",
  1266. fn: function (){
  1267. var self=this;
  1268. return smalltalk.withContext(function($ctx1) {
  1269. 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. smalltalk.method({
  1277. selector: "tfoot",
  1278. fn: function (){
  1279. var self=this;
  1280. return smalltalk.withContext(function($ctx1) {
  1281. 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. smalltalk.method({
  1289. selector: "th",
  1290. fn: function (){
  1291. var self=this;
  1292. return smalltalk.withContext(function($ctx1) {
  1293. 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. smalltalk.method({
  1301. selector: "thead",
  1302. fn: function (){
  1303. var self=this;
  1304. return smalltalk.withContext(function($ctx1) {
  1305. 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. smalltalk.method({
  1313. selector: "time",
  1314. fn: function (){
  1315. var self=this;
  1316. return smalltalk.withContext(function($ctx1) {
  1317. 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. smalltalk.method({
  1325. selector: "title",
  1326. fn: function (){
  1327. var self=this;
  1328. return smalltalk.withContext(function($ctx1) {
  1329. 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. smalltalk.method({
  1337. selector: "tr",
  1338. fn: function (){
  1339. var self=this;
  1340. return smalltalk.withContext(function($ctx1) {
  1341. 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. smalltalk.method({
  1349. selector: "ul",
  1350. fn: function (){
  1351. var self=this;
  1352. return smalltalk.withContext(function($ctx1) {
  1353. 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. smalltalk.method({
  1361. selector: "ul:",
  1362. fn: function (anObject){
  1363. var self=this;
  1364. return smalltalk.withContext(function($ctx1) {
  1365. 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. smalltalk.method({
  1373. selector: "video",
  1374. fn: function (){
  1375. var self=this;
  1376. return smalltalk.withContext(function($ctx1) {
  1377. 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. smalltalk.method({
  1385. selector: "with:",
  1386. fn: function (anObject){
  1387. var self=this;
  1388. return smalltalk.withContext(function($ctx1) {
  1389. 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. smalltalk.method({
  1397. selector: "browserVersion",
  1398. fn: function (){
  1399. var self=this;
  1400. return smalltalk.withContext(function($ctx1) {
  1401. 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. smalltalk.method({
  1409. selector: "isMSIE",
  1410. fn: function (){
  1411. var self=this;
  1412. return smalltalk.withContext(function($ctx1) {
  1413. 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. smalltalk.method({
  1421. selector: "isMozilla",
  1422. fn: function (){
  1423. var self=this;
  1424. return smalltalk.withContext(function($ctx1) {
  1425. 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. smalltalk.method({
  1433. selector: "isOpera",
  1434. fn: function (){
  1435. var self=this;
  1436. return smalltalk.withContext(function($ctx1) {
  1437. 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. smalltalk.method({
  1445. selector: "isWebkit",
  1446. fn: function (){
  1447. var self=this;
  1448. return smalltalk.withContext(function($ctx1) {
  1449. 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. smalltalk.method({
  1457. selector: "onJQuery:",
  1458. fn: function (aJQuery){
  1459. var self=this;
  1460. return smalltalk.withContext(function($ctx1) {
  1461. 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. smalltalk.method({
  1474. selector: "initializeFromJQuery:",
  1475. fn: function (aJQuery){
  1476. var self=this;
  1477. return smalltalk.withContext(function($ctx1) {
  1478. _st(_st(self)._snippetsFromJQuery_(aJQuery))._do_((function(each){
  1479. return smalltalk.withContext(function($ctx2) {
  1480. return _st(self)._installSnippetFromJQuery_(_st(each)._asJQuery());
  1481. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  1482. return self}, function($ctx1) {$ctx1.fill(self,"initializeFromJQuery:",{aJQuery:aJQuery},smalltalk.HTMLSnippet)})},
  1483. messageSends: ["do:", "installSnippetFromJQuery:", "asJQuery", "snippetsFromJQuery:"]}),
  1484. smalltalk.HTMLSnippet);
  1485. smalltalk.addMethod(
  1486. smalltalk.method({
  1487. selector: "installSnippetFromJQuery:",
  1488. fn: function (element){
  1489. var self=this;
  1490. var name;
  1491. return smalltalk.withContext(function($ctx1) {
  1492. var $1,$2;
  1493. name=_st(element)._attr_("data-snippet");
  1494. $1=_st(name).__eq("*");
  1495. if(! smalltalk.assert($1)){
  1496. $2=_st(_st("^\x5c*")._asRegexp())._test_(name);
  1497. if(smalltalk.assert($2)){
  1498. name=_st(name)._allButFirst();
  1499. name;
  1500. _st(element)._attr_put_("data-snippet","*");
  1501. } else {
  1502. _st(element)._removeAttr_("data-snippet");
  1503. };
  1504. _st(self)._snippetAt_install_(name,_st(_st(element)._detach())._get_((0)));
  1505. };
  1506. return self}, function($ctx1) {$ctx1.fill(self,"installSnippetFromJQuery:",{element:element,name:name},smalltalk.HTMLSnippet)})},
  1507. messageSends: ["attr:", "ifFalse:", "ifTrue:ifFalse:", "allButFirst", "attr:put:", "removeAttr:", "test:", "asRegexp", "snippetAt:install:", "get:", "detach", "="]}),
  1508. smalltalk.HTMLSnippet);
  1509. smalltalk.addMethod(
  1510. smalltalk.method({
  1511. selector: "snippetAt:",
  1512. fn: function (aString){
  1513. var self=this;
  1514. return smalltalk.withContext(function($ctx1) {
  1515. var $1;
  1516. $1=_st(_st(self)._snippets())._at_(aString);
  1517. return $1;
  1518. }, function($ctx1) {$ctx1.fill(self,"snippetAt:",{aString:aString},smalltalk.HTMLSnippet)})},
  1519. messageSends: ["at:", "snippets"]}),
  1520. smalltalk.HTMLSnippet);
  1521. smalltalk.addMethod(
  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) {
  1529. _st(_st($ClassBuilder())._new())._installMethod_forClass_category_(_st(_st((function(htmlReceiver){
  1530. return smalltalk.withContext(function($ctx2) {
  1531. return _st(htmlReceiver)._snippet_(anElement);
  1532. }, function($ctx2) {$ctx2.fillBlock({htmlReceiver:htmlReceiver},$ctx1)})}))._currySelf())._asCompiledMethod_(aString),$HTMLCanvas(),"**snippets");
  1533. return self}, function($ctx1) {$ctx1.fill(self,"snippetAt:compile:",{aString:aString,anElement:anElement},smalltalk.HTMLSnippet)})},
  1534. messageSends: ["installMethod:forClass:category:", "asCompiledMethod:", "currySelf", "snippet:", "new"]}),
  1535. smalltalk.HTMLSnippet);
  1536. smalltalk.addMethod(
  1537. smalltalk.method({
  1538. selector: "snippetAt:install:",
  1539. fn: function (aString,anElement){
  1540. var self=this;
  1541. return smalltalk.withContext(function($ctx1) {
  1542. _st(_st(self)._snippets())._at_put_(aString,anElement);
  1543. _st(self)._snippetAt_compile_(aString,anElement);
  1544. return self}, function($ctx1) {$ctx1.fill(self,"snippetAt:install:",{aString:aString,anElement:anElement},smalltalk.HTMLSnippet)})},
  1545. messageSends: ["at:put:", "snippets", "snippetAt:compile:"]}),
  1546. smalltalk.HTMLSnippet);
  1547. smalltalk.addMethod(
  1548. smalltalk.method({
  1549. selector: "snippets",
  1550. fn: function (){
  1551. var self=this;
  1552. return smalltalk.withContext(function($ctx1) {
  1553. var $2,$1;
  1554. $2=self["@snippets"];
  1555. if(($receiver = $2) == nil || $receiver == undefined){
  1556. self["@snippets"]=smalltalk.HashedCollection._fromPairs_([]);
  1557. $1=self["@snippets"];
  1558. } else {
  1559. $1=$2;
  1560. };
  1561. return $1;
  1562. }, function($ctx1) {$ctx1.fill(self,"snippets",{},smalltalk.HTMLSnippet)})},
  1563. messageSends: ["ifNil:"]}),
  1564. smalltalk.HTMLSnippet);
  1565. smalltalk.addMethod(
  1566. smalltalk.method({
  1567. selector: "snippetsFromJQuery:",
  1568. fn: function (aJQuery){
  1569. var self=this;
  1570. return smalltalk.withContext(function($ctx1) {
  1571. var $1;
  1572. $1=_st(_st(aJQuery)._find_("[data-snippet]"))._toArray();
  1573. return $1;
  1574. }, function($ctx1) {$ctx1.fill(self,"snippetsFromJQuery:",{aJQuery:aJQuery},smalltalk.HTMLSnippet)})},
  1575. messageSends: ["toArray", "find:"]}),
  1576. smalltalk.HTMLSnippet);
  1577. smalltalk.HTMLSnippet.klass.iVarNames = ['current'];
  1578. smalltalk.addMethod(
  1579. smalltalk.method({
  1580. selector: "current",
  1581. fn: function (){
  1582. var self=this;
  1583. return smalltalk.withContext(function($ctx1) {
  1584. var $1;
  1585. $1=self["@current"];
  1586. return $1;
  1587. }, function($ctx1) {$ctx1.fill(self,"current",{},smalltalk.HTMLSnippet.klass)})},
  1588. messageSends: []}),
  1589. smalltalk.HTMLSnippet.klass);
  1590. smalltalk.addMethod(
  1591. smalltalk.method({
  1592. selector: "ensureCurrent",
  1593. fn: function (){
  1594. var self=this;
  1595. return smalltalk.withContext(function($ctx1) {
  1596. var $1,$2,$3;
  1597. $1=self["@current"];
  1598. if(($receiver = $1) == nil || $receiver == undefined){
  1599. $2=smalltalk.Object.klass.fn.prototype._new.apply(_st(self), []);
  1600. _st($2)._initializeFromJQuery_(_st(document)._asJQuery());
  1601. $3=_st($2)._yourself();
  1602. self["@current"]=$3;
  1603. self["@current"];
  1604. } else {
  1605. $1;
  1606. };
  1607. return self}, function($ctx1) {$ctx1.fill(self,"ensureCurrent",{},smalltalk.HTMLSnippet.klass)})},
  1608. messageSends: ["ifNil:", "initializeFromJQuery:", "asJQuery", "new", "yourself"]}),
  1609. smalltalk.HTMLSnippet.klass);
  1610. smalltalk.addMethod(
  1611. smalltalk.method({
  1612. selector: "initialize",
  1613. fn: function (){
  1614. var self=this;
  1615. return smalltalk.withContext(function($ctx1) {
  1616. var $1;
  1617. smalltalk.Object.klass.fn.prototype._initialize.apply(_st(self), []);
  1618. $1=_st(self)._isDOMAvailable();
  1619. if(smalltalk.assert($1)){
  1620. _st(self)._ensureCurrent();
  1621. };
  1622. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.HTMLSnippet.klass)})},
  1623. messageSends: ["initialize", "ifTrue:", "ensureCurrent", "isDOMAvailable"]}),
  1624. smalltalk.HTMLSnippet.klass);
  1625. smalltalk.addMethod(
  1626. smalltalk.method({
  1627. selector: "isDOMAvailable",
  1628. fn: function (){
  1629. var self=this;
  1630. return smalltalk.withContext(function($ctx1) {
  1631. return typeof document !== 'undefined' ;
  1632. return self}, function($ctx1) {$ctx1.fill(self,"isDOMAvailable",{},smalltalk.HTMLSnippet.klass)})},
  1633. messageSends: []}),
  1634. smalltalk.HTMLSnippet.klass);
  1635. smalltalk.addMethod(
  1636. smalltalk.method({
  1637. selector: "new",
  1638. fn: function (){
  1639. var self=this;
  1640. return smalltalk.withContext(function($ctx1) {
  1641. _st(self)._shouldNotImplement();
  1642. return self}, function($ctx1) {$ctx1.fill(self,"new",{},smalltalk.HTMLSnippet.klass)})},
  1643. messageSends: ["shouldNotImplement"]}),
  1644. smalltalk.HTMLSnippet.klass);
  1645. smalltalk.addClass('TagBrush', smalltalk.Object, ['canvas', 'element'], 'Canvas');
  1646. smalltalk.addMethod(
  1647. smalltalk.method({
  1648. selector: "accesskey:",
  1649. fn: function (aString){
  1650. var self=this;
  1651. return smalltalk.withContext(function($ctx1) {
  1652. _st(self)._at_put_("accesskey",aString);
  1653. return self}, function($ctx1) {$ctx1.fill(self,"accesskey:",{aString:aString},smalltalk.TagBrush)})},
  1654. messageSends: ["at:put:"]}),
  1655. smalltalk.TagBrush);
  1656. smalltalk.addMethod(
  1657. smalltalk.method({
  1658. selector: "action:",
  1659. fn: function (aString){
  1660. var self=this;
  1661. return smalltalk.withContext(function($ctx1) {
  1662. _st(self)._at_put_("action",aString);
  1663. return self}, function($ctx1) {$ctx1.fill(self,"action:",{aString:aString},smalltalk.TagBrush)})},
  1664. messageSends: ["at:put:"]}),
  1665. smalltalk.TagBrush);
  1666. smalltalk.addMethod(
  1667. smalltalk.method({
  1668. selector: "addBrush:",
  1669. fn: function (aTagBrush){
  1670. var self=this;
  1671. return smalltalk.withContext(function($ctx1) {
  1672. var $1;
  1673. _st(self)._appendChild_(_st(aTagBrush)._element());
  1674. $1=aTagBrush;
  1675. return $1;
  1676. }, function($ctx1) {$ctx1.fill(self,"addBrush:",{aTagBrush:aTagBrush},smalltalk.TagBrush)})},
  1677. messageSends: ["appendChild:", "element"]}),
  1678. smalltalk.TagBrush);
  1679. smalltalk.addMethod(
  1680. smalltalk.method({
  1681. selector: "align:",
  1682. fn: function (aString){
  1683. var self=this;
  1684. return smalltalk.withContext(function($ctx1) {
  1685. _st(self)._at_put_("align",aString);
  1686. return self}, function($ctx1) {$ctx1.fill(self,"align:",{aString:aString},smalltalk.TagBrush)})},
  1687. messageSends: ["at:put:"]}),
  1688. smalltalk.TagBrush);
  1689. smalltalk.addMethod(
  1690. smalltalk.method({
  1691. selector: "alt:",
  1692. fn: function (aString){
  1693. var self=this;
  1694. return smalltalk.withContext(function($ctx1) {
  1695. _st(self)._at_put_("alt",aString);
  1696. return self}, function($ctx1) {$ctx1.fill(self,"alt:",{aString:aString},smalltalk.TagBrush)})},
  1697. messageSends: ["at:put:"]}),
  1698. smalltalk.TagBrush);
  1699. smalltalk.addMethod(
  1700. smalltalk.method({
  1701. selector: "append:",
  1702. fn: function (anObject){
  1703. var self=this;
  1704. return smalltalk.withContext(function($ctx1) {
  1705. _st(anObject)._appendToBrush_(self);
  1706. return self}, function($ctx1) {$ctx1.fill(self,"append:",{anObject:anObject},smalltalk.TagBrush)})},
  1707. messageSends: ["appendToBrush:"]}),
  1708. smalltalk.TagBrush);
  1709. smalltalk.addMethod(
  1710. smalltalk.method({
  1711. selector: "appendBlock:",
  1712. fn: function (aBlock){
  1713. var self=this;
  1714. var root;
  1715. return smalltalk.withContext(function($ctx1) {
  1716. root=_st(self["@canvas"])._root();
  1717. _st(self["@canvas"])._root_(self);
  1718. _st(aBlock)._value_(self["@canvas"]);
  1719. _st(self["@canvas"])._root_(root);
  1720. return self}, function($ctx1) {$ctx1.fill(self,"appendBlock:",{aBlock:aBlock,root:root},smalltalk.TagBrush)})},
  1721. messageSends: ["root", "root:", "value:"]}),
  1722. smalltalk.TagBrush);
  1723. smalltalk.addMethod(
  1724. smalltalk.method({
  1725. selector: "appendChild:",
  1726. fn: function (anElement){
  1727. var self=this;
  1728. return smalltalk.withContext(function($ctx1) {
  1729. var element=self['@element'];
  1730. if (null == element.canHaveChildren || element.canHaveChildren) {
  1731. element.appendChild(anElement);
  1732. } else {
  1733. element.text = String(element.text) + anElement.innerHTML;
  1734. } ;
  1735. return self}, function($ctx1) {$ctx1.fill(self,"appendChild:",{anElement:anElement},smalltalk.TagBrush)})},
  1736. messageSends: []}),
  1737. smalltalk.TagBrush);
  1738. smalltalk.addMethod(
  1739. smalltalk.method({
  1740. selector: "appendString:",
  1741. fn: function (aString){
  1742. var self=this;
  1743. return smalltalk.withContext(function($ctx1) {
  1744. _st(self)._appendChild_(_st(self)._createTextNodeFor_(aString));
  1745. return self}, function($ctx1) {$ctx1.fill(self,"appendString:",{aString:aString},smalltalk.TagBrush)})},
  1746. messageSends: ["appendChild:", "createTextNodeFor:"]}),
  1747. smalltalk.TagBrush);
  1748. smalltalk.addMethod(
  1749. smalltalk.method({
  1750. selector: "appendToBrush:",
  1751. fn: function (aTagBrush){
  1752. var self=this;
  1753. return smalltalk.withContext(function($ctx1) {
  1754. _st(aTagBrush)._addBrush_(self);
  1755. return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},smalltalk.TagBrush)})},
  1756. messageSends: ["addBrush:"]}),
  1757. smalltalk.TagBrush);
  1758. smalltalk.addMethod(
  1759. smalltalk.method({
  1760. selector: "asJQuery",
  1761. fn: function (){
  1762. var self=this;
  1763. return smalltalk.withContext(function($ctx1) {
  1764. var $1;
  1765. $1=_st(window)._jQuery_(_st(self)._element());
  1766. return $1;
  1767. }, function($ctx1) {$ctx1.fill(self,"asJQuery",{},smalltalk.TagBrush)})},
  1768. messageSends: ["jQuery:", "element"]}),
  1769. smalltalk.TagBrush);
  1770. smalltalk.addMethod(
  1771. smalltalk.method({
  1772. selector: "at:put:",
  1773. fn: function (aString,aValue){
  1774. var self=this;
  1775. return smalltalk.withContext(function($ctx1) {
  1776. self['@element'].setAttribute(aString, aValue);
  1777. return self}, function($ctx1) {$ctx1.fill(self,"at:put:",{aString:aString,aValue:aValue},smalltalk.TagBrush)})},
  1778. messageSends: []}),
  1779. smalltalk.TagBrush);
  1780. smalltalk.addMethod(
  1781. smalltalk.method({
  1782. selector: "class:",
  1783. fn: function (aString){
  1784. var self=this;
  1785. return smalltalk.withContext(function($ctx1) {
  1786. self['@element'].className = aString;
  1787. return self}, function($ctx1) {$ctx1.fill(self,"class:",{aString:aString},smalltalk.TagBrush)})},
  1788. messageSends: []}),
  1789. smalltalk.TagBrush);
  1790. smalltalk.addMethod(
  1791. smalltalk.method({
  1792. selector: "cols:",
  1793. fn: function (aString){
  1794. var self=this;
  1795. return smalltalk.withContext(function($ctx1) {
  1796. _st(self)._at_put_("cols",aString);
  1797. return self}, function($ctx1) {$ctx1.fill(self,"cols:",{aString:aString},smalltalk.TagBrush)})},
  1798. messageSends: ["at:put:"]}),
  1799. smalltalk.TagBrush);
  1800. smalltalk.addMethod(
  1801. smalltalk.method({
  1802. selector: "contenteditable:",
  1803. fn: function (aString){
  1804. var self=this;
  1805. return smalltalk.withContext(function($ctx1) {
  1806. _st(self)._at_put_("contenteditable",aString);
  1807. return self}, function($ctx1) {$ctx1.fill(self,"contenteditable:",{aString:aString},smalltalk.TagBrush)})},
  1808. messageSends: ["at:put:"]}),
  1809. smalltalk.TagBrush);
  1810. smalltalk.addMethod(
  1811. smalltalk.method({
  1812. selector: "contents:",
  1813. fn: function (anObject){
  1814. var self=this;
  1815. return smalltalk.withContext(function($ctx1) {
  1816. var $1,$2;
  1817. $1=self;
  1818. _st($1)._empty();
  1819. $2=_st($1)._append_(anObject);
  1820. return self}, function($ctx1) {$ctx1.fill(self,"contents:",{anObject:anObject},smalltalk.TagBrush)})},
  1821. messageSends: ["empty", "append:"]}),
  1822. smalltalk.TagBrush);
  1823. smalltalk.addMethod(
  1824. smalltalk.method({
  1825. selector: "contextmenu:",
  1826. fn: function (aString){
  1827. var self=this;
  1828. return smalltalk.withContext(function($ctx1) {
  1829. _st(self)._at_put_("contextmenu",aString);
  1830. return self}, function($ctx1) {$ctx1.fill(self,"contextmenu:",{aString:aString},smalltalk.TagBrush)})},
  1831. messageSends: ["at:put:"]}),
  1832. smalltalk.TagBrush);
  1833. smalltalk.addMethod(
  1834. smalltalk.method({
  1835. selector: "createElementFor:",
  1836. fn: function (aString){
  1837. var self=this;
  1838. return smalltalk.withContext(function($ctx1) {
  1839. return document.createElement(String(aString));
  1840. return self}, function($ctx1) {$ctx1.fill(self,"createElementFor:",{aString:aString},smalltalk.TagBrush)})},
  1841. messageSends: []}),
  1842. smalltalk.TagBrush);
  1843. smalltalk.addMethod(
  1844. smalltalk.method({
  1845. selector: "createTextNodeFor:",
  1846. fn: function (aString){
  1847. var self=this;
  1848. return smalltalk.withContext(function($ctx1) {
  1849. return document.createTextNode(String(aString));
  1850. return self}, function($ctx1) {$ctx1.fill(self,"createTextNodeFor:",{aString:aString},smalltalk.TagBrush)})},
  1851. messageSends: []}),
  1852. smalltalk.TagBrush);
  1853. smalltalk.addMethod(
  1854. smalltalk.method({
  1855. selector: "draggable:",
  1856. fn: function (aString){
  1857. var self=this;
  1858. return smalltalk.withContext(function($ctx1) {
  1859. _st(self)._at_put_("draggable",aString);
  1860. return self}, function($ctx1) {$ctx1.fill(self,"draggable:",{aString:aString},smalltalk.TagBrush)})},
  1861. messageSends: ["at:put:"]}),
  1862. smalltalk.TagBrush);
  1863. smalltalk.addMethod(
  1864. smalltalk.method({
  1865. selector: "element",
  1866. fn: function (){
  1867. var self=this;
  1868. return smalltalk.withContext(function($ctx1) {
  1869. var $1;
  1870. $1=self["@element"];
  1871. return $1;
  1872. }, function($ctx1) {$ctx1.fill(self,"element",{},smalltalk.TagBrush)})},
  1873. messageSends: []}),
  1874. smalltalk.TagBrush);
  1875. smalltalk.addMethod(
  1876. smalltalk.method({
  1877. selector: "empty",
  1878. fn: function (){
  1879. var self=this;
  1880. return smalltalk.withContext(function($ctx1) {
  1881. _st(_st(self)._asJQuery())._empty();
  1882. return self}, function($ctx1) {$ctx1.fill(self,"empty",{},smalltalk.TagBrush)})},
  1883. messageSends: ["empty", "asJQuery"]}),
  1884. smalltalk.TagBrush);
  1885. smalltalk.addMethod(
  1886. smalltalk.method({
  1887. selector: "for:",
  1888. fn: function (aString){
  1889. var self=this;
  1890. return smalltalk.withContext(function($ctx1) {
  1891. _st(self)._at_put_("for",aString);
  1892. return self}, function($ctx1) {$ctx1.fill(self,"for:",{aString:aString},smalltalk.TagBrush)})},
  1893. messageSends: ["at:put:"]}),
  1894. smalltalk.TagBrush);
  1895. smalltalk.addMethod(
  1896. smalltalk.method({
  1897. selector: "height:",
  1898. fn: function (aString){
  1899. var self=this;
  1900. return smalltalk.withContext(function($ctx1) {
  1901. _st(self)._at_put_("height",aString);
  1902. return self}, function($ctx1) {$ctx1.fill(self,"height:",{aString:aString},smalltalk.TagBrush)})},
  1903. messageSends: ["at:put:"]}),
  1904. smalltalk.TagBrush);
  1905. smalltalk.addMethod(
  1906. smalltalk.method({
  1907. selector: "hidden",
  1908. fn: function (){
  1909. var self=this;
  1910. return smalltalk.withContext(function($ctx1) {
  1911. _st(self)._at_put_("hidden","hidden");
  1912. return self}, function($ctx1) {$ctx1.fill(self,"hidden",{},smalltalk.TagBrush)})},
  1913. messageSends: ["at:put:"]}),
  1914. smalltalk.TagBrush);
  1915. smalltalk.addMethod(
  1916. smalltalk.method({
  1917. selector: "href:",
  1918. fn: function (aString){
  1919. var self=this;
  1920. return smalltalk.withContext(function($ctx1) {
  1921. _st(self)._at_put_("href",aString);
  1922. return self}, function($ctx1) {$ctx1.fill(self,"href:",{aString:aString},smalltalk.TagBrush)})},
  1923. messageSends: ["at:put:"]}),
  1924. smalltalk.TagBrush);
  1925. smalltalk.addMethod(
  1926. smalltalk.method({
  1927. selector: "id:",
  1928. fn: function (aString){
  1929. var self=this;
  1930. return smalltalk.withContext(function($ctx1) {
  1931. _st(self)._at_put_("id",aString);
  1932. return self}, function($ctx1) {$ctx1.fill(self,"id:",{aString:aString},smalltalk.TagBrush)})},
  1933. messageSends: ["at:put:"]}),
  1934. smalltalk.TagBrush);
  1935. smalltalk.addMethod(
  1936. smalltalk.method({
  1937. selector: "initializeFromJQuery:canvas:",
  1938. fn: function (aJQuery,aCanvas){
  1939. var self=this;
  1940. return smalltalk.withContext(function($ctx1) {
  1941. self["@element"]=_st(aJQuery)._get_((0));
  1942. self["@canvas"]=aCanvas;
  1943. return self}, function($ctx1) {$ctx1.fill(self,"initializeFromJQuery:canvas:",{aJQuery:aJQuery,aCanvas:aCanvas},smalltalk.TagBrush)})},
  1944. messageSends: ["get:"]}),
  1945. smalltalk.TagBrush);
  1946. smalltalk.addMethod(
  1947. smalltalk.method({
  1948. selector: "initializeFromString:canvas:",
  1949. fn: function (aString,aCanvas){
  1950. var self=this;
  1951. return smalltalk.withContext(function($ctx1) {
  1952. self["@element"]=_st(self)._createElementFor_(aString);
  1953. self["@canvas"]=aCanvas;
  1954. return self}, function($ctx1) {$ctx1.fill(self,"initializeFromString:canvas:",{aString:aString,aCanvas:aCanvas},smalltalk.TagBrush)})},
  1955. messageSends: ["createElementFor:"]}),
  1956. smalltalk.TagBrush);
  1957. smalltalk.addMethod(
  1958. smalltalk.method({
  1959. selector: "media:",
  1960. fn: function (aString){
  1961. var self=this;
  1962. return smalltalk.withContext(function($ctx1) {
  1963. _st(self)._at_put_("media",aString);
  1964. return self}, function($ctx1) {$ctx1.fill(self,"media:",{aString:aString},smalltalk.TagBrush)})},
  1965. messageSends: ["at:put:"]}),
  1966. smalltalk.TagBrush);
  1967. smalltalk.addMethod(
  1968. smalltalk.method({
  1969. selector: "method:",
  1970. fn: function (aString){
  1971. var self=this;
  1972. return smalltalk.withContext(function($ctx1) {
  1973. _st(self)._at_put_("method",aString);
  1974. return self}, function($ctx1) {$ctx1.fill(self,"method:",{aString:aString},smalltalk.TagBrush)})},
  1975. messageSends: ["at:put:"]}),
  1976. smalltalk.TagBrush);
  1977. smalltalk.addMethod(
  1978. smalltalk.method({
  1979. selector: "name:",
  1980. fn: function (aString){
  1981. var self=this;
  1982. return smalltalk.withContext(function($ctx1) {
  1983. _st(self)._at_put_("name",aString);
  1984. return self}, function($ctx1) {$ctx1.fill(self,"name:",{aString:aString},smalltalk.TagBrush)})},
  1985. messageSends: ["at:put:"]}),
  1986. smalltalk.TagBrush);
  1987. smalltalk.addMethod(
  1988. smalltalk.method({
  1989. selector: "onBlur:",
  1990. fn: function (aBlock){
  1991. var self=this;
  1992. return smalltalk.withContext(function($ctx1) {
  1993. _st(_st(self)._asJQuery())._bind_do_("blur",aBlock);
  1994. return self}, function($ctx1) {$ctx1.fill(self,"onBlur:",{aBlock:aBlock},smalltalk.TagBrush)})},
  1995. messageSends: ["bind:do:", "asJQuery"]}),
  1996. smalltalk.TagBrush);
  1997. smalltalk.addMethod(
  1998. smalltalk.method({
  1999. selector: "onChange:",
  2000. fn: function (aBlock){
  2001. var self=this;
  2002. return smalltalk.withContext(function($ctx1) {
  2003. _st(_st(self)._asJQuery())._bind_do_("change",aBlock);
  2004. return self}, function($ctx1) {$ctx1.fill(self,"onChange:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2005. messageSends: ["bind:do:", "asJQuery"]}),
  2006. smalltalk.TagBrush);
  2007. smalltalk.addMethod(
  2008. smalltalk.method({
  2009. selector: "onClick:",
  2010. fn: function (aBlock){
  2011. var self=this;
  2012. return smalltalk.withContext(function($ctx1) {
  2013. _st(_st(self)._asJQuery())._bind_do_("click",aBlock);
  2014. return self}, function($ctx1) {$ctx1.fill(self,"onClick:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2015. messageSends: ["bind:do:", "asJQuery"]}),
  2016. smalltalk.TagBrush);
  2017. smalltalk.addMethod(
  2018. smalltalk.method({
  2019. selector: "onDblClick:",
  2020. fn: function (aBlock){
  2021. var self=this;
  2022. return smalltalk.withContext(function($ctx1) {
  2023. _st(_st(self)._asJQuery())._bind_do_("dblclick",aBlock);
  2024. return self}, function($ctx1) {$ctx1.fill(self,"onDblClick:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2025. messageSends: ["bind:do:", "asJQuery"]}),
  2026. smalltalk.TagBrush);
  2027. smalltalk.addMethod(
  2028. smalltalk.method({
  2029. selector: "onFocus:",
  2030. fn: function (aBlock){
  2031. var self=this;
  2032. return smalltalk.withContext(function($ctx1) {
  2033. _st(_st(self)._asJQuery())._bind_do_("focus",aBlock);
  2034. return self}, function($ctx1) {$ctx1.fill(self,"onFocus:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2035. messageSends: ["bind:do:", "asJQuery"]}),
  2036. smalltalk.TagBrush);
  2037. smalltalk.addMethod(
  2038. smalltalk.method({
  2039. selector: "onFocusIn:",
  2040. fn: function (aBlock){
  2041. var self=this;
  2042. return smalltalk.withContext(function($ctx1) {
  2043. _st(_st(self)._asJQuery())._bind_do_("focusin",aBlock);
  2044. return self}, function($ctx1) {$ctx1.fill(self,"onFocusIn:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2045. messageSends: ["bind:do:", "asJQuery"]}),
  2046. smalltalk.TagBrush);
  2047. smalltalk.addMethod(
  2048. smalltalk.method({
  2049. selector: "onFocusOut:",
  2050. fn: function (aBlock){
  2051. var self=this;
  2052. return smalltalk.withContext(function($ctx1) {
  2053. _st(_st(self)._asJQuery())._bind_do_("focusout",aBlock);
  2054. return self}, function($ctx1) {$ctx1.fill(self,"onFocusOut:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2055. messageSends: ["bind:do:", "asJQuery"]}),
  2056. smalltalk.TagBrush);
  2057. smalltalk.addMethod(
  2058. smalltalk.method({
  2059. selector: "onHover:",
  2060. fn: function (aBlock){
  2061. var self=this;
  2062. return smalltalk.withContext(function($ctx1) {
  2063. _st(_st(self)._asJQuery())._bind_do_("hover",aBlock);
  2064. return self}, function($ctx1) {$ctx1.fill(self,"onHover:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2065. messageSends: ["bind:do:", "asJQuery"]}),
  2066. smalltalk.TagBrush);
  2067. smalltalk.addMethod(
  2068. smalltalk.method({
  2069. selector: "onKeyDown:",
  2070. fn: function (aBlock){
  2071. var self=this;
  2072. return smalltalk.withContext(function($ctx1) {
  2073. _st(_st(self)._asJQuery())._bind_do_("keydown",aBlock);
  2074. return self}, function($ctx1) {$ctx1.fill(self,"onKeyDown:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2075. messageSends: ["bind:do:", "asJQuery"]}),
  2076. smalltalk.TagBrush);
  2077. smalltalk.addMethod(
  2078. smalltalk.method({
  2079. selector: "onKeyPress:",
  2080. fn: function (aBlock){
  2081. var self=this;
  2082. return smalltalk.withContext(function($ctx1) {
  2083. _st(_st(self)._asJQuery())._bind_do_("keypress",aBlock);
  2084. return self}, function($ctx1) {$ctx1.fill(self,"onKeyPress:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2085. messageSends: ["bind:do:", "asJQuery"]}),
  2086. smalltalk.TagBrush);
  2087. smalltalk.addMethod(
  2088. smalltalk.method({
  2089. selector: "onKeyUp:",
  2090. fn: function (aBlock){
  2091. var self=this;
  2092. return smalltalk.withContext(function($ctx1) {
  2093. _st(_st(self)._asJQuery())._bind_do_("keyup",aBlock);
  2094. return self}, function($ctx1) {$ctx1.fill(self,"onKeyUp:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2095. messageSends: ["bind:do:", "asJQuery"]}),
  2096. smalltalk.TagBrush);
  2097. smalltalk.addMethod(
  2098. smalltalk.method({
  2099. selector: "onMouseDown:",
  2100. fn: function (aBlock){
  2101. var self=this;
  2102. return smalltalk.withContext(function($ctx1) {
  2103. _st(_st(self)._asJQuery())._bind_do_("mousedown",aBlock);
  2104. return self}, function($ctx1) {$ctx1.fill(self,"onMouseDown:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2105. messageSends: ["bind:do:", "asJQuery"]}),
  2106. smalltalk.TagBrush);
  2107. smalltalk.addMethod(
  2108. smalltalk.method({
  2109. selector: "onMouseEnter:",
  2110. fn: function (aBlock){
  2111. var self=this;
  2112. return smalltalk.withContext(function($ctx1) {
  2113. _st(_st(self)._asJQuery())._bind_do_("mouseenter",aBlock);
  2114. return self}, function($ctx1) {$ctx1.fill(self,"onMouseEnter:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2115. messageSends: ["bind:do:", "asJQuery"]}),
  2116. smalltalk.TagBrush);
  2117. smalltalk.addMethod(
  2118. smalltalk.method({
  2119. selector: "onMouseLeave:",
  2120. fn: function (aBlock){
  2121. var self=this;
  2122. return smalltalk.withContext(function($ctx1) {
  2123. _st(_st(self)._asJQuery())._bind_do_("mouseleave",aBlock);
  2124. return self}, function($ctx1) {$ctx1.fill(self,"onMouseLeave:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2125. messageSends: ["bind:do:", "asJQuery"]}),
  2126. smalltalk.TagBrush);
  2127. smalltalk.addMethod(
  2128. smalltalk.method({
  2129. selector: "onMouseMove:",
  2130. fn: function (aBlock){
  2131. var self=this;
  2132. return smalltalk.withContext(function($ctx1) {
  2133. _st(_st(self)._asJQuery())._bind_do_("mousemove",aBlock);
  2134. return self}, function($ctx1) {$ctx1.fill(self,"onMouseMove:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2135. messageSends: ["bind:do:", "asJQuery"]}),
  2136. smalltalk.TagBrush);
  2137. smalltalk.addMethod(
  2138. smalltalk.method({
  2139. selector: "onMouseOut:",
  2140. fn: function (aBlock){
  2141. var self=this;
  2142. return smalltalk.withContext(function($ctx1) {
  2143. _st(_st(self)._asJQuery())._bind_do_("mouseout",aBlock);
  2144. return self}, function($ctx1) {$ctx1.fill(self,"onMouseOut:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2145. messageSends: ["bind:do:", "asJQuery"]}),
  2146. smalltalk.TagBrush);
  2147. smalltalk.addMethod(
  2148. smalltalk.method({
  2149. selector: "onMouseOver:",
  2150. fn: function (aBlock){
  2151. var self=this;
  2152. return smalltalk.withContext(function($ctx1) {
  2153. _st(_st(self)._asJQuery())._bind_do_("mouseover",aBlock);
  2154. return self}, function($ctx1) {$ctx1.fill(self,"onMouseOver:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2155. messageSends: ["bind:do:", "asJQuery"]}),
  2156. smalltalk.TagBrush);
  2157. smalltalk.addMethod(
  2158. smalltalk.method({
  2159. selector: "onMouseUp:",
  2160. fn: function (aBlock){
  2161. var self=this;
  2162. return smalltalk.withContext(function($ctx1) {
  2163. _st(_st(self)._asJQuery())._bind_do_("mouseup",aBlock);
  2164. return self}, function($ctx1) {$ctx1.fill(self,"onMouseUp:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2165. messageSends: ["bind:do:", "asJQuery"]}),
  2166. smalltalk.TagBrush);
  2167. smalltalk.addMethod(
  2168. smalltalk.method({
  2169. selector: "onSelect:",
  2170. fn: function (aBlock){
  2171. var self=this;
  2172. return smalltalk.withContext(function($ctx1) {
  2173. _st(_st(self)._asJQuery())._bind_do_("select",aBlock);
  2174. return self}, function($ctx1) {$ctx1.fill(self,"onSelect:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2175. messageSends: ["bind:do:", "asJQuery"]}),
  2176. smalltalk.TagBrush);
  2177. smalltalk.addMethod(
  2178. smalltalk.method({
  2179. selector: "onSubmit:",
  2180. fn: function (aBlock){
  2181. var self=this;
  2182. return smalltalk.withContext(function($ctx1) {
  2183. _st(_st(self)._asJQuery())._bind_do_("submit",aBlock);
  2184. return self}, function($ctx1) {$ctx1.fill(self,"onSubmit:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2185. messageSends: ["bind:do:", "asJQuery"]}),
  2186. smalltalk.TagBrush);
  2187. smalltalk.addMethod(
  2188. smalltalk.method({
  2189. selector: "onUnload:",
  2190. fn: function (aBlock){
  2191. var self=this;
  2192. return smalltalk.withContext(function($ctx1) {
  2193. _st(_st(self)._asJQuery())._bind_do_("unload",aBlock);
  2194. return self}, function($ctx1) {$ctx1.fill(self,"onUnload:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2195. messageSends: ["bind:do:", "asJQuery"]}),
  2196. smalltalk.TagBrush);
  2197. smalltalk.addMethod(
  2198. smalltalk.method({
  2199. selector: "placeholder:",
  2200. fn: function (aString){
  2201. var self=this;
  2202. return smalltalk.withContext(function($ctx1) {
  2203. _st(self)._at_put_("placeholder",aString);
  2204. return self}, function($ctx1) {$ctx1.fill(self,"placeholder:",{aString:aString},smalltalk.TagBrush)})},
  2205. messageSends: ["at:put:"]}),
  2206. smalltalk.TagBrush);
  2207. smalltalk.addMethod(
  2208. smalltalk.method({
  2209. selector: "rel:",
  2210. fn: function (aString){
  2211. var self=this;
  2212. return smalltalk.withContext(function($ctx1) {
  2213. _st(self)._at_put_("rel",aString);
  2214. return self}, function($ctx1) {$ctx1.fill(self,"rel:",{aString:aString},smalltalk.TagBrush)})},
  2215. messageSends: ["at:put:"]}),
  2216. smalltalk.TagBrush);
  2217. smalltalk.addMethod(
  2218. smalltalk.method({
  2219. selector: "removeAt:",
  2220. fn: function (aString){
  2221. var self=this;
  2222. return smalltalk.withContext(function($ctx1) {
  2223. self['@element'].removeAttribute(aString);
  2224. return self}, function($ctx1) {$ctx1.fill(self,"removeAt:",{aString:aString},smalltalk.TagBrush)})},
  2225. messageSends: []}),
  2226. smalltalk.TagBrush);
  2227. smalltalk.addMethod(
  2228. smalltalk.method({
  2229. selector: "rows:",
  2230. fn: function (aString){
  2231. var self=this;
  2232. return smalltalk.withContext(function($ctx1) {
  2233. _st(self)._at_put_("rows",aString);
  2234. return self}, function($ctx1) {$ctx1.fill(self,"rows:",{aString:aString},smalltalk.TagBrush)})},
  2235. messageSends: ["at:put:"]}),
  2236. smalltalk.TagBrush);
  2237. smalltalk.addMethod(
  2238. smalltalk.method({
  2239. selector: "src:",
  2240. fn: function (aString){
  2241. var self=this;
  2242. return smalltalk.withContext(function($ctx1) {
  2243. _st(self)._at_put_("src",aString);
  2244. return self}, function($ctx1) {$ctx1.fill(self,"src:",{aString:aString},smalltalk.TagBrush)})},
  2245. messageSends: ["at:put:"]}),
  2246. smalltalk.TagBrush);
  2247. smalltalk.addMethod(
  2248. smalltalk.method({
  2249. selector: "style:",
  2250. fn: function (aString){
  2251. var self=this;
  2252. return smalltalk.withContext(function($ctx1) {
  2253. _st(self)._at_put_("style",aString);
  2254. return self}, function($ctx1) {$ctx1.fill(self,"style:",{aString:aString},smalltalk.TagBrush)})},
  2255. messageSends: ["at:put:"]}),
  2256. smalltalk.TagBrush);
  2257. smalltalk.addMethod(
  2258. smalltalk.method({
  2259. selector: "tabindex:",
  2260. fn: function (aNumber){
  2261. var self=this;
  2262. return smalltalk.withContext(function($ctx1) {
  2263. _st(self)._at_put_("tabindex",aNumber);
  2264. return self}, function($ctx1) {$ctx1.fill(self,"tabindex:",{aNumber:aNumber},smalltalk.TagBrush)})},
  2265. messageSends: ["at:put:"]}),
  2266. smalltalk.TagBrush);
  2267. smalltalk.addMethod(
  2268. smalltalk.method({
  2269. selector: "target:",
  2270. fn: function (aString){
  2271. var self=this;
  2272. return smalltalk.withContext(function($ctx1) {
  2273. _st(self)._at_put_("target",aString);
  2274. return self}, function($ctx1) {$ctx1.fill(self,"target:",{aString:aString},smalltalk.TagBrush)})},
  2275. messageSends: ["at:put:"]}),
  2276. smalltalk.TagBrush);
  2277. smalltalk.addMethod(
  2278. smalltalk.method({
  2279. selector: "title:",
  2280. fn: function (aString){
  2281. var self=this;
  2282. return smalltalk.withContext(function($ctx1) {
  2283. _st(self)._at_put_("title",aString);
  2284. return self}, function($ctx1) {$ctx1.fill(self,"title:",{aString:aString},smalltalk.TagBrush)})},
  2285. messageSends: ["at:put:"]}),
  2286. smalltalk.TagBrush);
  2287. smalltalk.addMethod(
  2288. smalltalk.method({
  2289. selector: "type:",
  2290. fn: function (aString){
  2291. var self=this;
  2292. return smalltalk.withContext(function($ctx1) {
  2293. _st(self)._at_put_("type",aString);
  2294. return self}, function($ctx1) {$ctx1.fill(self,"type:",{aString:aString},smalltalk.TagBrush)})},
  2295. messageSends: ["at:put:"]}),
  2296. smalltalk.TagBrush);
  2297. smalltalk.addMethod(
  2298. smalltalk.method({
  2299. selector: "valign:",
  2300. fn: function (aString){
  2301. var self=this;
  2302. return smalltalk.withContext(function($ctx1) {
  2303. _st(self)._at_put_("valign",aString);
  2304. return self}, function($ctx1) {$ctx1.fill(self,"valign:",{aString:aString},smalltalk.TagBrush)})},
  2305. messageSends: ["at:put:"]}),
  2306. smalltalk.TagBrush);
  2307. smalltalk.addMethod(
  2308. smalltalk.method({
  2309. selector: "value:",
  2310. fn: function (aString){
  2311. var self=this;
  2312. return smalltalk.withContext(function($ctx1) {
  2313. _st(self)._at_put_("value",aString);
  2314. return self}, function($ctx1) {$ctx1.fill(self,"value:",{aString:aString},smalltalk.TagBrush)})},
  2315. messageSends: ["at:put:"]}),
  2316. smalltalk.TagBrush);
  2317. smalltalk.addMethod(
  2318. smalltalk.method({
  2319. selector: "width:",
  2320. fn: function (aString){
  2321. var self=this;
  2322. return smalltalk.withContext(function($ctx1) {
  2323. _st(self)._at_put_("width",aString);
  2324. return self}, function($ctx1) {$ctx1.fill(self,"width:",{aString:aString},smalltalk.TagBrush)})},
  2325. messageSends: ["at:put:"]}),
  2326. smalltalk.TagBrush);
  2327. smalltalk.addMethod(
  2328. smalltalk.method({
  2329. selector: "with:",
  2330. fn: function (anObject){
  2331. var self=this;
  2332. return smalltalk.withContext(function($ctx1) {
  2333. _st(self)._append_(anObject);
  2334. return self}, function($ctx1) {$ctx1.fill(self,"with:",{anObject:anObject},smalltalk.TagBrush)})},
  2335. messageSends: ["append:"]}),
  2336. smalltalk.TagBrush);
  2337. smalltalk.addMethod(
  2338. smalltalk.method({
  2339. selector: "fromJQuery:canvas:",
  2340. fn: function (aJQuery,aCanvas){
  2341. var self=this;
  2342. return smalltalk.withContext(function($ctx1) {
  2343. var $2,$3,$1;
  2344. $2=_st(self)._new();
  2345. _st($2)._initializeFromJQuery_canvas_(aJQuery,aCanvas);
  2346. $3=_st($2)._yourself();
  2347. $1=$3;
  2348. return $1;
  2349. }, function($ctx1) {$ctx1.fill(self,"fromJQuery:canvas:",{aJQuery:aJQuery,aCanvas:aCanvas},smalltalk.TagBrush.klass)})},
  2350. messageSends: ["initializeFromJQuery:canvas:", "new", "yourself"]}),
  2351. smalltalk.TagBrush.klass);
  2352. smalltalk.addMethod(
  2353. smalltalk.method({
  2354. selector: "fromString:canvas:",
  2355. fn: function (aString,aCanvas){
  2356. var self=this;
  2357. return smalltalk.withContext(function($ctx1) {
  2358. var $2,$3,$1;
  2359. $2=_st(self)._new();
  2360. _st($2)._initializeFromString_canvas_(aString,aCanvas);
  2361. $3=_st($2)._yourself();
  2362. $1=$3;
  2363. return $1;
  2364. }, function($ctx1) {$ctx1.fill(self,"fromString:canvas:",{aString:aString,aCanvas:aCanvas},smalltalk.TagBrush.klass)})},
  2365. messageSends: ["initializeFromString:canvas:", "new", "yourself"]}),
  2366. smalltalk.TagBrush.klass);
  2367. smalltalk.addClass('StyleTag', smalltalk.TagBrush, ['canvas', 'element'], 'Canvas');
  2368. smalltalk.addMethod(
  2369. smalltalk.method({
  2370. selector: "with:",
  2371. fn: function (aString){
  2372. var self=this;
  2373. function $HTMLCanvas(){return smalltalk.HTMLCanvas||(typeof HTMLCanvas=="undefined"?nil:HTMLCanvas)}
  2374. return smalltalk.withContext(function($ctx1) {
  2375. var $1;
  2376. $1=_st($HTMLCanvas())._isMSIE();
  2377. if(smalltalk.assert($1)){
  2378. _st(_st(_st(self)._element())._styleSheet())._cssText_(aString);
  2379. } else {
  2380. smalltalk.TagBrush.fn.prototype._with_.apply(_st(self), [aString]);
  2381. };
  2382. return self}, function($ctx1) {$ctx1.fill(self,"with:",{aString:aString},smalltalk.StyleTag)})},
  2383. messageSends: ["ifTrue:ifFalse:", "cssText:", "styleSheet", "element", "with:", "isMSIE"]}),
  2384. smalltalk.StyleTag);
  2385. smalltalk.addMethod(
  2386. smalltalk.method({
  2387. selector: "canvas:",
  2388. fn: function (aCanvas){
  2389. var self=this;
  2390. return smalltalk.withContext(function($ctx1) {
  2391. var $2,$3,$1;
  2392. $2=_st(self)._new();
  2393. _st($2)._initializeFromString_canvas_("style",aCanvas);
  2394. $3=_st($2)._yourself();
  2395. $1=$3;
  2396. return $1;
  2397. }, function($ctx1) {$ctx1.fill(self,"canvas:",{aCanvas:aCanvas},smalltalk.StyleTag.klass)})},
  2398. messageSends: ["initializeFromString:canvas:", "new", "yourself"]}),
  2399. smalltalk.StyleTag.klass);
  2400. smalltalk.addClass('Widget', smalltalk.Object, [], 'Canvas');
  2401. smalltalk.addMethod(
  2402. smalltalk.method({
  2403. selector: "appendToBrush:",
  2404. fn: function (aTagBrush){
  2405. var self=this;
  2406. return smalltalk.withContext(function($ctx1) {
  2407. _st(self)._appendToJQuery_(_st(aTagBrush)._asJQuery());
  2408. return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},smalltalk.Widget)})},
  2409. messageSends: ["appendToJQuery:", "asJQuery"]}),
  2410. smalltalk.Widget);
  2411. smalltalk.addMethod(
  2412. smalltalk.method({
  2413. selector: "appendToJQuery:",
  2414. fn: function (aJQuery){
  2415. var self=this;
  2416. function $HTMLCanvas(){return smalltalk.HTMLCanvas||(typeof HTMLCanvas=="undefined"?nil:HTMLCanvas)}
  2417. return smalltalk.withContext(function($ctx1) {
  2418. _st(self)._renderOn_(_st($HTMLCanvas())._onJQuery_(aJQuery));
  2419. return self}, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery},smalltalk.Widget)})},
  2420. messageSends: ["renderOn:", "onJQuery:"]}),
  2421. smalltalk.Widget);
  2422. smalltalk.addMethod(
  2423. smalltalk.method({
  2424. selector: "renderOn:",
  2425. fn: function (html){
  2426. var self=this;
  2427. return smalltalk.withContext(function($ctx1) {
  2428. return self}, function($ctx1) {$ctx1.fill(self,"renderOn:",{html:html},smalltalk.Widget)})},
  2429. messageSends: []}),
  2430. smalltalk.Widget);
  2431. smalltalk.addMethod(
  2432. smalltalk.method({
  2433. selector: "appendToBrush:",
  2434. fn: function (aTagBrush){
  2435. var self=this;
  2436. return smalltalk.withContext(function($ctx1) {
  2437. _st(aTagBrush)._append_(_st(self)._asString());
  2438. return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},smalltalk.Object)})},
  2439. messageSends: ["append:", "asString"]}),
  2440. smalltalk.Object);
  2441. smalltalk.addMethod(
  2442. smalltalk.method({
  2443. selector: "appendToJQuery:",
  2444. fn: function (aJQuery){
  2445. var self=this;
  2446. return smalltalk.withContext(function($ctx1) {
  2447. _st(aJQuery)._append_(_st(self)._asString());
  2448. return self}, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery},smalltalk.Object)})},
  2449. messageSends: ["append:", "asString"]}),
  2450. smalltalk.Object);
  2451. smalltalk.addMethod(
  2452. smalltalk.method({
  2453. selector: "appendToBrush:",
  2454. fn: function (aTagBrush){
  2455. var self=this;
  2456. return smalltalk.withContext(function($ctx1) {
  2457. _st(aTagBrush)._appendBlock_(self);
  2458. return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},smalltalk.BlockClosure)})},
  2459. messageSends: ["appendBlock:"]}),
  2460. smalltalk.BlockClosure);
  2461. smalltalk.addMethod(
  2462. smalltalk.method({
  2463. selector: "appendToJQuery:",
  2464. fn: function (aJQuery){
  2465. var self=this;
  2466. function $HTMLCanvas(){return smalltalk.HTMLCanvas||(typeof HTMLCanvas=="undefined"?nil:HTMLCanvas)}
  2467. return smalltalk.withContext(function($ctx1) {
  2468. _st(self)._value_(_st($HTMLCanvas())._onJQuery_(aJQuery));
  2469. return self}, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery},smalltalk.BlockClosure)})},
  2470. messageSends: ["value:", "onJQuery:"]}),
  2471. smalltalk.BlockClosure);
  2472. smalltalk.addMethod(
  2473. smalltalk.method({
  2474. selector: "asSnippet",
  2475. fn: function (){
  2476. var self=this;
  2477. function $HTMLSnippet(){return smalltalk.HTMLSnippet||(typeof HTMLSnippet=="undefined"?nil:HTMLSnippet)}
  2478. return smalltalk.withContext(function($ctx1) {
  2479. var $1;
  2480. $1=_st(_st($HTMLSnippet())._current())._snippetAt_(_st(self)._asString());
  2481. return $1;
  2482. }, function($ctx1) {$ctx1.fill(self,"asSnippet",{},smalltalk.CharacterArray)})},
  2483. messageSends: ["snippetAt:", "asString", "current"]}),
  2484. smalltalk.CharacterArray);
  2485. smalltalk.addMethod(
  2486. smalltalk.method({
  2487. selector: "appendToBrush:",
  2488. fn: function (aTagBrush){
  2489. var self=this;
  2490. return smalltalk.withContext(function($ctx1) {
  2491. _st(aTagBrush)._appendString_(self);
  2492. return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},smalltalk.String)})},
  2493. messageSends: ["appendString:"]}),
  2494. smalltalk.String);
  2495. smalltalk.addMethod(
  2496. smalltalk.method({
  2497. selector: "appendToJQuery:",
  2498. fn: function (aJQuery){
  2499. var self=this;
  2500. return smalltalk.withContext(function($ctx1) {
  2501. _st(aJQuery)._append_(self);
  2502. return self}, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery},smalltalk.String)})},
  2503. messageSends: ["append:"]}),
  2504. smalltalk.String);
  2505. smalltalk.addMethod(
  2506. smalltalk.method({
  2507. selector: "asJQuery",
  2508. fn: function (){
  2509. var self=this;
  2510. return smalltalk.withContext(function($ctx1) {
  2511. return jQuery(String(self));
  2512. return self}, function($ctx1) {$ctx1.fill(self,"asJQuery",{},smalltalk.String)})},
  2513. messageSends: []}),
  2514. smalltalk.String);
  2515. smalltalk.addMethod(
  2516. smalltalk.method({
  2517. selector: "asJQuery",
  2518. fn: function (){
  2519. var self=this;
  2520. return smalltalk.withContext(function($ctx1) {
  2521. return jQuery(self['@jsObject']);
  2522. return self}, function($ctx1) {$ctx1.fill(self,"asJQuery",{},smalltalk.JSObjectProxy)})},
  2523. messageSends: []}),
  2524. smalltalk.JSObjectProxy);