1
0

Canvas.deploy.js 75 KB

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