Canvas.deploy.js 71 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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. }),
  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) { smalltalk.Object.klass.fn.prototype._initialize.apply(_st(self), []);
  1608. _st(self)._ensureCurrent();
  1609. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{}, smalltalk.HTMLSnippet.klass)})}
  1610. }),
  1611. smalltalk.HTMLSnippet.klass);
  1612. smalltalk.addMethod(
  1613. "_new",
  1614. smalltalk.method({
  1615. selector: "new",
  1616. fn: function (){
  1617. var self=this;
  1618. return smalltalk.withContext(function($ctx1) { _st(self)._shouldNotImplement();
  1619. return self}, function($ctx1) {$ctx1.fill(self,"new",{}, smalltalk.HTMLSnippet.klass)})}
  1620. }),
  1621. smalltalk.HTMLSnippet.klass);
  1622. smalltalk.addClass('TagBrush', smalltalk.Object, ['canvas', 'element'], 'Canvas');
  1623. smalltalk.addMethod(
  1624. "_accesskey_",
  1625. smalltalk.method({
  1626. selector: "accesskey:",
  1627. fn: function (aString){
  1628. var self=this;
  1629. return smalltalk.withContext(function($ctx1) { _st(self)._at_put_("accesskey",aString);
  1630. return self}, function($ctx1) {$ctx1.fill(self,"accesskey:",{aString:aString}, smalltalk.TagBrush)})}
  1631. }),
  1632. smalltalk.TagBrush);
  1633. smalltalk.addMethod(
  1634. "_action_",
  1635. smalltalk.method({
  1636. selector: "action:",
  1637. fn: function (aString){
  1638. var self=this;
  1639. return smalltalk.withContext(function($ctx1) { _st(self)._at_put_("action",aString);
  1640. return self}, function($ctx1) {$ctx1.fill(self,"action:",{aString:aString}, smalltalk.TagBrush)})}
  1641. }),
  1642. smalltalk.TagBrush);
  1643. smalltalk.addMethod(
  1644. "_addBrush_",
  1645. smalltalk.method({
  1646. selector: "addBrush:",
  1647. fn: function (aTagBrush){
  1648. var self=this;
  1649. return smalltalk.withContext(function($ctx1) { var $1;
  1650. _st(self)._appendChild_(_st(aTagBrush)._element());
  1651. $1=aTagBrush;
  1652. return $1;
  1653. }, function($ctx1) {$ctx1.fill(self,"addBrush:",{aTagBrush:aTagBrush}, smalltalk.TagBrush)})}
  1654. }),
  1655. smalltalk.TagBrush);
  1656. smalltalk.addMethod(
  1657. "_align_",
  1658. smalltalk.method({
  1659. selector: "align:",
  1660. fn: function (aString){
  1661. var self=this;
  1662. return smalltalk.withContext(function($ctx1) { _st(self)._at_put_("align",aString);
  1663. return self}, function($ctx1) {$ctx1.fill(self,"align:",{aString:aString}, smalltalk.TagBrush)})}
  1664. }),
  1665. smalltalk.TagBrush);
  1666. smalltalk.addMethod(
  1667. "_alt_",
  1668. smalltalk.method({
  1669. selector: "alt:",
  1670. fn: function (aString){
  1671. var self=this;
  1672. return smalltalk.withContext(function($ctx1) { _st(self)._at_put_("alt",aString);
  1673. return self}, function($ctx1) {$ctx1.fill(self,"alt:",{aString:aString}, smalltalk.TagBrush)})}
  1674. }),
  1675. smalltalk.TagBrush);
  1676. smalltalk.addMethod(
  1677. "_append_",
  1678. smalltalk.method({
  1679. selector: "append:",
  1680. fn: function (anObject){
  1681. var self=this;
  1682. return smalltalk.withContext(function($ctx1) { _st(anObject)._appendToBrush_(self);
  1683. return self}, function($ctx1) {$ctx1.fill(self,"append:",{anObject:anObject}, smalltalk.TagBrush)})}
  1684. }),
  1685. smalltalk.TagBrush);
  1686. smalltalk.addMethod(
  1687. "_appendBlock_",
  1688. smalltalk.method({
  1689. selector: "appendBlock:",
  1690. fn: function (aBlock){
  1691. var self=this;
  1692. var root;
  1693. return smalltalk.withContext(function($ctx1) { root=_st(self["@canvas"])._root();
  1694. _st(self["@canvas"])._root_(self);
  1695. _st(aBlock)._value_(self["@canvas"]);
  1696. _st(self["@canvas"])._root_(root);
  1697. return self}, function($ctx1) {$ctx1.fill(self,"appendBlock:",{aBlock:aBlock,root:root}, smalltalk.TagBrush)})}
  1698. }),
  1699. smalltalk.TagBrush);
  1700. smalltalk.addMethod(
  1701. "_appendChild_",
  1702. smalltalk.method({
  1703. selector: "appendChild:",
  1704. fn: function (anElement){
  1705. var self=this;
  1706. return smalltalk.withContext(function($ctx1) { var element=self['@element'];
  1707. if (null == element.canHaveChildren || element.canHaveChildren) {
  1708. element.appendChild(anElement);
  1709. } else {
  1710. element.text = String(element.text) + anElement.innerHTML;
  1711. } ;
  1712. return self}, function($ctx1) {$ctx1.fill(self,"appendChild:",{anElement:anElement}, smalltalk.TagBrush)})}
  1713. }),
  1714. smalltalk.TagBrush);
  1715. smalltalk.addMethod(
  1716. "_appendString_",
  1717. smalltalk.method({
  1718. selector: "appendString:",
  1719. fn: function (aString){
  1720. var self=this;
  1721. return smalltalk.withContext(function($ctx1) { _st(self)._appendChild_(_st(self)._createTextNodeFor_(aString));
  1722. return self}, function($ctx1) {$ctx1.fill(self,"appendString:",{aString:aString}, smalltalk.TagBrush)})}
  1723. }),
  1724. smalltalk.TagBrush);
  1725. smalltalk.addMethod(
  1726. "_appendToBrush_",
  1727. smalltalk.method({
  1728. selector: "appendToBrush:",
  1729. fn: function (aTagBrush){
  1730. var self=this;
  1731. return smalltalk.withContext(function($ctx1) { _st(aTagBrush)._addBrush_(self);
  1732. return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush}, smalltalk.TagBrush)})}
  1733. }),
  1734. smalltalk.TagBrush);
  1735. smalltalk.addMethod(
  1736. "_asJQuery",
  1737. smalltalk.method({
  1738. selector: "asJQuery",
  1739. fn: function (){
  1740. var self=this;
  1741. return smalltalk.withContext(function($ctx1) { var $1;
  1742. $1=_st(window)._jQuery_(_st(self)._element());
  1743. return $1;
  1744. }, function($ctx1) {$ctx1.fill(self,"asJQuery",{}, smalltalk.TagBrush)})}
  1745. }),
  1746. smalltalk.TagBrush);
  1747. smalltalk.addMethod(
  1748. "_at_put_",
  1749. smalltalk.method({
  1750. selector: "at:put:",
  1751. fn: function (aString,aValue){
  1752. var self=this;
  1753. return smalltalk.withContext(function($ctx1) { self['@element'].setAttribute(aString, aValue);
  1754. return self}, function($ctx1) {$ctx1.fill(self,"at:put:",{aString:aString,aValue:aValue}, smalltalk.TagBrush)})}
  1755. }),
  1756. smalltalk.TagBrush);
  1757. smalltalk.addMethod(
  1758. "_class_",
  1759. smalltalk.method({
  1760. selector: "class:",
  1761. fn: function (aString){
  1762. var self=this;
  1763. return smalltalk.withContext(function($ctx1) { self['@element'].className = aString;
  1764. return self}, function($ctx1) {$ctx1.fill(self,"class:",{aString:aString}, smalltalk.TagBrush)})}
  1765. }),
  1766. smalltalk.TagBrush);
  1767. smalltalk.addMethod(
  1768. "_cols_",
  1769. smalltalk.method({
  1770. selector: "cols:",
  1771. fn: function (aString){
  1772. var self=this;
  1773. return smalltalk.withContext(function($ctx1) { _st(self)._at_put_("cols",aString);
  1774. return self}, function($ctx1) {$ctx1.fill(self,"cols:",{aString:aString}, smalltalk.TagBrush)})}
  1775. }),
  1776. smalltalk.TagBrush);
  1777. smalltalk.addMethod(
  1778. "_contenteditable_",
  1779. smalltalk.method({
  1780. selector: "contenteditable:",
  1781. fn: function (aString){
  1782. var self=this;
  1783. return smalltalk.withContext(function($ctx1) { _st(self)._at_put_("contenteditable",aString);
  1784. return self}, function($ctx1) {$ctx1.fill(self,"contenteditable:",{aString:aString}, smalltalk.TagBrush)})}
  1785. }),
  1786. smalltalk.TagBrush);
  1787. smalltalk.addMethod(
  1788. "_contents_",
  1789. smalltalk.method({
  1790. selector: "contents:",
  1791. fn: function (anObject){
  1792. var self=this;
  1793. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1794. $1=self;
  1795. _st($1)._empty();
  1796. $2=_st($1)._append_(anObject);
  1797. return self}, function($ctx1) {$ctx1.fill(self,"contents:",{anObject:anObject}, smalltalk.TagBrush)})}
  1798. }),
  1799. smalltalk.TagBrush);
  1800. smalltalk.addMethod(
  1801. "_contextmenu_",
  1802. smalltalk.method({
  1803. selector: "contextmenu:",
  1804. fn: function (aString){
  1805. var self=this;
  1806. return smalltalk.withContext(function($ctx1) { _st(self)._at_put_("contextmenu",aString);
  1807. return self}, function($ctx1) {$ctx1.fill(self,"contextmenu:",{aString:aString}, smalltalk.TagBrush)})}
  1808. }),
  1809. smalltalk.TagBrush);
  1810. smalltalk.addMethod(
  1811. "_createElementFor_",
  1812. smalltalk.method({
  1813. selector: "createElementFor:",
  1814. fn: function (aString){
  1815. var self=this;
  1816. return smalltalk.withContext(function($ctx1) { return document.createElement(String(aString));
  1817. return self}, function($ctx1) {$ctx1.fill(self,"createElementFor:",{aString:aString}, smalltalk.TagBrush)})}
  1818. }),
  1819. smalltalk.TagBrush);
  1820. smalltalk.addMethod(
  1821. "_createTextNodeFor_",
  1822. smalltalk.method({
  1823. selector: "createTextNodeFor:",
  1824. fn: function (aString){
  1825. var self=this;
  1826. return smalltalk.withContext(function($ctx1) { return document.createTextNode(String(aString));
  1827. return self}, function($ctx1) {$ctx1.fill(self,"createTextNodeFor:",{aString:aString}, smalltalk.TagBrush)})}
  1828. }),
  1829. smalltalk.TagBrush);
  1830. smalltalk.addMethod(
  1831. "_draggable_",
  1832. smalltalk.method({
  1833. selector: "draggable:",
  1834. fn: function (aString){
  1835. var self=this;
  1836. return smalltalk.withContext(function($ctx1) { _st(self)._at_put_("draggable",aString);
  1837. return self}, function($ctx1) {$ctx1.fill(self,"draggable:",{aString:aString}, smalltalk.TagBrush)})}
  1838. }),
  1839. smalltalk.TagBrush);
  1840. smalltalk.addMethod(
  1841. "_element",
  1842. smalltalk.method({
  1843. selector: "element",
  1844. fn: function (){
  1845. var self=this;
  1846. return smalltalk.withContext(function($ctx1) { var $1;
  1847. $1=self["@element"];
  1848. return $1;
  1849. }, function($ctx1) {$ctx1.fill(self,"element",{}, smalltalk.TagBrush)})}
  1850. }),
  1851. smalltalk.TagBrush);
  1852. smalltalk.addMethod(
  1853. "_empty",
  1854. smalltalk.method({
  1855. selector: "empty",
  1856. fn: function (){
  1857. var self=this;
  1858. return smalltalk.withContext(function($ctx1) { _st(_st(self)._asJQuery())._empty();
  1859. return self}, function($ctx1) {$ctx1.fill(self,"empty",{}, smalltalk.TagBrush)})}
  1860. }),
  1861. smalltalk.TagBrush);
  1862. smalltalk.addMethod(
  1863. "_for_",
  1864. smalltalk.method({
  1865. selector: "for:",
  1866. fn: function (aString){
  1867. var self=this;
  1868. return smalltalk.withContext(function($ctx1) { _st(self)._at_put_("for",aString);
  1869. return self}, function($ctx1) {$ctx1.fill(self,"for:",{aString:aString}, smalltalk.TagBrush)})}
  1870. }),
  1871. smalltalk.TagBrush);
  1872. smalltalk.addMethod(
  1873. "_height_",
  1874. smalltalk.method({
  1875. selector: "height:",
  1876. fn: function (aString){
  1877. var self=this;
  1878. return smalltalk.withContext(function($ctx1) { _st(self)._at_put_("height",aString);
  1879. return self}, function($ctx1) {$ctx1.fill(self,"height:",{aString:aString}, smalltalk.TagBrush)})}
  1880. }),
  1881. smalltalk.TagBrush);
  1882. smalltalk.addMethod(
  1883. "_hidden",
  1884. smalltalk.method({
  1885. selector: "hidden",
  1886. fn: function (){
  1887. var self=this;
  1888. return smalltalk.withContext(function($ctx1) { _st(self)._at_put_("hidden","hidden");
  1889. return self}, function($ctx1) {$ctx1.fill(self,"hidden",{}, smalltalk.TagBrush)})}
  1890. }),
  1891. smalltalk.TagBrush);
  1892. smalltalk.addMethod(
  1893. "_href_",
  1894. smalltalk.method({
  1895. selector: "href:",
  1896. fn: function (aString){
  1897. var self=this;
  1898. return smalltalk.withContext(function($ctx1) { _st(self)._at_put_("href",aString);
  1899. return self}, function($ctx1) {$ctx1.fill(self,"href:",{aString:aString}, smalltalk.TagBrush)})}
  1900. }),
  1901. smalltalk.TagBrush);
  1902. smalltalk.addMethod(
  1903. "_id_",
  1904. smalltalk.method({
  1905. selector: "id:",
  1906. fn: function (aString){
  1907. var self=this;
  1908. return smalltalk.withContext(function($ctx1) { _st(self)._at_put_("id",aString);
  1909. return self}, function($ctx1) {$ctx1.fill(self,"id:",{aString:aString}, smalltalk.TagBrush)})}
  1910. }),
  1911. smalltalk.TagBrush);
  1912. smalltalk.addMethod(
  1913. "_initializeFromJQuery_canvas_",
  1914. smalltalk.method({
  1915. selector: "initializeFromJQuery:canvas:",
  1916. fn: function (aJQuery,aCanvas){
  1917. var self=this;
  1918. return smalltalk.withContext(function($ctx1) { self["@element"]=_st(aJQuery)._get_((0));
  1919. self["@canvas"]=aCanvas;
  1920. return self}, function($ctx1) {$ctx1.fill(self,"initializeFromJQuery:canvas:",{aJQuery:aJQuery,aCanvas:aCanvas}, smalltalk.TagBrush)})}
  1921. }),
  1922. smalltalk.TagBrush);
  1923. smalltalk.addMethod(
  1924. "_initializeFromString_canvas_",
  1925. smalltalk.method({
  1926. selector: "initializeFromString:canvas:",
  1927. fn: function (aString,aCanvas){
  1928. var self=this;
  1929. return smalltalk.withContext(function($ctx1) { self["@element"]=_st(self)._createElementFor_(aString);
  1930. self["@canvas"]=aCanvas;
  1931. return self}, function($ctx1) {$ctx1.fill(self,"initializeFromString:canvas:",{aString:aString,aCanvas:aCanvas}, smalltalk.TagBrush)})}
  1932. }),
  1933. smalltalk.TagBrush);
  1934. smalltalk.addMethod(
  1935. "_media_",
  1936. smalltalk.method({
  1937. selector: "media:",
  1938. fn: function (aString){
  1939. var self=this;
  1940. return smalltalk.withContext(function($ctx1) { _st(self)._at_put_("media",aString);
  1941. return self}, function($ctx1) {$ctx1.fill(self,"media:",{aString:aString}, smalltalk.TagBrush)})}
  1942. }),
  1943. smalltalk.TagBrush);
  1944. smalltalk.addMethod(
  1945. "_method_",
  1946. smalltalk.method({
  1947. selector: "method:",
  1948. fn: function (aString){
  1949. var self=this;
  1950. return smalltalk.withContext(function($ctx1) { _st(self)._at_put_("method",aString);
  1951. return self}, function($ctx1) {$ctx1.fill(self,"method:",{aString:aString}, smalltalk.TagBrush)})}
  1952. }),
  1953. smalltalk.TagBrush);
  1954. smalltalk.addMethod(
  1955. "_name_",
  1956. smalltalk.method({
  1957. selector: "name:",
  1958. fn: function (aString){
  1959. var self=this;
  1960. return smalltalk.withContext(function($ctx1) { _st(self)._at_put_("name",aString);
  1961. return self}, function($ctx1) {$ctx1.fill(self,"name:",{aString:aString}, smalltalk.TagBrush)})}
  1962. }),
  1963. smalltalk.TagBrush);
  1964. smalltalk.addMethod(
  1965. "_onBlur_",
  1966. smalltalk.method({
  1967. selector: "onBlur:",
  1968. fn: function (aBlock){
  1969. var self=this;
  1970. return smalltalk.withContext(function($ctx1) { _st(_st(self)._asJQuery())._bind_do_("blur",aBlock);
  1971. return self}, function($ctx1) {$ctx1.fill(self,"onBlur:",{aBlock:aBlock}, smalltalk.TagBrush)})}
  1972. }),
  1973. smalltalk.TagBrush);
  1974. smalltalk.addMethod(
  1975. "_onChange_",
  1976. smalltalk.method({
  1977. selector: "onChange:",
  1978. fn: function (aBlock){
  1979. var self=this;
  1980. return smalltalk.withContext(function($ctx1) { _st(_st(self)._asJQuery())._bind_do_("change",aBlock);
  1981. return self}, function($ctx1) {$ctx1.fill(self,"onChange:",{aBlock:aBlock}, smalltalk.TagBrush)})}
  1982. }),
  1983. smalltalk.TagBrush);
  1984. smalltalk.addMethod(
  1985. "_onClick_",
  1986. smalltalk.method({
  1987. selector: "onClick:",
  1988. fn: function (aBlock){
  1989. var self=this;
  1990. return smalltalk.withContext(function($ctx1) { _st(_st(self)._asJQuery())._bind_do_("click",aBlock);
  1991. return self}, function($ctx1) {$ctx1.fill(self,"onClick:",{aBlock:aBlock}, smalltalk.TagBrush)})}
  1992. }),
  1993. smalltalk.TagBrush);
  1994. smalltalk.addMethod(
  1995. "_onDblClick_",
  1996. smalltalk.method({
  1997. selector: "onDblClick:",
  1998. fn: function (aBlock){
  1999. var self=this;
  2000. return smalltalk.withContext(function($ctx1) { _st(_st(self)._asJQuery())._bind_do_("dblclick",aBlock);
  2001. return self}, function($ctx1) {$ctx1.fill(self,"onDblClick:",{aBlock:aBlock}, smalltalk.TagBrush)})}
  2002. }),
  2003. smalltalk.TagBrush);
  2004. smalltalk.addMethod(
  2005. "_onFocus_",
  2006. smalltalk.method({
  2007. selector: "onFocus:",
  2008. fn: function (aBlock){
  2009. var self=this;
  2010. return smalltalk.withContext(function($ctx1) { _st(_st(self)._asJQuery())._bind_do_("focus",aBlock);
  2011. return self}, function($ctx1) {$ctx1.fill(self,"onFocus:",{aBlock:aBlock}, smalltalk.TagBrush)})}
  2012. }),
  2013. smalltalk.TagBrush);
  2014. smalltalk.addMethod(
  2015. "_onFocusIn_",
  2016. smalltalk.method({
  2017. selector: "onFocusIn:",
  2018. fn: function (aBlock){
  2019. var self=this;
  2020. return smalltalk.withContext(function($ctx1) { _st(_st(self)._asJQuery())._bind_do_("focusin",aBlock);
  2021. return self}, function($ctx1) {$ctx1.fill(self,"onFocusIn:",{aBlock:aBlock}, smalltalk.TagBrush)})}
  2022. }),
  2023. smalltalk.TagBrush);
  2024. smalltalk.addMethod(
  2025. "_onFocusOut_",
  2026. smalltalk.method({
  2027. selector: "onFocusOut:",
  2028. fn: function (aBlock){
  2029. var self=this;
  2030. return smalltalk.withContext(function($ctx1) { _st(_st(self)._asJQuery())._bind_do_("focusout",aBlock);
  2031. return self}, function($ctx1) {$ctx1.fill(self,"onFocusOut:",{aBlock:aBlock}, smalltalk.TagBrush)})}
  2032. }),
  2033. smalltalk.TagBrush);
  2034. smalltalk.addMethod(
  2035. "_onHover_",
  2036. smalltalk.method({
  2037. selector: "onHover:",
  2038. fn: function (aBlock){
  2039. var self=this;
  2040. return smalltalk.withContext(function($ctx1) { _st(_st(self)._asJQuery())._bind_do_("hover",aBlock);
  2041. return self}, function($ctx1) {$ctx1.fill(self,"onHover:",{aBlock:aBlock}, smalltalk.TagBrush)})}
  2042. }),
  2043. smalltalk.TagBrush);
  2044. smalltalk.addMethod(
  2045. "_onKeyDown_",
  2046. smalltalk.method({
  2047. selector: "onKeyDown:",
  2048. fn: function (aBlock){
  2049. var self=this;
  2050. return smalltalk.withContext(function($ctx1) { _st(_st(self)._asJQuery())._bind_do_("keydown",aBlock);
  2051. return self}, function($ctx1) {$ctx1.fill(self,"onKeyDown:",{aBlock:aBlock}, smalltalk.TagBrush)})}
  2052. }),
  2053. smalltalk.TagBrush);
  2054. smalltalk.addMethod(
  2055. "_onKeyPress_",
  2056. smalltalk.method({
  2057. selector: "onKeyPress:",
  2058. fn: function (aBlock){
  2059. var self=this;
  2060. return smalltalk.withContext(function($ctx1) { _st(_st(self)._asJQuery())._bind_do_("keypress",aBlock);
  2061. return self}, function($ctx1) {$ctx1.fill(self,"onKeyPress:",{aBlock:aBlock}, smalltalk.TagBrush)})}
  2062. }),
  2063. smalltalk.TagBrush);
  2064. smalltalk.addMethod(
  2065. "_onKeyUp_",
  2066. smalltalk.method({
  2067. selector: "onKeyUp:",
  2068. fn: function (aBlock){
  2069. var self=this;
  2070. return smalltalk.withContext(function($ctx1) { _st(_st(self)._asJQuery())._bind_do_("keyup",aBlock);
  2071. return self}, function($ctx1) {$ctx1.fill(self,"onKeyUp:",{aBlock:aBlock}, smalltalk.TagBrush)})}
  2072. }),
  2073. smalltalk.TagBrush);
  2074. smalltalk.addMethod(
  2075. "_onMouseDown_",
  2076. smalltalk.method({
  2077. selector: "onMouseDown:",
  2078. fn: function (aBlock){
  2079. var self=this;
  2080. return smalltalk.withContext(function($ctx1) { _st(_st(self)._asJQuery())._bind_do_("mousedown",aBlock);
  2081. return self}, function($ctx1) {$ctx1.fill(self,"onMouseDown:",{aBlock:aBlock}, smalltalk.TagBrush)})}
  2082. }),
  2083. smalltalk.TagBrush);
  2084. smalltalk.addMethod(
  2085. "_onMouseEnter_",
  2086. smalltalk.method({
  2087. selector: "onMouseEnter:",
  2088. fn: function (aBlock){
  2089. var self=this;
  2090. return smalltalk.withContext(function($ctx1) { _st(_st(self)._asJQuery())._bind_do_("mouseenter",aBlock);
  2091. return self}, function($ctx1) {$ctx1.fill(self,"onMouseEnter:",{aBlock:aBlock}, smalltalk.TagBrush)})}
  2092. }),
  2093. smalltalk.TagBrush);
  2094. smalltalk.addMethod(
  2095. "_onMouseLeave_",
  2096. smalltalk.method({
  2097. selector: "onMouseLeave:",
  2098. fn: function (aBlock){
  2099. var self=this;
  2100. return smalltalk.withContext(function($ctx1) { _st(_st(self)._asJQuery())._bind_do_("mouseleave",aBlock);
  2101. return self}, function($ctx1) {$ctx1.fill(self,"onMouseLeave:",{aBlock:aBlock}, smalltalk.TagBrush)})}
  2102. }),
  2103. smalltalk.TagBrush);
  2104. smalltalk.addMethod(
  2105. "_onMouseMove_",
  2106. smalltalk.method({
  2107. selector: "onMouseMove:",
  2108. fn: function (aBlock){
  2109. var self=this;
  2110. return smalltalk.withContext(function($ctx1) { _st(_st(self)._asJQuery())._bind_do_("mousemove",aBlock);
  2111. return self}, function($ctx1) {$ctx1.fill(self,"onMouseMove:",{aBlock:aBlock}, smalltalk.TagBrush)})}
  2112. }),
  2113. smalltalk.TagBrush);
  2114. smalltalk.addMethod(
  2115. "_onMouseOut_",
  2116. smalltalk.method({
  2117. selector: "onMouseOut:",
  2118. fn: function (aBlock){
  2119. var self=this;
  2120. return smalltalk.withContext(function($ctx1) { _st(_st(self)._asJQuery())._bind_do_("mouseout",aBlock);
  2121. return self}, function($ctx1) {$ctx1.fill(self,"onMouseOut:",{aBlock:aBlock}, smalltalk.TagBrush)})}
  2122. }),
  2123. smalltalk.TagBrush);
  2124. smalltalk.addMethod(
  2125. "_onMouseOver_",
  2126. smalltalk.method({
  2127. selector: "onMouseOver:",
  2128. fn: function (aBlock){
  2129. var self=this;
  2130. return smalltalk.withContext(function($ctx1) { _st(_st(self)._asJQuery())._bind_do_("mouseover",aBlock);
  2131. return self}, function($ctx1) {$ctx1.fill(self,"onMouseOver:",{aBlock:aBlock}, smalltalk.TagBrush)})}
  2132. }),
  2133. smalltalk.TagBrush);
  2134. smalltalk.addMethod(
  2135. "_onMouseUp_",
  2136. smalltalk.method({
  2137. selector: "onMouseUp:",
  2138. fn: function (aBlock){
  2139. var self=this;
  2140. return smalltalk.withContext(function($ctx1) { _st(_st(self)._asJQuery())._bind_do_("mouseup",aBlock);
  2141. return self}, function($ctx1) {$ctx1.fill(self,"onMouseUp:",{aBlock:aBlock}, smalltalk.TagBrush)})}
  2142. }),
  2143. smalltalk.TagBrush);
  2144. smalltalk.addMethod(
  2145. "_onSelect_",
  2146. smalltalk.method({
  2147. selector: "onSelect:",
  2148. fn: function (aBlock){
  2149. var self=this;
  2150. return smalltalk.withContext(function($ctx1) { _st(_st(self)._asJQuery())._bind_do_("select",aBlock);
  2151. return self}, function($ctx1) {$ctx1.fill(self,"onSelect:",{aBlock:aBlock}, smalltalk.TagBrush)})}
  2152. }),
  2153. smalltalk.TagBrush);
  2154. smalltalk.addMethod(
  2155. "_onSubmit_",
  2156. smalltalk.method({
  2157. selector: "onSubmit:",
  2158. fn: function (aBlock){
  2159. var self=this;
  2160. return smalltalk.withContext(function($ctx1) { _st(_st(self)._asJQuery())._bind_do_("submit",aBlock);
  2161. return self}, function($ctx1) {$ctx1.fill(self,"onSubmit:",{aBlock:aBlock}, smalltalk.TagBrush)})}
  2162. }),
  2163. smalltalk.TagBrush);
  2164. smalltalk.addMethod(
  2165. "_onUnload_",
  2166. smalltalk.method({
  2167. selector: "onUnload:",
  2168. fn: function (aBlock){
  2169. var self=this;
  2170. return smalltalk.withContext(function($ctx1) { _st(_st(self)._asJQuery())._bind_do_("unload",aBlock);
  2171. return self}, function($ctx1) {$ctx1.fill(self,"onUnload:",{aBlock:aBlock}, smalltalk.TagBrush)})}
  2172. }),
  2173. smalltalk.TagBrush);
  2174. smalltalk.addMethod(
  2175. "_placeholder_",
  2176. smalltalk.method({
  2177. selector: "placeholder:",
  2178. fn: function (aString){
  2179. var self=this;
  2180. return smalltalk.withContext(function($ctx1) { _st(self)._at_put_("placeholder",aString);
  2181. return self}, function($ctx1) {$ctx1.fill(self,"placeholder:",{aString:aString}, smalltalk.TagBrush)})}
  2182. }),
  2183. smalltalk.TagBrush);
  2184. smalltalk.addMethod(
  2185. "_rel_",
  2186. smalltalk.method({
  2187. selector: "rel:",
  2188. fn: function (aString){
  2189. var self=this;
  2190. return smalltalk.withContext(function($ctx1) { _st(self)._at_put_("rel",aString);
  2191. return self}, function($ctx1) {$ctx1.fill(self,"rel:",{aString:aString}, smalltalk.TagBrush)})}
  2192. }),
  2193. smalltalk.TagBrush);
  2194. smalltalk.addMethod(
  2195. "_removeAt_",
  2196. smalltalk.method({
  2197. selector: "removeAt:",
  2198. fn: function (aString){
  2199. var self=this;
  2200. return smalltalk.withContext(function($ctx1) { self['@element'].removeAttribute(aString);
  2201. return self}, function($ctx1) {$ctx1.fill(self,"removeAt:",{aString:aString}, smalltalk.TagBrush)})}
  2202. }),
  2203. smalltalk.TagBrush);
  2204. smalltalk.addMethod(
  2205. "_rows_",
  2206. smalltalk.method({
  2207. selector: "rows:",
  2208. fn: function (aString){
  2209. var self=this;
  2210. return smalltalk.withContext(function($ctx1) { _st(self)._at_put_("rows",aString);
  2211. return self}, function($ctx1) {$ctx1.fill(self,"rows:",{aString:aString}, smalltalk.TagBrush)})}
  2212. }),
  2213. smalltalk.TagBrush);
  2214. smalltalk.addMethod(
  2215. "_src_",
  2216. smalltalk.method({
  2217. selector: "src:",
  2218. fn: function (aString){
  2219. var self=this;
  2220. return smalltalk.withContext(function($ctx1) { _st(self)._at_put_("src",aString);
  2221. return self}, function($ctx1) {$ctx1.fill(self,"src:",{aString:aString}, smalltalk.TagBrush)})}
  2222. }),
  2223. smalltalk.TagBrush);
  2224. smalltalk.addMethod(
  2225. "_style_",
  2226. smalltalk.method({
  2227. selector: "style:",
  2228. fn: function (aString){
  2229. var self=this;
  2230. return smalltalk.withContext(function($ctx1) { _st(self)._at_put_("style",aString);
  2231. return self}, function($ctx1) {$ctx1.fill(self,"style:",{aString:aString}, smalltalk.TagBrush)})}
  2232. }),
  2233. smalltalk.TagBrush);
  2234. smalltalk.addMethod(
  2235. "_tabindex_",
  2236. smalltalk.method({
  2237. selector: "tabindex:",
  2238. fn: function (aNumber){
  2239. var self=this;
  2240. return smalltalk.withContext(function($ctx1) { _st(self)._at_put_("tabindex",aNumber);
  2241. return self}, function($ctx1) {$ctx1.fill(self,"tabindex:",{aNumber:aNumber}, smalltalk.TagBrush)})}
  2242. }),
  2243. smalltalk.TagBrush);
  2244. smalltalk.addMethod(
  2245. "_target_",
  2246. smalltalk.method({
  2247. selector: "target:",
  2248. fn: function (aString){
  2249. var self=this;
  2250. return smalltalk.withContext(function($ctx1) { _st(self)._at_put_("target",aString);
  2251. return self}, function($ctx1) {$ctx1.fill(self,"target:",{aString:aString}, smalltalk.TagBrush)})}
  2252. }),
  2253. smalltalk.TagBrush);
  2254. smalltalk.addMethod(
  2255. "_title_",
  2256. smalltalk.method({
  2257. selector: "title:",
  2258. fn: function (aString){
  2259. var self=this;
  2260. return smalltalk.withContext(function($ctx1) { _st(self)._at_put_("title",aString);
  2261. return self}, function($ctx1) {$ctx1.fill(self,"title:",{aString:aString}, smalltalk.TagBrush)})}
  2262. }),
  2263. smalltalk.TagBrush);
  2264. smalltalk.addMethod(
  2265. "_type_",
  2266. smalltalk.method({
  2267. selector: "type:",
  2268. fn: function (aString){
  2269. var self=this;
  2270. return smalltalk.withContext(function($ctx1) { _st(self)._at_put_("type",aString);
  2271. return self}, function($ctx1) {$ctx1.fill(self,"type:",{aString:aString}, smalltalk.TagBrush)})}
  2272. }),
  2273. smalltalk.TagBrush);
  2274. smalltalk.addMethod(
  2275. "_valign_",
  2276. smalltalk.method({
  2277. selector: "valign:",
  2278. fn: function (aString){
  2279. var self=this;
  2280. return smalltalk.withContext(function($ctx1) { _st(self)._at_put_("valign",aString);
  2281. return self}, function($ctx1) {$ctx1.fill(self,"valign:",{aString:aString}, smalltalk.TagBrush)})}
  2282. }),
  2283. smalltalk.TagBrush);
  2284. smalltalk.addMethod(
  2285. "_value_",
  2286. smalltalk.method({
  2287. selector: "value:",
  2288. fn: function (aString){
  2289. var self=this;
  2290. return smalltalk.withContext(function($ctx1) { _st(self)._at_put_("value",aString);
  2291. return self}, function($ctx1) {$ctx1.fill(self,"value:",{aString:aString}, smalltalk.TagBrush)})}
  2292. }),
  2293. smalltalk.TagBrush);
  2294. smalltalk.addMethod(
  2295. "_width_",
  2296. smalltalk.method({
  2297. selector: "width:",
  2298. fn: function (aString){
  2299. var self=this;
  2300. return smalltalk.withContext(function($ctx1) { _st(self)._at_put_("width",aString);
  2301. return self}, function($ctx1) {$ctx1.fill(self,"width:",{aString:aString}, smalltalk.TagBrush)})}
  2302. }),
  2303. smalltalk.TagBrush);
  2304. smalltalk.addMethod(
  2305. "_with_",
  2306. smalltalk.method({
  2307. selector: "with:",
  2308. fn: function (anObject){
  2309. var self=this;
  2310. return smalltalk.withContext(function($ctx1) { _st(self)._append_(anObject);
  2311. return self}, function($ctx1) {$ctx1.fill(self,"with:",{anObject:anObject}, smalltalk.TagBrush)})}
  2312. }),
  2313. smalltalk.TagBrush);
  2314. smalltalk.addMethod(
  2315. "_fromJQuery_canvas_",
  2316. smalltalk.method({
  2317. selector: "fromJQuery:canvas:",
  2318. fn: function (aJQuery,aCanvas){
  2319. var self=this;
  2320. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  2321. $2=_st(self)._new();
  2322. _st($2)._initializeFromJQuery_canvas_(aJQuery,aCanvas);
  2323. $3=_st($2)._yourself();
  2324. $1=$3;
  2325. return $1;
  2326. }, function($ctx1) {$ctx1.fill(self,"fromJQuery:canvas:",{aJQuery:aJQuery,aCanvas:aCanvas}, smalltalk.TagBrush.klass)})}
  2327. }),
  2328. smalltalk.TagBrush.klass);
  2329. smalltalk.addMethod(
  2330. "_fromString_canvas_",
  2331. smalltalk.method({
  2332. selector: "fromString:canvas:",
  2333. fn: function (aString,aCanvas){
  2334. var self=this;
  2335. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  2336. $2=_st(self)._new();
  2337. _st($2)._initializeFromString_canvas_(aString,aCanvas);
  2338. $3=_st($2)._yourself();
  2339. $1=$3;
  2340. return $1;
  2341. }, function($ctx1) {$ctx1.fill(self,"fromString:canvas:",{aString:aString,aCanvas:aCanvas}, smalltalk.TagBrush.klass)})}
  2342. }),
  2343. smalltalk.TagBrush.klass);
  2344. smalltalk.addClass('StyleTag', smalltalk.TagBrush, ['canvas', 'element'], 'Canvas');
  2345. smalltalk.addMethod(
  2346. "_with_",
  2347. smalltalk.method({
  2348. selector: "with:",
  2349. fn: function (aString){
  2350. var self=this;
  2351. return smalltalk.withContext(function($ctx1) { var $1;
  2352. $1=_st((smalltalk.HTMLCanvas || HTMLCanvas))._isMSIE();
  2353. if(smalltalk.assert($1)){
  2354. _st(_st(_st(self)._element())._styleSheet())._cssText_(aString);
  2355. } else {
  2356. smalltalk.TagBrush.fn.prototype._with_.apply(_st(self), [aString]);
  2357. };
  2358. return self}, function($ctx1) {$ctx1.fill(self,"with:",{aString:aString}, smalltalk.StyleTag)})}
  2359. }),
  2360. smalltalk.StyleTag);
  2361. smalltalk.addMethod(
  2362. "_canvas_",
  2363. smalltalk.method({
  2364. selector: "canvas:",
  2365. fn: function (aCanvas){
  2366. var self=this;
  2367. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  2368. $2=_st(self)._new();
  2369. _st($2)._initializeFromString_canvas_("style",aCanvas);
  2370. $3=_st($2)._yourself();
  2371. $1=$3;
  2372. return $1;
  2373. }, function($ctx1) {$ctx1.fill(self,"canvas:",{aCanvas:aCanvas}, smalltalk.StyleTag.klass)})}
  2374. }),
  2375. smalltalk.StyleTag.klass);
  2376. smalltalk.addClass('Widget', smalltalk.Object, [], 'Canvas');
  2377. smalltalk.addMethod(
  2378. "_appendToBrush_",
  2379. smalltalk.method({
  2380. selector: "appendToBrush:",
  2381. fn: function (aTagBrush){
  2382. var self=this;
  2383. return smalltalk.withContext(function($ctx1) { _st(self)._appendToJQuery_(_st(aTagBrush)._asJQuery());
  2384. return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush}, smalltalk.Widget)})}
  2385. }),
  2386. smalltalk.Widget);
  2387. smalltalk.addMethod(
  2388. "_appendToJQuery_",
  2389. smalltalk.method({
  2390. selector: "appendToJQuery:",
  2391. fn: function (aJQuery){
  2392. var self=this;
  2393. return smalltalk.withContext(function($ctx1) { _st(self)._renderOn_(_st((smalltalk.HTMLCanvas || HTMLCanvas))._onJQuery_(aJQuery));
  2394. return self}, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery}, smalltalk.Widget)})}
  2395. }),
  2396. smalltalk.Widget);
  2397. smalltalk.addMethod(
  2398. "_renderOn_",
  2399. smalltalk.method({
  2400. selector: "renderOn:",
  2401. fn: function (html){
  2402. var self=this;
  2403. return smalltalk.withContext(function($ctx1) { return self}, function($ctx1) {$ctx1.fill(self,"renderOn:",{html:html}, smalltalk.Widget)})}
  2404. }),
  2405. smalltalk.Widget);
  2406. smalltalk.addMethod(
  2407. "_appendToBrush_",
  2408. smalltalk.method({
  2409. selector: "appendToBrush:",
  2410. fn: function (aTagBrush){
  2411. var self=this;
  2412. return smalltalk.withContext(function($ctx1) { _st(aTagBrush)._append_(_st(self)._asString());
  2413. return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush}, smalltalk.Object)})}
  2414. }),
  2415. smalltalk.Object);
  2416. smalltalk.addMethod(
  2417. "_appendToJQuery_",
  2418. smalltalk.method({
  2419. selector: "appendToJQuery:",
  2420. fn: function (aJQuery){
  2421. var self=this;
  2422. return smalltalk.withContext(function($ctx1) { _st(aJQuery)._append_(_st(self)._asString());
  2423. return self}, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery}, smalltalk.Object)})}
  2424. }),
  2425. smalltalk.Object);
  2426. smalltalk.addMethod(
  2427. "_appendToBrush_",
  2428. smalltalk.method({
  2429. selector: "appendToBrush:",
  2430. fn: function (aTagBrush){
  2431. var self=this;
  2432. return smalltalk.withContext(function($ctx1) { _st(aTagBrush)._appendBlock_(self);
  2433. return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush}, smalltalk.BlockClosure)})}
  2434. }),
  2435. smalltalk.BlockClosure);
  2436. smalltalk.addMethod(
  2437. "_appendToJQuery_",
  2438. smalltalk.method({
  2439. selector: "appendToJQuery:",
  2440. fn: function (aJQuery){
  2441. var self=this;
  2442. return smalltalk.withContext(function($ctx1) { _st(self)._value_(_st((smalltalk.HTMLCanvas || HTMLCanvas))._onJQuery_(aJQuery));
  2443. return self}, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery}, smalltalk.BlockClosure)})}
  2444. }),
  2445. smalltalk.BlockClosure);
  2446. smalltalk.addMethod(
  2447. "_asSnippet",
  2448. smalltalk.method({
  2449. selector: "asSnippet",
  2450. fn: function (){
  2451. var self=this;
  2452. return smalltalk.withContext(function($ctx1) { var $1;
  2453. $1=_st(_st((smalltalk.HTMLSnippet || HTMLSnippet))._current())._snippetAt_(_st(self)._asString());
  2454. return $1;
  2455. }, function($ctx1) {$ctx1.fill(self,"asSnippet",{}, smalltalk.CharacterArray)})}
  2456. }),
  2457. smalltalk.CharacterArray);
  2458. smalltalk.addMethod(
  2459. "_appendToBrush_",
  2460. smalltalk.method({
  2461. selector: "appendToBrush:",
  2462. fn: function (aTagBrush){
  2463. var self=this;
  2464. return smalltalk.withContext(function($ctx1) { _st(aTagBrush)._appendString_(self);
  2465. return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush}, smalltalk.String)})}
  2466. }),
  2467. smalltalk.String);
  2468. smalltalk.addMethod(
  2469. "_appendToJQuery_",
  2470. smalltalk.method({
  2471. selector: "appendToJQuery:",
  2472. fn: function (aJQuery){
  2473. var self=this;
  2474. return smalltalk.withContext(function($ctx1) { _st(aJQuery)._append_(self);
  2475. return self}, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery}, smalltalk.String)})}
  2476. }),
  2477. smalltalk.String);
  2478. smalltalk.addMethod(
  2479. "_asJQuery",
  2480. smalltalk.method({
  2481. selector: "asJQuery",
  2482. fn: function (){
  2483. var self=this;
  2484. return smalltalk.withContext(function($ctx1) { return jQuery(String(self));
  2485. return self}, function($ctx1) {$ctx1.fill(self,"asJQuery",{}, smalltalk.String)})}
  2486. }),
  2487. smalltalk.String);
  2488. smalltalk.addMethod(
  2489. "_asJQuery",
  2490. smalltalk.method({
  2491. selector: "asJQuery",
  2492. fn: function (){
  2493. var self=this;
  2494. return smalltalk.withContext(function($ctx1) { return jQuery(self['@jsObject']);
  2495. return self}, function($ctx1) {$ctx1.fill(self,"asJQuery",{}, smalltalk.JSObjectProxy)})}
  2496. }),
  2497. smalltalk.JSObjectProxy);