2
0

Canvas.deploy.js 44 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215
  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.send(self, "_tag_", ["a"]);
  10. return self;}
  11. }),
  12. smalltalk.HTMLCanvas);
  13. smalltalk.addMethod(
  14. "_abbr",
  15. smalltalk.method({
  16. selector: "abbr",
  17. fn: function (){
  18. var self=this;
  19. return smalltalk.send(self, "_tag_", ["abbr"]);
  20. return self;}
  21. }),
  22. smalltalk.HTMLCanvas);
  23. smalltalk.addMethod(
  24. "_address",
  25. smalltalk.method({
  26. selector: "address",
  27. fn: function (){
  28. var self=this;
  29. return smalltalk.send(self, "_tag_", ["address"]);
  30. return self;}
  31. }),
  32. smalltalk.HTMLCanvas);
  33. smalltalk.addMethod(
  34. "_area",
  35. smalltalk.method({
  36. selector: "area",
  37. fn: function (){
  38. var self=this;
  39. return smalltalk.send(self, "_tag_", ["area"]);
  40. return self;}
  41. }),
  42. smalltalk.HTMLCanvas);
  43. smalltalk.addMethod(
  44. "_article",
  45. smalltalk.method({
  46. selector: "article",
  47. fn: function (){
  48. var self=this;
  49. return smalltalk.send(self, "_tag_", ["article"]);
  50. return self;}
  51. }),
  52. smalltalk.HTMLCanvas);
  53. smalltalk.addMethod(
  54. "_aside",
  55. smalltalk.method({
  56. selector: "aside",
  57. fn: function (){
  58. var self=this;
  59. return smalltalk.send(self, "_tag_", ["aside"]);
  60. return self;}
  61. }),
  62. smalltalk.HTMLCanvas);
  63. smalltalk.addMethod(
  64. "_audio",
  65. smalltalk.method({
  66. selector: "audio",
  67. fn: function (){
  68. var self=this;
  69. return smalltalk.send(self, "_tag_", ["audio"]);
  70. return self;}
  71. }),
  72. smalltalk.HTMLCanvas);
  73. smalltalk.addMethod(
  74. "_base",
  75. smalltalk.method({
  76. selector: "base",
  77. fn: function (){
  78. var self=this;
  79. return smalltalk.send(self, "_tag_", ["base"]);
  80. return self;}
  81. }),
  82. smalltalk.HTMLCanvas);
  83. smalltalk.addMethod(
  84. "_blockquote",
  85. smalltalk.method({
  86. selector: "blockquote",
  87. fn: function (){
  88. var self=this;
  89. return smalltalk.send(self, "_tag_", ["blockquote"]);
  90. return self;}
  91. }),
  92. smalltalk.HTMLCanvas);
  93. smalltalk.addMethod(
  94. "_body",
  95. smalltalk.method({
  96. selector: "body",
  97. fn: function (){
  98. var self=this;
  99. return smalltalk.send(self, "_tag_", ["body"]);
  100. return self;}
  101. }),
  102. smalltalk.HTMLCanvas);
  103. smalltalk.addMethod(
  104. "_br",
  105. smalltalk.method({
  106. selector: "br",
  107. fn: function (){
  108. var self=this;
  109. return smalltalk.send(self, "_tag_", ["br"]);
  110. return self;}
  111. }),
  112. smalltalk.HTMLCanvas);
  113. smalltalk.addMethod(
  114. "_button",
  115. smalltalk.method({
  116. selector: "button",
  117. fn: function (){
  118. var self=this;
  119. return smalltalk.send(self, "_tag_", ["button"]);
  120. return self;}
  121. }),
  122. smalltalk.HTMLCanvas);
  123. smalltalk.addMethod(
  124. "_canvas",
  125. smalltalk.method({
  126. selector: "canvas",
  127. fn: function (){
  128. var self=this;
  129. return smalltalk.send(self, "_tag_", ["canvas"]);
  130. return self;}
  131. }),
  132. smalltalk.HTMLCanvas);
  133. smalltalk.addMethod(
  134. "_caption",
  135. smalltalk.method({
  136. selector: "caption",
  137. fn: function (){
  138. var self=this;
  139. return smalltalk.send(self, "_tag_", ["caption"]);
  140. return self;}
  141. }),
  142. smalltalk.HTMLCanvas);
  143. smalltalk.addMethod(
  144. "_cite",
  145. smalltalk.method({
  146. selector: "cite",
  147. fn: function (){
  148. var self=this;
  149. return smalltalk.send(self, "_tag_", ["cite"]);
  150. return self;}
  151. }),
  152. smalltalk.HTMLCanvas);
  153. smalltalk.addMethod(
  154. "_code",
  155. smalltalk.method({
  156. selector: "code",
  157. fn: function (){
  158. var self=this;
  159. return smalltalk.send(self, "_tag_", ["code"]);
  160. return self;}
  161. }),
  162. smalltalk.HTMLCanvas);
  163. smalltalk.addMethod(
  164. "_col",
  165. smalltalk.method({
  166. selector: "col",
  167. fn: function (){
  168. var self=this;
  169. return smalltalk.send(self, "_tag_", ["col"]);
  170. return self;}
  171. }),
  172. smalltalk.HTMLCanvas);
  173. smalltalk.addMethod(
  174. "_colgroup",
  175. smalltalk.method({
  176. selector: "colgroup",
  177. fn: function (){
  178. var self=this;
  179. return smalltalk.send(self, "_tag_", ["colgroup"]);
  180. return self;}
  181. }),
  182. smalltalk.HTMLCanvas);
  183. smalltalk.addMethod(
  184. "_command",
  185. smalltalk.method({
  186. selector: "command",
  187. fn: function (){
  188. var self=this;
  189. return smalltalk.send(self, "_tag_", ["command"]);
  190. return self;}
  191. }),
  192. smalltalk.HTMLCanvas);
  193. smalltalk.addMethod(
  194. "_datalist",
  195. smalltalk.method({
  196. selector: "datalist",
  197. fn: function (){
  198. var self=this;
  199. return smalltalk.send(self, "_tag_", ["datalist"]);
  200. return self;}
  201. }),
  202. smalltalk.HTMLCanvas);
  203. smalltalk.addMethod(
  204. "_dd",
  205. smalltalk.method({
  206. selector: "dd",
  207. fn: function (){
  208. var self=this;
  209. return smalltalk.send(self, "_tag_", ["dd"]);
  210. return self;}
  211. }),
  212. smalltalk.HTMLCanvas);
  213. smalltalk.addMethod(
  214. "_del",
  215. smalltalk.method({
  216. selector: "del",
  217. fn: function (){
  218. var self=this;
  219. return smalltalk.send(self, "_tag_", ["del"]);
  220. return self;}
  221. }),
  222. smalltalk.HTMLCanvas);
  223. smalltalk.addMethod(
  224. "_details",
  225. smalltalk.method({
  226. selector: "details",
  227. fn: function (){
  228. var self=this;
  229. return smalltalk.send(self, "_tag_", ["details"]);
  230. return self;}
  231. }),
  232. smalltalk.HTMLCanvas);
  233. smalltalk.addMethod(
  234. "_div",
  235. smalltalk.method({
  236. selector: "div",
  237. fn: function (){
  238. var self=this;
  239. return smalltalk.send(self, "_tag_", ["div"]);
  240. return self;}
  241. }),
  242. smalltalk.HTMLCanvas);
  243. smalltalk.addMethod(
  244. "_div_",
  245. smalltalk.method({
  246. selector: "div:",
  247. fn: function (aBlock){
  248. var self=this;
  249. return smalltalk.send(smalltalk.send(self, "_div", []), "_with_", [aBlock]);
  250. return self;}
  251. }),
  252. smalltalk.HTMLCanvas);
  253. smalltalk.addMethod(
  254. "_dl",
  255. smalltalk.method({
  256. selector: "dl",
  257. fn: function (){
  258. var self=this;
  259. return smalltalk.send(self, "_tag_", ["dl"]);
  260. return self;}
  261. }),
  262. smalltalk.HTMLCanvas);
  263. smalltalk.addMethod(
  264. "_dt",
  265. smalltalk.method({
  266. selector: "dt",
  267. fn: function (){
  268. var self=this;
  269. return smalltalk.send(self, "_tag_", ["dt"]);
  270. return self;}
  271. }),
  272. smalltalk.HTMLCanvas);
  273. smalltalk.addMethod(
  274. "_em",
  275. smalltalk.method({
  276. selector: "em",
  277. fn: function (){
  278. var self=this;
  279. return smalltalk.send(self, "_tag_", ["em"]);
  280. return self;}
  281. }),
  282. smalltalk.HTMLCanvas);
  283. smalltalk.addMethod(
  284. "_embed",
  285. smalltalk.method({
  286. selector: "embed",
  287. fn: function (){
  288. var self=this;
  289. return smalltalk.send(self, "_tag_", ["embed"]);
  290. return self;}
  291. }),
  292. smalltalk.HTMLCanvas);
  293. smalltalk.addMethod(
  294. "_fieldset",
  295. smalltalk.method({
  296. selector: "fieldset",
  297. fn: function (){
  298. var self=this;
  299. return smalltalk.send(self, "_tag_", ["fieldset"]);
  300. return self;}
  301. }),
  302. smalltalk.HTMLCanvas);
  303. smalltalk.addMethod(
  304. "_figcaption",
  305. smalltalk.method({
  306. selector: "figcaption",
  307. fn: function (){
  308. var self=this;
  309. return smalltalk.send(self, "_tag_", ["figcaption"]);
  310. return self;}
  311. }),
  312. smalltalk.HTMLCanvas);
  313. smalltalk.addMethod(
  314. "_figure",
  315. smalltalk.method({
  316. selector: "figure",
  317. fn: function (){
  318. var self=this;
  319. return smalltalk.send(self, "_tag_", ["figure"]);
  320. return self;}
  321. }),
  322. smalltalk.HTMLCanvas);
  323. smalltalk.addMethod(
  324. "_footer",
  325. smalltalk.method({
  326. selector: "footer",
  327. fn: function (){
  328. var self=this;
  329. return smalltalk.send(self, "_tag_", ["footer"]);
  330. return self;}
  331. }),
  332. smalltalk.HTMLCanvas);
  333. smalltalk.addMethod(
  334. "_form",
  335. smalltalk.method({
  336. selector: "form",
  337. fn: function (){
  338. var self=this;
  339. return smalltalk.send(self, "_tag_", ["form"]);
  340. return self;}
  341. }),
  342. smalltalk.HTMLCanvas);
  343. smalltalk.addMethod(
  344. "_h1",
  345. smalltalk.method({
  346. selector: "h1",
  347. fn: function (){
  348. var self=this;
  349. return smalltalk.send(self, "_tag_", ["h1"]);
  350. return self;}
  351. }),
  352. smalltalk.HTMLCanvas);
  353. smalltalk.addMethod(
  354. "_h1_",
  355. smalltalk.method({
  356. selector: "h1:",
  357. fn: function (anObject){
  358. var self=this;
  359. return smalltalk.send(smalltalk.send(self, "_h1", []), "_with_", [anObject]);
  360. return self;}
  361. }),
  362. smalltalk.HTMLCanvas);
  363. smalltalk.addMethod(
  364. "_h2",
  365. smalltalk.method({
  366. selector: "h2",
  367. fn: function (){
  368. var self=this;
  369. return smalltalk.send(self, "_tag_", ["h2"]);
  370. return self;}
  371. }),
  372. smalltalk.HTMLCanvas);
  373. smalltalk.addMethod(
  374. "_h2_",
  375. smalltalk.method({
  376. selector: "h2:",
  377. fn: function (anObject){
  378. var self=this;
  379. return smalltalk.send(smalltalk.send(self, "_h2", []), "_with_", [anObject]);
  380. return self;}
  381. }),
  382. smalltalk.HTMLCanvas);
  383. smalltalk.addMethod(
  384. "_h3",
  385. smalltalk.method({
  386. selector: "h3",
  387. fn: function (){
  388. var self=this;
  389. return smalltalk.send(self, "_tag_", ["h3"]);
  390. return self;}
  391. }),
  392. smalltalk.HTMLCanvas);
  393. smalltalk.addMethod(
  394. "_h3_",
  395. smalltalk.method({
  396. selector: "h3:",
  397. fn: function (anObject){
  398. var self=this;
  399. return smalltalk.send(smalltalk.send(self, "_h3", []), "_with_", [anObject]);
  400. return self;}
  401. }),
  402. smalltalk.HTMLCanvas);
  403. smalltalk.addMethod(
  404. "_h4",
  405. smalltalk.method({
  406. selector: "h4",
  407. fn: function (){
  408. var self=this;
  409. return smalltalk.send(self, "_tag_", ["h4"]);
  410. return self;}
  411. }),
  412. smalltalk.HTMLCanvas);
  413. smalltalk.addMethod(
  414. "_h4_",
  415. smalltalk.method({
  416. selector: "h4:",
  417. fn: function (anObject){
  418. var self=this;
  419. return smalltalk.send(smalltalk.send(self, "_h4", []), "_with_", [anObject]);
  420. return self;}
  421. }),
  422. smalltalk.HTMLCanvas);
  423. smalltalk.addMethod(
  424. "_h5",
  425. smalltalk.method({
  426. selector: "h5",
  427. fn: function (){
  428. var self=this;
  429. return smalltalk.send(self, "_tag_", ["h5"]);
  430. return self;}
  431. }),
  432. smalltalk.HTMLCanvas);
  433. smalltalk.addMethod(
  434. "_h5_",
  435. smalltalk.method({
  436. selector: "h5:",
  437. fn: function (anObject){
  438. var self=this;
  439. return smalltalk.send(smalltalk.send(self, "_h5", []), "_with_", [anObject]);
  440. return self;}
  441. }),
  442. smalltalk.HTMLCanvas);
  443. smalltalk.addMethod(
  444. "_h6",
  445. smalltalk.method({
  446. selector: "h6",
  447. fn: function (){
  448. var self=this;
  449. return smalltalk.send(self, "_tag_", ["h6"]);
  450. return self;}
  451. }),
  452. smalltalk.HTMLCanvas);
  453. smalltalk.addMethod(
  454. "_h6_",
  455. smalltalk.method({
  456. selector: "h6:",
  457. fn: function (anObject){
  458. var self=this;
  459. return smalltalk.send(smalltalk.send(self, "_h6", []), "_with_", [anObject]);
  460. return self;}
  461. }),
  462. smalltalk.HTMLCanvas);
  463. smalltalk.addMethod(
  464. "_head",
  465. smalltalk.method({
  466. selector: "head",
  467. fn: function (){
  468. var self=this;
  469. return smalltalk.send(self, "_tag_", ["head"]);
  470. return self;}
  471. }),
  472. smalltalk.HTMLCanvas);
  473. smalltalk.addMethod(
  474. "_header",
  475. smalltalk.method({
  476. selector: "header",
  477. fn: function (){
  478. var self=this;
  479. return smalltalk.send(self, "_tag_", ["header"]);
  480. return self;}
  481. }),
  482. smalltalk.HTMLCanvas);
  483. smalltalk.addMethod(
  484. "_hgroup",
  485. smalltalk.method({
  486. selector: "hgroup",
  487. fn: function (){
  488. var self=this;
  489. return smalltalk.send(self, "_tag_", ["hgroup"]);
  490. return self;}
  491. }),
  492. smalltalk.HTMLCanvas);
  493. smalltalk.addMethod(
  494. "_hr",
  495. smalltalk.method({
  496. selector: "hr",
  497. fn: function (){
  498. var self=this;
  499. return smalltalk.send(self, "_tag_", ["hr"]);
  500. return self;}
  501. }),
  502. smalltalk.HTMLCanvas);
  503. smalltalk.addMethod(
  504. "_html",
  505. smalltalk.method({
  506. selector: "html",
  507. fn: function (){
  508. var self=this;
  509. return smalltalk.send(self, "_tag_", ["html"]);
  510. return self;}
  511. }),
  512. smalltalk.HTMLCanvas);
  513. smalltalk.addMethod(
  514. "_iframe",
  515. smalltalk.method({
  516. selector: "iframe",
  517. fn: function (){
  518. var self=this;
  519. return smalltalk.send(self, "_tag_", ["iframe"]);
  520. return self;}
  521. }),
  522. smalltalk.HTMLCanvas);
  523. smalltalk.addMethod(
  524. "_iframe_",
  525. smalltalk.method({
  526. selector: "iframe:",
  527. fn: function (aString){
  528. var self=this;
  529. return smalltalk.send(smalltalk.send(self, "_iframe", []), "_src_", [aString]);
  530. return self;}
  531. }),
  532. smalltalk.HTMLCanvas);
  533. smalltalk.addMethod(
  534. "_img",
  535. smalltalk.method({
  536. selector: "img",
  537. fn: function (){
  538. var self=this;
  539. return smalltalk.send(self, "_tag_", ["img"]);
  540. return self;}
  541. }),
  542. smalltalk.HTMLCanvas);
  543. smalltalk.addMethod(
  544. "_img_",
  545. smalltalk.method({
  546. selector: "img:",
  547. fn: function (aString){
  548. var self=this;
  549. return smalltalk.send(smalltalk.send(self, "_img", []), "_src_", [aString]);
  550. return self;}
  551. }),
  552. smalltalk.HTMLCanvas);
  553. smalltalk.addMethod(
  554. "_initialize",
  555. smalltalk.method({
  556. selector: "initialize",
  557. fn: function (){
  558. var self=this;
  559. smalltalk.send(self, "_initialize", [], smalltalk.HTMLCanvas.superclass || nil);
  560. (($receiver = self['@root']) == nil || $receiver == undefined) ? (function(){return (self['@root']=smalltalk.send((smalltalk.TagBrush || TagBrush), "_fromString_canvas_", ["div", self]));})() : $receiver;
  561. return self;}
  562. }),
  563. smalltalk.HTMLCanvas);
  564. smalltalk.addMethod(
  565. "_initializeFromJQuery_",
  566. smalltalk.method({
  567. selector: "initializeFromJQuery:",
  568. fn: function (aJQuery){
  569. var self=this;
  570. (self['@root']=smalltalk.send((smalltalk.TagBrush || TagBrush), "_fromJQuery_canvas_", [aJQuery, self]));
  571. return self;}
  572. }),
  573. smalltalk.HTMLCanvas);
  574. smalltalk.addMethod(
  575. "_input",
  576. smalltalk.method({
  577. selector: "input",
  578. fn: function (){
  579. var self=this;
  580. return smalltalk.send(self, "_tag_", ["input"]);
  581. return self;}
  582. }),
  583. smalltalk.HTMLCanvas);
  584. smalltalk.addMethod(
  585. "_label",
  586. smalltalk.method({
  587. selector: "label",
  588. fn: function (){
  589. var self=this;
  590. return smalltalk.send(self, "_tag_", ["label"]);
  591. return self;}
  592. }),
  593. smalltalk.HTMLCanvas);
  594. smalltalk.addMethod(
  595. "_legend",
  596. smalltalk.method({
  597. selector: "legend",
  598. fn: function (){
  599. var self=this;
  600. return smalltalk.send(self, "_tag_", ["legend"]);
  601. return self;}
  602. }),
  603. smalltalk.HTMLCanvas);
  604. smalltalk.addMethod(
  605. "_li",
  606. smalltalk.method({
  607. selector: "li",
  608. fn: function (){
  609. var self=this;
  610. return smalltalk.send(self, "_tag_", ["li"]);
  611. return self;}
  612. }),
  613. smalltalk.HTMLCanvas);
  614. smalltalk.addMethod(
  615. "_li_",
  616. smalltalk.method({
  617. selector: "li:",
  618. fn: function (anObject){
  619. var self=this;
  620. return smalltalk.send(smalltalk.send(self, "_li", []), "_with_", [anObject]);
  621. return self;}
  622. }),
  623. smalltalk.HTMLCanvas);
  624. smalltalk.addMethod(
  625. "_link",
  626. smalltalk.method({
  627. selector: "link",
  628. fn: function (){
  629. var self=this;
  630. return smalltalk.send(self, "_tag_", ["link"]);
  631. return self;}
  632. }),
  633. smalltalk.HTMLCanvas);
  634. smalltalk.addMethod(
  635. "_map",
  636. smalltalk.method({
  637. selector: "map",
  638. fn: function (){
  639. var self=this;
  640. return smalltalk.send(self, "_tag_", ["map"]);
  641. return self;}
  642. }),
  643. smalltalk.HTMLCanvas);
  644. smalltalk.addMethod(
  645. "_mark",
  646. smalltalk.method({
  647. selector: "mark",
  648. fn: function (){
  649. var self=this;
  650. return smalltalk.send(self, "_tag_", ["mark"]);
  651. return self;}
  652. }),
  653. smalltalk.HTMLCanvas);
  654. smalltalk.addMethod(
  655. "_menu",
  656. smalltalk.method({
  657. selector: "menu",
  658. fn: function (){
  659. var self=this;
  660. return smalltalk.send(self, "_tag_", ["menu"]);
  661. return self;}
  662. }),
  663. smalltalk.HTMLCanvas);
  664. smalltalk.addMethod(
  665. "_meta",
  666. smalltalk.method({
  667. selector: "meta",
  668. fn: function (){
  669. var self=this;
  670. return smalltalk.send(self, "_tag_", ["meta"]);
  671. return self;}
  672. }),
  673. smalltalk.HTMLCanvas);
  674. smalltalk.addMethod(
  675. "_nav",
  676. smalltalk.method({
  677. selector: "nav",
  678. fn: function (){
  679. var self=this;
  680. return smalltalk.send(self, "_tag_", ["nav"]);
  681. return self;}
  682. }),
  683. smalltalk.HTMLCanvas);
  684. smalltalk.addMethod(
  685. "_newTag_",
  686. smalltalk.method({
  687. selector: "newTag:",
  688. fn: function (aString){
  689. var self=this;
  690. return smalltalk.send((smalltalk.TagBrush || TagBrush), "_fromString_canvas_", [aString, self]);
  691. return self;}
  692. }),
  693. smalltalk.HTMLCanvas);
  694. smalltalk.addMethod(
  695. "_noscript",
  696. smalltalk.method({
  697. selector: "noscript",
  698. fn: function (){
  699. var self=this;
  700. return smalltalk.send(self, "_tag_", ["noscript"]);
  701. return self;}
  702. }),
  703. smalltalk.HTMLCanvas);
  704. smalltalk.addMethod(
  705. "_object",
  706. smalltalk.method({
  707. selector: "object",
  708. fn: function (){
  709. var self=this;
  710. return smalltalk.send(self, "_tag_", ["object"]);
  711. return self;}
  712. }),
  713. smalltalk.HTMLCanvas);
  714. smalltalk.addMethod(
  715. "_ol",
  716. smalltalk.method({
  717. selector: "ol",
  718. fn: function (){
  719. var self=this;
  720. return smalltalk.send(self, "_tag_", ["ol"]);
  721. return self;}
  722. }),
  723. smalltalk.HTMLCanvas);
  724. smalltalk.addMethod(
  725. "_ol_",
  726. smalltalk.method({
  727. selector: "ol:",
  728. fn: function (anObject){
  729. var self=this;
  730. return smalltalk.send(smalltalk.send(self, "_ol", []), "_with_", [anObject]);
  731. return self;}
  732. }),
  733. smalltalk.HTMLCanvas);
  734. smalltalk.addMethod(
  735. "_optgroup",
  736. smalltalk.method({
  737. selector: "optgroup",
  738. fn: function (){
  739. var self=this;
  740. return smalltalk.send(self, "_tag_", ["optgroup"]);
  741. return self;}
  742. }),
  743. smalltalk.HTMLCanvas);
  744. smalltalk.addMethod(
  745. "_option",
  746. smalltalk.method({
  747. selector: "option",
  748. fn: function (){
  749. var self=this;
  750. return smalltalk.send(self, "_tag_", ["option"]);
  751. return self;}
  752. }),
  753. smalltalk.HTMLCanvas);
  754. smalltalk.addMethod(
  755. "_output",
  756. smalltalk.method({
  757. selector: "output",
  758. fn: function (){
  759. var self=this;
  760. return smalltalk.send(self, "_tag_", ["output"]);
  761. return self;}
  762. }),
  763. smalltalk.HTMLCanvas);
  764. smalltalk.addMethod(
  765. "_p",
  766. smalltalk.method({
  767. selector: "p",
  768. fn: function (){
  769. var self=this;
  770. return smalltalk.send(self, "_tag_", ["p"]);
  771. return self;}
  772. }),
  773. smalltalk.HTMLCanvas);
  774. smalltalk.addMethod(
  775. "_p_",
  776. smalltalk.method({
  777. selector: "p:",
  778. fn: function (anObject){
  779. var self=this;
  780. return smalltalk.send(smalltalk.send(self, "_p", []), "_with_", [anObject]);
  781. return self;}
  782. }),
  783. smalltalk.HTMLCanvas);
  784. smalltalk.addMethod(
  785. "_param",
  786. smalltalk.method({
  787. selector: "param",
  788. fn: function (){
  789. var self=this;
  790. return smalltalk.send(self, "_tag_", ["param"]);
  791. return self;}
  792. }),
  793. smalltalk.HTMLCanvas);
  794. smalltalk.addMethod(
  795. "_pre",
  796. smalltalk.method({
  797. selector: "pre",
  798. fn: function (){
  799. var self=this;
  800. return smalltalk.send(self, "_tag_", ["pre"]);
  801. return self;}
  802. }),
  803. smalltalk.HTMLCanvas);
  804. smalltalk.addMethod(
  805. "_progress",
  806. smalltalk.method({
  807. selector: "progress",
  808. fn: function (){
  809. var self=this;
  810. return smalltalk.send(self, "_tag_", ["progress"]);
  811. return self;}
  812. }),
  813. smalltalk.HTMLCanvas);
  814. smalltalk.addMethod(
  815. "_root",
  816. smalltalk.method({
  817. selector: "root",
  818. fn: function (){
  819. var self=this;
  820. return self['@root'];
  821. return self;}
  822. }),
  823. smalltalk.HTMLCanvas);
  824. smalltalk.addMethod(
  825. "_root_",
  826. smalltalk.method({
  827. selector: "root:",
  828. fn: function (aTagBrush){
  829. var self=this;
  830. (self['@root']=aTagBrush);
  831. return self;}
  832. }),
  833. smalltalk.HTMLCanvas);
  834. smalltalk.addMethod(
  835. "_script",
  836. smalltalk.method({
  837. selector: "script",
  838. fn: function (){
  839. var self=this;
  840. return smalltalk.send(self, "_tag_", ["script"]);
  841. return self;}
  842. }),
  843. smalltalk.HTMLCanvas);
  844. smalltalk.addMethod(
  845. "_section",
  846. smalltalk.method({
  847. selector: "section",
  848. fn: function (){
  849. var self=this;
  850. return smalltalk.send(self, "_tag_", ["section"]);
  851. return self;}
  852. }),
  853. smalltalk.HTMLCanvas);
  854. smalltalk.addMethod(
  855. "_select",
  856. smalltalk.method({
  857. selector: "select",
  858. fn: function (){
  859. var self=this;
  860. return smalltalk.send(self, "_tag_", ["select"]);
  861. return self;}
  862. }),
  863. smalltalk.HTMLCanvas);
  864. smalltalk.addMethod(
  865. "_small",
  866. smalltalk.method({
  867. selector: "small",
  868. fn: function (){
  869. var self=this;
  870. return smalltalk.send(self, "_tag_", ["small"]);
  871. return self;}
  872. }),
  873. smalltalk.HTMLCanvas);
  874. smalltalk.addMethod(
  875. "_source",
  876. smalltalk.method({
  877. selector: "source",
  878. fn: function (){
  879. var self=this;
  880. return smalltalk.send(self, "_tag_", ["source"]);
  881. return self;}
  882. }),
  883. smalltalk.HTMLCanvas);
  884. smalltalk.addMethod(
  885. "_span",
  886. smalltalk.method({
  887. selector: "span",
  888. fn: function (){
  889. var self=this;
  890. return smalltalk.send(self, "_tag_", ["span"]);
  891. return self;}
  892. }),
  893. smalltalk.HTMLCanvas);
  894. smalltalk.addMethod(
  895. "_span_",
  896. smalltalk.method({
  897. selector: "span:",
  898. fn: function (anObject){
  899. var self=this;
  900. return smalltalk.send(smalltalk.send(self, "_span", []), "_with_", [anObject]);
  901. return self;}
  902. }),
  903. smalltalk.HTMLCanvas);
  904. smalltalk.addMethod(
  905. "_strong",
  906. smalltalk.method({
  907. selector: "strong",
  908. fn: function (){
  909. var self=this;
  910. return smalltalk.send(self, "_tag_", ["strong"]);
  911. return self;}
  912. }),
  913. smalltalk.HTMLCanvas);
  914. smalltalk.addMethod(
  915. "_strong_",
  916. smalltalk.method({
  917. selector: "strong:",
  918. fn: function (anObject){
  919. var self=this;
  920. return smalltalk.send(smalltalk.send(self, "_strong", []), "_with_", [anObject]);
  921. return self;}
  922. }),
  923. smalltalk.HTMLCanvas);
  924. smalltalk.addMethod(
  925. "_style",
  926. smalltalk.method({
  927. selector: "style",
  928. fn: function (){
  929. var self=this;
  930. return smalltalk.send(self['@root'], "_addBrush_", [smalltalk.send((smalltalk.StyleTag || StyleTag), "_canvas_", [self])]);
  931. return self;}
  932. }),
  933. smalltalk.HTMLCanvas);
  934. smalltalk.addMethod(
  935. "_style_",
  936. smalltalk.method({
  937. selector: "style:",
  938. fn: function (aString){
  939. var self=this;
  940. return (function($rec){smalltalk.send($rec, "_with_", [aString]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_style", []));
  941. return self;}
  942. }),
  943. smalltalk.HTMLCanvas);
  944. smalltalk.addMethod(
  945. "_sub",
  946. smalltalk.method({
  947. selector: "sub",
  948. fn: function (){
  949. var self=this;
  950. return smalltalk.send(self, "_tag_", ["sub"]);
  951. return self;}
  952. }),
  953. smalltalk.HTMLCanvas);
  954. smalltalk.addMethod(
  955. "_summary",
  956. smalltalk.method({
  957. selector: "summary",
  958. fn: function (){
  959. var self=this;
  960. return smalltalk.send(self, "_tag_", ["summary"]);
  961. return self;}
  962. }),
  963. smalltalk.HTMLCanvas);
  964. smalltalk.addMethod(
  965. "_sup",
  966. smalltalk.method({
  967. selector: "sup",
  968. fn: function (){
  969. var self=this;
  970. return smalltalk.send(self, "_tag_", ["sup"]);
  971. return self;}
  972. }),
  973. smalltalk.HTMLCanvas);
  974. smalltalk.addMethod(
  975. "_table",
  976. smalltalk.method({
  977. selector: "table",
  978. fn: function (){
  979. var self=this;
  980. return smalltalk.send(self, "_tag_", ["table"]);
  981. return self;}
  982. }),
  983. smalltalk.HTMLCanvas);
  984. smalltalk.addMethod(
  985. "_tag_",
  986. smalltalk.method({
  987. selector: "tag:",
  988. fn: function (aString){
  989. var self=this;
  990. return smalltalk.send(self['@root'], "_addBrush_", [smalltalk.send(self, "_newTag_", [aString])]);
  991. return self;}
  992. }),
  993. smalltalk.HTMLCanvas);
  994. smalltalk.addMethod(
  995. "_tbody",
  996. smalltalk.method({
  997. selector: "tbody",
  998. fn: function (){
  999. var self=this;
  1000. return smalltalk.send(self, "_tag_", ["tbody"]);
  1001. return self;}
  1002. }),
  1003. smalltalk.HTMLCanvas);
  1004. smalltalk.addMethod(
  1005. "_td",
  1006. smalltalk.method({
  1007. selector: "td",
  1008. fn: function (){
  1009. var self=this;
  1010. return smalltalk.send(self, "_tag_", ["td"]);
  1011. return self;}
  1012. }),
  1013. smalltalk.HTMLCanvas);
  1014. smalltalk.addMethod(
  1015. "_textarea",
  1016. smalltalk.method({
  1017. selector: "textarea",
  1018. fn: function (){
  1019. var self=this;
  1020. return smalltalk.send(self, "_tag_", ["textarea"]);
  1021. return self;}
  1022. }),
  1023. smalltalk.HTMLCanvas);
  1024. smalltalk.addMethod(
  1025. "_tfoot",
  1026. smalltalk.method({
  1027. selector: "tfoot",
  1028. fn: function (){
  1029. var self=this;
  1030. return smalltalk.send(self, "_tag_", ["tfoot"]);
  1031. return self;}
  1032. }),
  1033. smalltalk.HTMLCanvas);
  1034. smalltalk.addMethod(
  1035. "_th",
  1036. smalltalk.method({
  1037. selector: "th",
  1038. fn: function (){
  1039. var self=this;
  1040. return smalltalk.send(self, "_tag_", ["th"]);
  1041. return self;}
  1042. }),
  1043. smalltalk.HTMLCanvas);
  1044. smalltalk.addMethod(
  1045. "_thead",
  1046. smalltalk.method({
  1047. selector: "thead",
  1048. fn: function (){
  1049. var self=this;
  1050. return smalltalk.send(self, "_tag_", ["thead"]);
  1051. return self;}
  1052. }),
  1053. smalltalk.HTMLCanvas);
  1054. smalltalk.addMethod(
  1055. "_time",
  1056. smalltalk.method({
  1057. selector: "time",
  1058. fn: function (){
  1059. var self=this;
  1060. return smalltalk.send(self, "_tag_", ["time"]);
  1061. return self;}
  1062. }),
  1063. smalltalk.HTMLCanvas);
  1064. smalltalk.addMethod(
  1065. "_title",
  1066. smalltalk.method({
  1067. selector: "title",
  1068. fn: function (){
  1069. var self=this;
  1070. return smalltalk.send(self, "_tag_", ["title"]);
  1071. return self;}
  1072. }),
  1073. smalltalk.HTMLCanvas);
  1074. smalltalk.addMethod(
  1075. "_tr",
  1076. smalltalk.method({
  1077. selector: "tr",
  1078. fn: function (){
  1079. var self=this;
  1080. return smalltalk.send(self, "_tag_", ["tr"]);
  1081. return self;}
  1082. }),
  1083. smalltalk.HTMLCanvas);
  1084. smalltalk.addMethod(
  1085. "_ul",
  1086. smalltalk.method({
  1087. selector: "ul",
  1088. fn: function (){
  1089. var self=this;
  1090. return smalltalk.send(self, "_tag_", ["ul"]);
  1091. return self;}
  1092. }),
  1093. smalltalk.HTMLCanvas);
  1094. smalltalk.addMethod(
  1095. "_ul_",
  1096. smalltalk.method({
  1097. selector: "ul:",
  1098. fn: function (anObject){
  1099. var self=this;
  1100. return smalltalk.send(smalltalk.send(self, "_ul", []), "_with_", [anObject]);
  1101. return self;}
  1102. }),
  1103. smalltalk.HTMLCanvas);
  1104. smalltalk.addMethod(
  1105. "_video",
  1106. smalltalk.method({
  1107. selector: "video",
  1108. fn: function (){
  1109. var self=this;
  1110. return smalltalk.send(self, "_tag_", ["video"]);
  1111. return self;}
  1112. }),
  1113. smalltalk.HTMLCanvas);
  1114. smalltalk.addMethod(
  1115. "_with_",
  1116. smalltalk.method({
  1117. selector: "with:",
  1118. fn: function (anObject){
  1119. var self=this;
  1120. return smalltalk.send(smalltalk.send(self, "_root", []), "_with_", [anObject]);
  1121. return self;}
  1122. }),
  1123. smalltalk.HTMLCanvas);
  1124. smalltalk.addMethod(
  1125. "_browserVersion",
  1126. smalltalk.method({
  1127. selector: "browserVersion",
  1128. fn: function (){
  1129. var self=this;
  1130. return smalltalk.send(smalltalk.send((typeof jQuery == 'undefined' ? nil : jQuery), "_at_", [smalltalk.symbolFor("browser")]), "_version", []);
  1131. return self;}
  1132. }),
  1133. smalltalk.HTMLCanvas.klass);
  1134. smalltalk.addMethod(
  1135. "_isMSIE",
  1136. smalltalk.method({
  1137. selector: "isMSIE",
  1138. fn: function (){
  1139. var self=this;
  1140. return smalltalk.send(smalltalk.send(smalltalk.send((typeof jQuery == 'undefined' ? nil : jQuery), "_at_", [smalltalk.symbolFor("browser")]), "_at_", [smalltalk.symbolFor("msie")]), "_notNil", []);
  1141. return self;}
  1142. }),
  1143. smalltalk.HTMLCanvas.klass);
  1144. smalltalk.addMethod(
  1145. "_isMozilla",
  1146. smalltalk.method({
  1147. selector: "isMozilla",
  1148. fn: function (){
  1149. var self=this;
  1150. return smalltalk.send(smalltalk.send(smalltalk.send((typeof jQuery == 'undefined' ? nil : jQuery), "_at_", [smalltalk.symbolFor("browser")]), "_at_", [smalltalk.symbolFor("mozilla")]), "_notNil", []);
  1151. return self;}
  1152. }),
  1153. smalltalk.HTMLCanvas.klass);
  1154. smalltalk.addMethod(
  1155. "_isOpera",
  1156. smalltalk.method({
  1157. selector: "isOpera",
  1158. fn: function (){
  1159. var self=this;
  1160. return smalltalk.send(smalltalk.send(smalltalk.send((typeof jQuery == 'undefined' ? nil : jQuery), "_at_", [smalltalk.symbolFor("browser")]), "_at_", [smalltalk.symbolFor("opera")]), "_notNil", []);
  1161. return self;}
  1162. }),
  1163. smalltalk.HTMLCanvas.klass);
  1164. smalltalk.addMethod(
  1165. "_isWebkit",
  1166. smalltalk.method({
  1167. selector: "isWebkit",
  1168. fn: function (){
  1169. var self=this;
  1170. return smalltalk.send(smalltalk.send(smalltalk.send((typeof jQuery == 'undefined' ? nil : jQuery), "_at_", [smalltalk.symbolFor("browser")]), "_at_", [smalltalk.symbolFor("webkit")]), "_notNil", []);
  1171. return self;}
  1172. }),
  1173. smalltalk.HTMLCanvas.klass);
  1174. smalltalk.addMethod(
  1175. "_onJQuery_",
  1176. smalltalk.method({
  1177. selector: "onJQuery:",
  1178. fn: function (aJQuery){
  1179. var self=this;
  1180. return (function($rec){smalltalk.send($rec, "_initializeFromJQuery_", [aJQuery]);smalltalk.send($rec, "_initialize", []);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_basicNew", []));
  1181. return self;}
  1182. }),
  1183. smalltalk.HTMLCanvas.klass);
  1184. smalltalk.addClass('TagBrush', smalltalk.Object, ['canvas', 'element'], 'Canvas');
  1185. smalltalk.addMethod(
  1186. "_accesskey_",
  1187. smalltalk.method({
  1188. selector: "accesskey:",
  1189. fn: function (aString){
  1190. var self=this;
  1191. smalltalk.send(self, "_at_put_", ["accesskey", aString]);
  1192. return self;}
  1193. }),
  1194. smalltalk.TagBrush);
  1195. smalltalk.addMethod(
  1196. "_action_",
  1197. smalltalk.method({
  1198. selector: "action:",
  1199. fn: function (aString){
  1200. var self=this;
  1201. smalltalk.send(self, "_at_put_", ["action", aString]);
  1202. return self;}
  1203. }),
  1204. smalltalk.TagBrush);
  1205. smalltalk.addMethod(
  1206. "_addBrush_",
  1207. smalltalk.method({
  1208. selector: "addBrush:",
  1209. fn: function (aTagBrush){
  1210. var self=this;
  1211. smalltalk.send(self, "_appendChild_", [smalltalk.send(aTagBrush, "_element", [])]);
  1212. return aTagBrush;
  1213. return self;}
  1214. }),
  1215. smalltalk.TagBrush);
  1216. smalltalk.addMethod(
  1217. "_align_",
  1218. smalltalk.method({
  1219. selector: "align:",
  1220. fn: function (aString){
  1221. var self=this;
  1222. smalltalk.send(self, "_at_put_", ["align", aString]);
  1223. return self;}
  1224. }),
  1225. smalltalk.TagBrush);
  1226. smalltalk.addMethod(
  1227. "_alt_",
  1228. smalltalk.method({
  1229. selector: "alt:",
  1230. fn: function (aString){
  1231. var self=this;
  1232. smalltalk.send(self, "_at_put_", ["alt", aString]);
  1233. return self;}
  1234. }),
  1235. smalltalk.TagBrush);
  1236. smalltalk.addMethod(
  1237. "_append_",
  1238. smalltalk.method({
  1239. selector: "append:",
  1240. fn: function (anObject){
  1241. var self=this;
  1242. smalltalk.send(anObject, "_appendToBrush_", [self]);
  1243. return self;}
  1244. }),
  1245. smalltalk.TagBrush);
  1246. smalltalk.addMethod(
  1247. "_appendBlock_",
  1248. smalltalk.method({
  1249. selector: "appendBlock:",
  1250. fn: function (aBlock){
  1251. var self=this;
  1252. var root=nil;
  1253. (root=smalltalk.send(self['@canvas'], "_root", []));
  1254. smalltalk.send(self['@canvas'], "_root_", [self]);
  1255. smalltalk.send(aBlock, "_value_", [self['@canvas']]);
  1256. smalltalk.send(self['@canvas'], "_root_", [root]);
  1257. return self;}
  1258. }),
  1259. smalltalk.TagBrush);
  1260. smalltalk.addMethod(
  1261. "_appendChild_",
  1262. smalltalk.method({
  1263. selector: "appendChild:",
  1264. fn: function (anElement){
  1265. var self=this;
  1266. var element=self['@element'];
  1267. if (null == element.canHaveChildren || element.canHaveChildren) {
  1268. element.appendChild(anElement);
  1269. } else {
  1270. element.text = String(element.text) + anElement.innerHTML;
  1271. } ;
  1272. return self;}
  1273. }),
  1274. smalltalk.TagBrush);
  1275. smalltalk.addMethod(
  1276. "_appendString_",
  1277. smalltalk.method({
  1278. selector: "appendString:",
  1279. fn: function (aString){
  1280. var self=this;
  1281. smalltalk.send(self, "_appendChild_", [smalltalk.send(self, "_createTextNodeFor_", [aString])]);
  1282. return self;}
  1283. }),
  1284. smalltalk.TagBrush);
  1285. smalltalk.addMethod(
  1286. "_appendToBrush_",
  1287. smalltalk.method({
  1288. selector: "appendToBrush:",
  1289. fn: function (aTagBrush){
  1290. var self=this;
  1291. smalltalk.send(aTagBrush, "_addBrush_", [self]);
  1292. return self;}
  1293. }),
  1294. smalltalk.TagBrush);
  1295. smalltalk.addMethod(
  1296. "_asJQuery",
  1297. smalltalk.method({
  1298. selector: "asJQuery",
  1299. fn: function (){
  1300. var self=this;
  1301. return smalltalk.send((typeof window == 'undefined' ? nil : window), "_jQuery_", [smalltalk.send(self, "_element", [])]);
  1302. return self;}
  1303. }),
  1304. smalltalk.TagBrush);
  1305. smalltalk.addMethod(
  1306. "_at_put_",
  1307. smalltalk.method({
  1308. selector: "at:put:",
  1309. fn: function (aString, aValue){
  1310. var self=this;
  1311. self['@element'].setAttribute(aString, aValue);
  1312. return self;}
  1313. }),
  1314. smalltalk.TagBrush);
  1315. smalltalk.addMethod(
  1316. "_class_",
  1317. smalltalk.method({
  1318. selector: "class:",
  1319. fn: function (aString){
  1320. var self=this;
  1321. self['@element'].className = aString;
  1322. return self;}
  1323. }),
  1324. smalltalk.TagBrush);
  1325. smalltalk.addMethod(
  1326. "_cols_",
  1327. smalltalk.method({
  1328. selector: "cols:",
  1329. fn: function (aString){
  1330. var self=this;
  1331. smalltalk.send(self, "_at_put_", ["cols", aString]);
  1332. return self;}
  1333. }),
  1334. smalltalk.TagBrush);
  1335. smalltalk.addMethod(
  1336. "_contenteditable_",
  1337. smalltalk.method({
  1338. selector: "contenteditable:",
  1339. fn: function (aString){
  1340. var self=this;
  1341. smalltalk.send(self, "_at_put_", ["contenteditable", aString]);
  1342. return self;}
  1343. }),
  1344. smalltalk.TagBrush);
  1345. smalltalk.addMethod(
  1346. "_contents_",
  1347. smalltalk.method({
  1348. selector: "contents:",
  1349. fn: function (anObject){
  1350. var self=this;
  1351. (function($rec){smalltalk.send($rec, "_empty", []);return smalltalk.send($rec, "_append_", [anObject]);})(self);
  1352. return self;}
  1353. }),
  1354. smalltalk.TagBrush);
  1355. smalltalk.addMethod(
  1356. "_contextmenu_",
  1357. smalltalk.method({
  1358. selector: "contextmenu:",
  1359. fn: function (aString){
  1360. var self=this;
  1361. smalltalk.send(self, "_at_put_", ["contextmenu", aString]);
  1362. return self;}
  1363. }),
  1364. smalltalk.TagBrush);
  1365. smalltalk.addMethod(
  1366. "_createElementFor_",
  1367. smalltalk.method({
  1368. selector: "createElementFor:",
  1369. fn: function (aString){
  1370. var self=this;
  1371. return document.createElement(String(aString));
  1372. return self;}
  1373. }),
  1374. smalltalk.TagBrush);
  1375. smalltalk.addMethod(
  1376. "_createTextNodeFor_",
  1377. smalltalk.method({
  1378. selector: "createTextNodeFor:",
  1379. fn: function (aString){
  1380. var self=this;
  1381. return document.createTextNode(String(aString));
  1382. return self;}
  1383. }),
  1384. smalltalk.TagBrush);
  1385. smalltalk.addMethod(
  1386. "_draggable_",
  1387. smalltalk.method({
  1388. selector: "draggable:",
  1389. fn: function (aString){
  1390. var self=this;
  1391. smalltalk.send(self, "_at_put_", ["draggable", aString]);
  1392. return self;}
  1393. }),
  1394. smalltalk.TagBrush);
  1395. smalltalk.addMethod(
  1396. "_element",
  1397. smalltalk.method({
  1398. selector: "element",
  1399. fn: function (){
  1400. var self=this;
  1401. return self['@element'];
  1402. return self;}
  1403. }),
  1404. smalltalk.TagBrush);
  1405. smalltalk.addMethod(
  1406. "_empty",
  1407. smalltalk.method({
  1408. selector: "empty",
  1409. fn: function (){
  1410. var self=this;
  1411. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_empty", []);
  1412. return self;}
  1413. }),
  1414. smalltalk.TagBrush);
  1415. smalltalk.addMethod(
  1416. "_for_",
  1417. smalltalk.method({
  1418. selector: "for:",
  1419. fn: function (aString){
  1420. var self=this;
  1421. smalltalk.send(self, "_at_put_", ["for", aString]);
  1422. return self;}
  1423. }),
  1424. smalltalk.TagBrush);
  1425. smalltalk.addMethod(
  1426. "_height_",
  1427. smalltalk.method({
  1428. selector: "height:",
  1429. fn: function (aString){
  1430. var self=this;
  1431. smalltalk.send(self, "_at_put_", ["height", aString]);
  1432. return self;}
  1433. }),
  1434. smalltalk.TagBrush);
  1435. smalltalk.addMethod(
  1436. "_hidden",
  1437. smalltalk.method({
  1438. selector: "hidden",
  1439. fn: function (){
  1440. var self=this;
  1441. smalltalk.send(self, "_at_put_", ["hidden", "hidden"]);
  1442. return self;}
  1443. }),
  1444. smalltalk.TagBrush);
  1445. smalltalk.addMethod(
  1446. "_href_",
  1447. smalltalk.method({
  1448. selector: "href:",
  1449. fn: function (aString){
  1450. var self=this;
  1451. smalltalk.send(self, "_at_put_", ["href", aString]);
  1452. return self;}
  1453. }),
  1454. smalltalk.TagBrush);
  1455. smalltalk.addMethod(
  1456. "_id_",
  1457. smalltalk.method({
  1458. selector: "id:",
  1459. fn: function (aString){
  1460. var self=this;
  1461. smalltalk.send(self, "_at_put_", ["id", aString]);
  1462. return self;}
  1463. }),
  1464. smalltalk.TagBrush);
  1465. smalltalk.addMethod(
  1466. "_initializeFromJQuery_canvas_",
  1467. smalltalk.method({
  1468. selector: "initializeFromJQuery:canvas:",
  1469. fn: function (aJQuery, aCanvas){
  1470. var self=this;
  1471. (self['@element']=smalltalk.send(aJQuery, "_get_", [(0)]));
  1472. (self['@canvas']=aCanvas);
  1473. return self;}
  1474. }),
  1475. smalltalk.TagBrush);
  1476. smalltalk.addMethod(
  1477. "_initializeFromString_canvas_",
  1478. smalltalk.method({
  1479. selector: "initializeFromString:canvas:",
  1480. fn: function (aString, aCanvas){
  1481. var self=this;
  1482. (self['@element']=smalltalk.send(self, "_createElementFor_", [aString]));
  1483. (self['@canvas']=aCanvas);
  1484. return self;}
  1485. }),
  1486. smalltalk.TagBrush);
  1487. smalltalk.addMethod(
  1488. "_media_",
  1489. smalltalk.method({
  1490. selector: "media:",
  1491. fn: function (aString){
  1492. var self=this;
  1493. smalltalk.send(self, "_at_put_", ["media", aString]);
  1494. return self;}
  1495. }),
  1496. smalltalk.TagBrush);
  1497. smalltalk.addMethod(
  1498. "_method_",
  1499. smalltalk.method({
  1500. selector: "method:",
  1501. fn: function (aString){
  1502. var self=this;
  1503. smalltalk.send(self, "_at_put_", ["method", aString]);
  1504. return self;}
  1505. }),
  1506. smalltalk.TagBrush);
  1507. smalltalk.addMethod(
  1508. "_name_",
  1509. smalltalk.method({
  1510. selector: "name:",
  1511. fn: function (aString){
  1512. var self=this;
  1513. smalltalk.send(self, "_at_put_", ["name", aString]);
  1514. return self;}
  1515. }),
  1516. smalltalk.TagBrush);
  1517. smalltalk.addMethod(
  1518. "_onBlur_",
  1519. smalltalk.method({
  1520. selector: "onBlur:",
  1521. fn: function (aBlock){
  1522. var self=this;
  1523. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["blur", aBlock]);
  1524. return self;}
  1525. }),
  1526. smalltalk.TagBrush);
  1527. smalltalk.addMethod(
  1528. "_onChange_",
  1529. smalltalk.method({
  1530. selector: "onChange:",
  1531. fn: function (aBlock){
  1532. var self=this;
  1533. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["change", aBlock]);
  1534. return self;}
  1535. }),
  1536. smalltalk.TagBrush);
  1537. smalltalk.addMethod(
  1538. "_onClick_",
  1539. smalltalk.method({
  1540. selector: "onClick:",
  1541. fn: function (aBlock){
  1542. var self=this;
  1543. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["click", aBlock]);
  1544. return self;}
  1545. }),
  1546. smalltalk.TagBrush);
  1547. smalltalk.addMethod(
  1548. "_onDblClick_",
  1549. smalltalk.method({
  1550. selector: "onDblClick:",
  1551. fn: function (aBlock){
  1552. var self=this;
  1553. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["dblclick", aBlock]);
  1554. return self;}
  1555. }),
  1556. smalltalk.TagBrush);
  1557. smalltalk.addMethod(
  1558. "_onFocus_",
  1559. smalltalk.method({
  1560. selector: "onFocus:",
  1561. fn: function (aBlock){
  1562. var self=this;
  1563. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["focus", aBlock]);
  1564. return self;}
  1565. }),
  1566. smalltalk.TagBrush);
  1567. smalltalk.addMethod(
  1568. "_onFocusIn_",
  1569. smalltalk.method({
  1570. selector: "onFocusIn:",
  1571. fn: function (aBlock){
  1572. var self=this;
  1573. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["focusin", aBlock]);
  1574. return self;}
  1575. }),
  1576. smalltalk.TagBrush);
  1577. smalltalk.addMethod(
  1578. "_onFocusOut_",
  1579. smalltalk.method({
  1580. selector: "onFocusOut:",
  1581. fn: function (aBlock){
  1582. var self=this;
  1583. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["focusout", aBlock]);
  1584. return self;}
  1585. }),
  1586. smalltalk.TagBrush);
  1587. smalltalk.addMethod(
  1588. "_onHover_",
  1589. smalltalk.method({
  1590. selector: "onHover:",
  1591. fn: function (aBlock){
  1592. var self=this;
  1593. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["hover", aBlock]);
  1594. return self;}
  1595. }),
  1596. smalltalk.TagBrush);
  1597. smalltalk.addMethod(
  1598. "_onKeyDown_",
  1599. smalltalk.method({
  1600. selector: "onKeyDown:",
  1601. fn: function (aBlock){
  1602. var self=this;
  1603. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["keydown", aBlock]);
  1604. return self;}
  1605. }),
  1606. smalltalk.TagBrush);
  1607. smalltalk.addMethod(
  1608. "_onKeyPress_",
  1609. smalltalk.method({
  1610. selector: "onKeyPress:",
  1611. fn: function (aBlock){
  1612. var self=this;
  1613. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["keypress", aBlock]);
  1614. return self;}
  1615. }),
  1616. smalltalk.TagBrush);
  1617. smalltalk.addMethod(
  1618. "_onKeyUp_",
  1619. smalltalk.method({
  1620. selector: "onKeyUp:",
  1621. fn: function (aBlock){
  1622. var self=this;
  1623. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["keyup", aBlock]);
  1624. return self;}
  1625. }),
  1626. smalltalk.TagBrush);
  1627. smalltalk.addMethod(
  1628. "_onMouseDown_",
  1629. smalltalk.method({
  1630. selector: "onMouseDown:",
  1631. fn: function (aBlock){
  1632. var self=this;
  1633. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["mousedown", aBlock]);
  1634. return self;}
  1635. }),
  1636. smalltalk.TagBrush);
  1637. smalltalk.addMethod(
  1638. "_onMouseEnter_",
  1639. smalltalk.method({
  1640. selector: "onMouseEnter:",
  1641. fn: function (aBlock){
  1642. var self=this;
  1643. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["mouseenter", aBlock]);
  1644. return self;}
  1645. }),
  1646. smalltalk.TagBrush);
  1647. smalltalk.addMethod(
  1648. "_onMouseLeave_",
  1649. smalltalk.method({
  1650. selector: "onMouseLeave:",
  1651. fn: function (aBlock){
  1652. var self=this;
  1653. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["mouseleave", aBlock]);
  1654. return self;}
  1655. }),
  1656. smalltalk.TagBrush);
  1657. smalltalk.addMethod(
  1658. "_onMouseMove_",
  1659. smalltalk.method({
  1660. selector: "onMouseMove:",
  1661. fn: function (aBlock){
  1662. var self=this;
  1663. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["mousemove", aBlock]);
  1664. return self;}
  1665. }),
  1666. smalltalk.TagBrush);
  1667. smalltalk.addMethod(
  1668. "_onMouseOut_",
  1669. smalltalk.method({
  1670. selector: "onMouseOut:",
  1671. fn: function (aBlock){
  1672. var self=this;
  1673. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["mouseout", aBlock]);
  1674. return self;}
  1675. }),
  1676. smalltalk.TagBrush);
  1677. smalltalk.addMethod(
  1678. "_onMouseOver_",
  1679. smalltalk.method({
  1680. selector: "onMouseOver:",
  1681. fn: function (aBlock){
  1682. var self=this;
  1683. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["mouseover", aBlock]);
  1684. return self;}
  1685. }),
  1686. smalltalk.TagBrush);
  1687. smalltalk.addMethod(
  1688. "_onMouseUp_",
  1689. smalltalk.method({
  1690. selector: "onMouseUp:",
  1691. fn: function (aBlock){
  1692. var self=this;
  1693. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["mouseup", aBlock]);
  1694. return self;}
  1695. }),
  1696. smalltalk.TagBrush);
  1697. smalltalk.addMethod(
  1698. "_onSelect_",
  1699. smalltalk.method({
  1700. selector: "onSelect:",
  1701. fn: function (aBlock){
  1702. var self=this;
  1703. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["select", aBlock]);
  1704. return self;}
  1705. }),
  1706. smalltalk.TagBrush);
  1707. smalltalk.addMethod(
  1708. "_onSubmit_",
  1709. smalltalk.method({
  1710. selector: "onSubmit:",
  1711. fn: function (aBlock){
  1712. var self=this;
  1713. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["submit", aBlock]);
  1714. return self;}
  1715. }),
  1716. smalltalk.TagBrush);
  1717. smalltalk.addMethod(
  1718. "_onUnload_",
  1719. smalltalk.method({
  1720. selector: "onUnload:",
  1721. fn: function (aBlock){
  1722. var self=this;
  1723. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["unload", aBlock]);
  1724. return self;}
  1725. }),
  1726. smalltalk.TagBrush);
  1727. smalltalk.addMethod(
  1728. "_placeholder_",
  1729. smalltalk.method({
  1730. selector: "placeholder:",
  1731. fn: function (aString){
  1732. var self=this;
  1733. smalltalk.send(self, "_at_put_", ["placeholder", aString]);
  1734. return self;}
  1735. }),
  1736. smalltalk.TagBrush);
  1737. smalltalk.addMethod(
  1738. "_rel_",
  1739. smalltalk.method({
  1740. selector: "rel:",
  1741. fn: function (aString){
  1742. var self=this;
  1743. smalltalk.send(self, "_at_put_", ["rel", aString]);
  1744. return self;}
  1745. }),
  1746. smalltalk.TagBrush);
  1747. smalltalk.addMethod(
  1748. "_removeAt_",
  1749. smalltalk.method({
  1750. selector: "removeAt:",
  1751. fn: function (aString){
  1752. var self=this;
  1753. self['@element'].removeAttribute(aString);
  1754. return self;}
  1755. }),
  1756. smalltalk.TagBrush);
  1757. smalltalk.addMethod(
  1758. "_rows_",
  1759. smalltalk.method({
  1760. selector: "rows:",
  1761. fn: function (aString){
  1762. var self=this;
  1763. smalltalk.send(self, "_at_put_", ["rows", aString]);
  1764. return self;}
  1765. }),
  1766. smalltalk.TagBrush);
  1767. smalltalk.addMethod(
  1768. "_src_",
  1769. smalltalk.method({
  1770. selector: "src:",
  1771. fn: function (aString){
  1772. var self=this;
  1773. smalltalk.send(self, "_at_put_", ["src", aString]);
  1774. return self;}
  1775. }),
  1776. smalltalk.TagBrush);
  1777. smalltalk.addMethod(
  1778. "_style_",
  1779. smalltalk.method({
  1780. selector: "style:",
  1781. fn: function (aString){
  1782. var self=this;
  1783. smalltalk.send(self, "_at_put_", ["style", aString]);
  1784. return self;}
  1785. }),
  1786. smalltalk.TagBrush);
  1787. smalltalk.addMethod(
  1788. "_tabindex_",
  1789. smalltalk.method({
  1790. selector: "tabindex:",
  1791. fn: function (aNumber){
  1792. var self=this;
  1793. smalltalk.send(self, "_at_put_", ["tabindex", aNumber]);
  1794. return self;}
  1795. }),
  1796. smalltalk.TagBrush);
  1797. smalltalk.addMethod(
  1798. "_target_",
  1799. smalltalk.method({
  1800. selector: "target:",
  1801. fn: function (aString){
  1802. var self=this;
  1803. smalltalk.send(self, "_at_put_", ["target", aString]);
  1804. return self;}
  1805. }),
  1806. smalltalk.TagBrush);
  1807. smalltalk.addMethod(
  1808. "_title_",
  1809. smalltalk.method({
  1810. selector: "title:",
  1811. fn: function (aString){
  1812. var self=this;
  1813. smalltalk.send(self, "_at_put_", ["title", aString]);
  1814. return self;}
  1815. }),
  1816. smalltalk.TagBrush);
  1817. smalltalk.addMethod(
  1818. "_type_",
  1819. smalltalk.method({
  1820. selector: "type:",
  1821. fn: function (aString){
  1822. var self=this;
  1823. smalltalk.send(self, "_at_put_", ["type", aString]);
  1824. return self;}
  1825. }),
  1826. smalltalk.TagBrush);
  1827. smalltalk.addMethod(
  1828. "_valign_",
  1829. smalltalk.method({
  1830. selector: "valign:",
  1831. fn: function (aString){
  1832. var self=this;
  1833. smalltalk.send(self, "_at_put_", ["valign", aString]);
  1834. return self;}
  1835. }),
  1836. smalltalk.TagBrush);
  1837. smalltalk.addMethod(
  1838. "_value_",
  1839. smalltalk.method({
  1840. selector: "value:",
  1841. fn: function (aString){
  1842. var self=this;
  1843. smalltalk.send(self, "_at_put_", ["value", aString]);
  1844. return self;}
  1845. }),
  1846. smalltalk.TagBrush);
  1847. smalltalk.addMethod(
  1848. "_width_",
  1849. smalltalk.method({
  1850. selector: "width:",
  1851. fn: function (aString){
  1852. var self=this;
  1853. smalltalk.send(self, "_at_put_", ["width", aString]);
  1854. return self;}
  1855. }),
  1856. smalltalk.TagBrush);
  1857. smalltalk.addMethod(
  1858. "_with_",
  1859. smalltalk.method({
  1860. selector: "with:",
  1861. fn: function (anObject){
  1862. var self=this;
  1863. smalltalk.send(self, "_append_", [anObject]);
  1864. return self;}
  1865. }),
  1866. smalltalk.TagBrush);
  1867. smalltalk.addMethod(
  1868. "_fromJQuery_canvas_",
  1869. smalltalk.method({
  1870. selector: "fromJQuery:canvas:",
  1871. fn: function (aJQuery, aCanvas){
  1872. var self=this;
  1873. return (function($rec){smalltalk.send($rec, "_initializeFromJQuery_canvas_", [aJQuery, aCanvas]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  1874. return self;}
  1875. }),
  1876. smalltalk.TagBrush.klass);
  1877. smalltalk.addMethod(
  1878. "_fromString_canvas_",
  1879. smalltalk.method({
  1880. selector: "fromString:canvas:",
  1881. fn: function (aString, aCanvas){
  1882. var self=this;
  1883. return (function($rec){smalltalk.send($rec, "_initializeFromString_canvas_", [aString, aCanvas]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  1884. return self;}
  1885. }),
  1886. smalltalk.TagBrush.klass);
  1887. smalltalk.addClass('StyleTag', smalltalk.TagBrush, ['canvas', 'element'], 'Canvas');
  1888. smalltalk.addMethod(
  1889. "_with_",
  1890. smalltalk.method({
  1891. selector: "with:",
  1892. fn: function (aString){
  1893. var self=this;
  1894. ((($receiver = smalltalk.send((smalltalk.HTMLCanvas || HTMLCanvas), "_isMSIE", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_element", []), "_styleSheet", []), "_cssText_", [aString]);})() : (function(){return smalltalk.send(self, "_with_", [aString], smalltalk.StyleTag.superclass || nil);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_element", []), "_styleSheet", []), "_cssText_", [aString]);}), (function(){return smalltalk.send(self, "_with_", [aString], smalltalk.StyleTag.superclass || nil);})]));
  1895. return self;}
  1896. }),
  1897. smalltalk.StyleTag);
  1898. smalltalk.addMethod(
  1899. "_canvas_",
  1900. smalltalk.method({
  1901. selector: "canvas:",
  1902. fn: function (aCanvas){
  1903. var self=this;
  1904. return (function($rec){smalltalk.send($rec, "_initializeFromString_canvas_", ["style", aCanvas]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  1905. return self;}
  1906. }),
  1907. smalltalk.StyleTag.klass);
  1908. smalltalk.addClass('Widget', smalltalk.Object, [], 'Canvas');
  1909. smalltalk.addMethod(
  1910. "_appendToBrush_",
  1911. smalltalk.method({
  1912. selector: "appendToBrush:",
  1913. fn: function (aTagBrush){
  1914. var self=this;
  1915. smalltalk.send(self, "_appendToJQuery_", [smalltalk.send(aTagBrush, "_asJQuery", [])]);
  1916. return self;}
  1917. }),
  1918. smalltalk.Widget);
  1919. smalltalk.addMethod(
  1920. "_appendToJQuery_",
  1921. smalltalk.method({
  1922. selector: "appendToJQuery:",
  1923. fn: function (aJQuery){
  1924. var self=this;
  1925. smalltalk.send(self, "_renderOn_", [smalltalk.send((smalltalk.HTMLCanvas || HTMLCanvas), "_onJQuery_", [aJQuery])]);
  1926. return self;}
  1927. }),
  1928. smalltalk.Widget);
  1929. smalltalk.addMethod(
  1930. "_renderOn_",
  1931. smalltalk.method({
  1932. selector: "renderOn:",
  1933. fn: function (html){
  1934. var self=this;
  1935. self;
  1936. return self;}
  1937. }),
  1938. smalltalk.Widget);
  1939. smalltalk.addMethod(
  1940. "_appendToBrush_",
  1941. smalltalk.method({
  1942. selector: "appendToBrush:",
  1943. fn: function (aTagBrush){
  1944. var self=this;
  1945. smalltalk.send(aTagBrush, "_append_", [smalltalk.send(self, "_asString", [])]);
  1946. return self;}
  1947. }),
  1948. smalltalk.Object);
  1949. smalltalk.addMethod(
  1950. "_appendToJQuery_",
  1951. smalltalk.method({
  1952. selector: "appendToJQuery:",
  1953. fn: function (aJQuery){
  1954. var self=this;
  1955. smalltalk.send(aJQuery, "_append_", [smalltalk.send(self, "_asString", [])]);
  1956. return self;}
  1957. }),
  1958. smalltalk.Object);
  1959. smalltalk.addMethod(
  1960. "_appendToBrush_",
  1961. smalltalk.method({
  1962. selector: "appendToBrush:",
  1963. fn: function (aTagBrush){
  1964. var self=this;
  1965. smalltalk.send(aTagBrush, "_appendBlock_", [self]);
  1966. return self;}
  1967. }),
  1968. smalltalk.BlockClosure);
  1969. smalltalk.addMethod(
  1970. "_appendToJQuery_",
  1971. smalltalk.method({
  1972. selector: "appendToJQuery:",
  1973. fn: function (aJQuery){
  1974. var self=this;
  1975. smalltalk.send(self, "_value_", [smalltalk.send((smalltalk.HTMLCanvas || HTMLCanvas), "_onJQuery_", [aJQuery])]);
  1976. return self;}
  1977. }),
  1978. smalltalk.BlockClosure);
  1979. smalltalk.addMethod(
  1980. "_appendToBrush_",
  1981. smalltalk.method({
  1982. selector: "appendToBrush:",
  1983. fn: function (aTagBrush){
  1984. var self=this;
  1985. smalltalk.send(aTagBrush, "_appendString_", [self]);
  1986. return self;}
  1987. }),
  1988. smalltalk.String);
  1989. smalltalk.addMethod(
  1990. "_appendToJQuery_",
  1991. smalltalk.method({
  1992. selector: "appendToJQuery:",
  1993. fn: function (aJQuery){
  1994. var self=this;
  1995. smalltalk.send(aJQuery, "_append_", [self]);
  1996. return self;}
  1997. }),
  1998. smalltalk.String);
  1999. smalltalk.addMethod(
  2000. "_asJQuery",
  2001. smalltalk.method({
  2002. selector: "asJQuery",
  2003. fn: function (){
  2004. var self=this;
  2005. return jQuery(String(self));
  2006. return self;}
  2007. }),
  2008. smalltalk.String);