Canvas.deploy.js 78 KB

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