1
0

Canvas.deploy.js 76 KB

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