Canvas.js 47 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831
  1. smalltalk.addPackage('Canvas', {});
  2. smalltalk.addClass('HTMLCanvas', smalltalk.Object, ['root'], 'Canvas');
  3. smalltalk.addMethod(
  4. unescape('_root_'),
  5. smalltalk.method({
  6. selector: unescape('root%3A'),
  7. category: 'accessing',
  8. fn: function (aTagBrush){
  9. var self=this;
  10. self['@root']=aTagBrush;
  11. return self;},
  12. args: ["aTagBrush"],
  13. source: unescape('root%3A%20aTagBrush%0A%20%20%20%20root%20%3A%3D%20aTagBrush'),
  14. messageSends: [],
  15. referencedClasses: []
  16. }),
  17. smalltalk.HTMLCanvas);
  18. smalltalk.addMethod(
  19. unescape('_root'),
  20. smalltalk.method({
  21. selector: unescape('root'),
  22. category: 'accessing',
  23. fn: function (){
  24. var self=this;
  25. return self['@root'];
  26. return self;},
  27. args: [],
  28. source: unescape('root%0A%20%20%20%20%5Eroot'),
  29. messageSends: [],
  30. referencedClasses: []
  31. }),
  32. smalltalk.HTMLCanvas);
  33. smalltalk.addMethod(
  34. unescape('_with_'),
  35. smalltalk.method({
  36. selector: unescape('with%3A'),
  37. category: 'adding',
  38. fn: function (anObject){
  39. var self=this;
  40. return smalltalk.send(smalltalk.send(self, "_root", []), "_with_", [anObject]);
  41. return self;},
  42. args: ["anObject"],
  43. source: unescape('with%3A%20anObject%0A%20%20%20%20%5Eself%20root%20with%3A%20anObject'),
  44. messageSends: ["with:", "root"],
  45. referencedClasses: []
  46. }),
  47. smalltalk.HTMLCanvas);
  48. smalltalk.addMethod(
  49. unescape('_initialize'),
  50. smalltalk.method({
  51. selector: unescape('initialize'),
  52. category: 'initialization',
  53. fn: function (){
  54. var self=this;
  55. smalltalk.send(self, "_initialize", [], smalltalk.Object);
  56. (($receiver = self['@root']) == nil || $receiver == undefined) ? (function(){return self['@root']=smalltalk.send((smalltalk.TagBrush || TagBrush), "_fromString_canvas_", ["div", self]);})() : $receiver;
  57. return self;},
  58. args: [],
  59. source: unescape('initialize%0A%20%20%20%20super%20initialize.%0A%20%20%20%20root%20ifNil%3A%20%5Broot%20%3A%3D%20TagBrush%20fromString%3A%20%27div%27%20canvas%3A%20self%5D'),
  60. messageSends: ["initialize", "ifNil:", "fromString:canvas:"],
  61. referencedClasses: ["TagBrush"]
  62. }),
  63. smalltalk.HTMLCanvas);
  64. smalltalk.addMethod(
  65. unescape('_initializeFromJQuery_'),
  66. smalltalk.method({
  67. selector: unescape('initializeFromJQuery%3A'),
  68. category: 'initialization',
  69. fn: function (aJQuery){
  70. var self=this;
  71. self['@root']=smalltalk.send((smalltalk.TagBrush || TagBrush), "_fromJQuery_canvas_", [aJQuery, self]);
  72. return self;},
  73. args: ["aJQuery"],
  74. source: unescape('initializeFromJQuery%3A%20aJQuery%0A%20%20%20%20root%20%3A%3D%20TagBrush%20fromJQuery%3A%20aJQuery%20canvas%3A%20self'),
  75. messageSends: ["fromJQuery:canvas:"],
  76. referencedClasses: ["TagBrush"]
  77. }),
  78. smalltalk.HTMLCanvas);
  79. smalltalk.addMethod(
  80. unescape('_newTag_'),
  81. smalltalk.method({
  82. selector: unescape('newTag%3A'),
  83. category: 'tags',
  84. fn: function (aString){
  85. var self=this;
  86. return smalltalk.send((smalltalk.TagBrush || TagBrush), "_fromString_canvas_", [aString, self]);
  87. return self;},
  88. args: ["aString"],
  89. source: unescape('newTag%3A%20aString%0A%20%20%20%20%5ETagBrush%20fromString%3A%20aString%20canvas%3A%20self'),
  90. messageSends: ["fromString:canvas:"],
  91. referencedClasses: ["TagBrush"]
  92. }),
  93. smalltalk.HTMLCanvas);
  94. smalltalk.addMethod(
  95. unescape('_tag_'),
  96. smalltalk.method({
  97. selector: unescape('tag%3A'),
  98. category: 'tags',
  99. fn: function (aString){
  100. var self=this;
  101. return smalltalk.send(self['@root'], "_addBrush_", [smalltalk.send(self, "_newTag_", [aString])]);
  102. return self;},
  103. args: ["aString"],
  104. source: unescape('tag%3A%20aString%0A%20%20%20%20%5Eroot%20addBrush%3A%20%28self%20newTag%3A%20aString%29'),
  105. messageSends: ["addBrush:", "newTag:"],
  106. referencedClasses: []
  107. }),
  108. smalltalk.HTMLCanvas);
  109. smalltalk.addMethod(
  110. unescape('_h1'),
  111. smalltalk.method({
  112. selector: unescape('h1'),
  113. category: 'tags',
  114. fn: function (){
  115. var self=this;
  116. return smalltalk.send(self, "_tag_", ["h1"]);
  117. return self;},
  118. args: [],
  119. source: unescape('h1%0A%20%20%20%20%5Eself%20tag%3A%20%27h1%27'),
  120. messageSends: ["tag:"],
  121. referencedClasses: []
  122. }),
  123. smalltalk.HTMLCanvas);
  124. smalltalk.addMethod(
  125. unescape('_h2'),
  126. smalltalk.method({
  127. selector: unescape('h2'),
  128. category: 'tags',
  129. fn: function (){
  130. var self=this;
  131. return smalltalk.send(self, "_tag_", ["h2"]);
  132. return self;},
  133. args: [],
  134. source: unescape('h2%0A%20%20%20%20%5Eself%20tag%3A%20%27h2%27'),
  135. messageSends: ["tag:"],
  136. referencedClasses: []
  137. }),
  138. smalltalk.HTMLCanvas);
  139. smalltalk.addMethod(
  140. unescape('_h3'),
  141. smalltalk.method({
  142. selector: unescape('h3'),
  143. category: 'tags',
  144. fn: function (){
  145. var self=this;
  146. return smalltalk.send(self, "_tag_", ["h3"]);
  147. return self;},
  148. args: [],
  149. source: unescape('h3%0A%20%20%20%20%5Eself%20tag%3A%20%27h3%27'),
  150. messageSends: ["tag:"],
  151. referencedClasses: []
  152. }),
  153. smalltalk.HTMLCanvas);
  154. smalltalk.addMethod(
  155. unescape('_h4'),
  156. smalltalk.method({
  157. selector: unescape('h4'),
  158. category: 'tags',
  159. fn: function (){
  160. var self=this;
  161. return smalltalk.send(self, "_tag_", ["h4"]);
  162. return self;},
  163. args: [],
  164. source: unescape('h4%0A%20%20%20%20%5Eself%20tag%3A%20%27h4%27'),
  165. messageSends: ["tag:"],
  166. referencedClasses: []
  167. }),
  168. smalltalk.HTMLCanvas);
  169. smalltalk.addMethod(
  170. unescape('_h5'),
  171. smalltalk.method({
  172. selector: unescape('h5'),
  173. category: 'tags',
  174. fn: function (){
  175. var self=this;
  176. return smalltalk.send(self, "_tag_", ["h5"]);
  177. return self;},
  178. args: [],
  179. source: unescape('h5%0A%20%20%20%20%5Eself%20tag%3A%20%27h5%27'),
  180. messageSends: ["tag:"],
  181. referencedClasses: []
  182. }),
  183. smalltalk.HTMLCanvas);
  184. smalltalk.addMethod(
  185. unescape('_h6'),
  186. smalltalk.method({
  187. selector: unescape('h6'),
  188. category: 'tags',
  189. fn: function (){
  190. var self=this;
  191. return smalltalk.send(self, "_tag_", ["h6"]);
  192. return self;},
  193. args: [],
  194. source: unescape('h6%0A%20%20%20%20%5Eself%20tag%3A%20%27h6%27'),
  195. messageSends: ["tag:"],
  196. referencedClasses: []
  197. }),
  198. smalltalk.HTMLCanvas);
  199. smalltalk.addMethod(
  200. unescape('_p'),
  201. smalltalk.method({
  202. selector: unescape('p'),
  203. category: 'tags',
  204. fn: function (){
  205. var self=this;
  206. return smalltalk.send(self, "_tag_", ["p"]);
  207. return self;},
  208. args: [],
  209. source: unescape('p%0A%20%20%20%20%5Eself%20tag%3A%20%27p%27'),
  210. messageSends: ["tag:"],
  211. referencedClasses: []
  212. }),
  213. smalltalk.HTMLCanvas);
  214. smalltalk.addMethod(
  215. unescape('_div'),
  216. smalltalk.method({
  217. selector: unescape('div'),
  218. category: 'tags',
  219. fn: function (){
  220. var self=this;
  221. return smalltalk.send(self, "_tag_", ["div"]);
  222. return self;},
  223. args: [],
  224. source: unescape('div%0A%20%20%20%20%5Eself%20tag%3A%20%27div%27'),
  225. messageSends: ["tag:"],
  226. referencedClasses: []
  227. }),
  228. smalltalk.HTMLCanvas);
  229. smalltalk.addMethod(
  230. unescape('_span'),
  231. smalltalk.method({
  232. selector: unescape('span'),
  233. category: 'tags',
  234. fn: function (){
  235. var self=this;
  236. return smalltalk.send(self, "_tag_", ["span"]);
  237. return self;},
  238. args: [],
  239. source: unescape('span%0A%20%20%20%20%5Eself%20tag%3A%20%27span%27'),
  240. messageSends: ["tag:"],
  241. referencedClasses: []
  242. }),
  243. smalltalk.HTMLCanvas);
  244. smalltalk.addMethod(
  245. unescape('_img'),
  246. smalltalk.method({
  247. selector: unescape('img'),
  248. category: 'tags',
  249. fn: function (){
  250. var self=this;
  251. return smalltalk.send(self, "_tag_", ["img"]);
  252. return self;},
  253. args: [],
  254. source: unescape('img%0A%20%20%20%20%5Eself%20tag%3A%20%27img%27'),
  255. messageSends: ["tag:"],
  256. referencedClasses: []
  257. }),
  258. smalltalk.HTMLCanvas);
  259. smalltalk.addMethod(
  260. unescape('_ul'),
  261. smalltalk.method({
  262. selector: unescape('ul'),
  263. category: 'tags',
  264. fn: function (){
  265. var self=this;
  266. return smalltalk.send(self, "_tag_", ["ul"]);
  267. return self;},
  268. args: [],
  269. source: unescape('ul%0A%20%20%20%20%5Eself%20tag%3A%20%27ul%27'),
  270. messageSends: ["tag:"],
  271. referencedClasses: []
  272. }),
  273. smalltalk.HTMLCanvas);
  274. smalltalk.addMethod(
  275. unescape('_ol'),
  276. smalltalk.method({
  277. selector: unescape('ol'),
  278. category: 'tags',
  279. fn: function (){
  280. var self=this;
  281. return smalltalk.send(self, "_tag_", ["ol"]);
  282. return self;},
  283. args: [],
  284. source: unescape('ol%0A%20%20%20%20%5Eself%20tag%3A%20%27ol%27'),
  285. messageSends: ["tag:"],
  286. referencedClasses: []
  287. }),
  288. smalltalk.HTMLCanvas);
  289. smalltalk.addMethod(
  290. unescape('_li'),
  291. smalltalk.method({
  292. selector: unescape('li'),
  293. category: 'tags',
  294. fn: function (){
  295. var self=this;
  296. return smalltalk.send(self, "_tag_", ["li"]);
  297. return self;},
  298. args: [],
  299. source: unescape('li%0A%20%20%20%20%5Eself%20tag%3A%20%27li%27'),
  300. messageSends: ["tag:"],
  301. referencedClasses: []
  302. }),
  303. smalltalk.HTMLCanvas);
  304. smalltalk.addMethod(
  305. unescape('_table'),
  306. smalltalk.method({
  307. selector: unescape('table'),
  308. category: 'tags',
  309. fn: function (){
  310. var self=this;
  311. return smalltalk.send(self, "_tag_", ["table"]);
  312. return self;},
  313. args: [],
  314. source: unescape('table%0A%20%20%20%20%5Eself%20tag%3A%20%27table%27'),
  315. messageSends: ["tag:"],
  316. referencedClasses: []
  317. }),
  318. smalltalk.HTMLCanvas);
  319. smalltalk.addMethod(
  320. unescape('_tr'),
  321. smalltalk.method({
  322. selector: unescape('tr'),
  323. category: 'tags',
  324. fn: function (){
  325. var self=this;
  326. return smalltalk.send(self, "_tag_", ["tr"]);
  327. return self;},
  328. args: [],
  329. source: unescape('tr%0A%20%20%20%20%5Eself%20tag%3A%20%27tr%27'),
  330. messageSends: ["tag:"],
  331. referencedClasses: []
  332. }),
  333. smalltalk.HTMLCanvas);
  334. smalltalk.addMethod(
  335. unescape('_td'),
  336. smalltalk.method({
  337. selector: unescape('td'),
  338. category: 'tags',
  339. fn: function (){
  340. var self=this;
  341. return smalltalk.send(self, "_tag_", ["td"]);
  342. return self;},
  343. args: [],
  344. source: unescape('td%20%0A%20%20%20%20%5Eself%20tag%3A%20%27td%27'),
  345. messageSends: ["tag:"],
  346. referencedClasses: []
  347. }),
  348. smalltalk.HTMLCanvas);
  349. smalltalk.addMethod(
  350. unescape('_th'),
  351. smalltalk.method({
  352. selector: unescape('th'),
  353. category: 'tags',
  354. fn: function (){
  355. var self=this;
  356. return smalltalk.send(self, "_tag_", ["th"]);
  357. return self;},
  358. args: [],
  359. source: unescape('th%0A%20%20%20%20%5Eself%20tag%3A%20%27th%27'),
  360. messageSends: ["tag:"],
  361. referencedClasses: []
  362. }),
  363. smalltalk.HTMLCanvas);
  364. smalltalk.addMethod(
  365. unescape('_form'),
  366. smalltalk.method({
  367. selector: unescape('form'),
  368. category: 'tags',
  369. fn: function (){
  370. var self=this;
  371. return smalltalk.send(self, "_tag_", ["form"]);
  372. return self;},
  373. args: [],
  374. source: unescape('form%0A%20%20%20%20%5Eself%20tag%3A%20%27form%27'),
  375. messageSends: ["tag:"],
  376. referencedClasses: []
  377. }),
  378. smalltalk.HTMLCanvas);
  379. smalltalk.addMethod(
  380. unescape('_input'),
  381. smalltalk.method({
  382. selector: unescape('input'),
  383. category: 'tags',
  384. fn: function (){
  385. var self=this;
  386. return smalltalk.send(self, "_tag_", ["input"]);
  387. return self;},
  388. args: [],
  389. source: unescape('input%0A%20%20%20%20%5Eself%20tag%3A%20%27input%27'),
  390. messageSends: ["tag:"],
  391. referencedClasses: []
  392. }),
  393. smalltalk.HTMLCanvas);
  394. smalltalk.addMethod(
  395. unescape('_button'),
  396. smalltalk.method({
  397. selector: unescape('button'),
  398. category: 'tags',
  399. fn: function (){
  400. var self=this;
  401. return smalltalk.send(self, "_tag_", ["button"]);
  402. return self;},
  403. args: [],
  404. source: unescape('button%0A%20%20%20%20%5Eself%20tag%3A%20%27button%27'),
  405. messageSends: ["tag:"],
  406. referencedClasses: []
  407. }),
  408. smalltalk.HTMLCanvas);
  409. smalltalk.addMethod(
  410. unescape('_select'),
  411. smalltalk.method({
  412. selector: unescape('select'),
  413. category: 'tags',
  414. fn: function (){
  415. var self=this;
  416. return smalltalk.send(self, "_tag_", ["select"]);
  417. return self;},
  418. args: [],
  419. source: unescape('select%0A%20%20%20%20%5Eself%20tag%3A%20%27select%27'),
  420. messageSends: ["tag:"],
  421. referencedClasses: []
  422. }),
  423. smalltalk.HTMLCanvas);
  424. smalltalk.addMethod(
  425. unescape('_option'),
  426. smalltalk.method({
  427. selector: unescape('option'),
  428. category: 'tags',
  429. fn: function (){
  430. var self=this;
  431. return smalltalk.send(self, "_tag_", ["option"]);
  432. return self;},
  433. args: [],
  434. source: unescape('option%0A%20%20%20%20%5Eself%20tag%3A%20%27option%27'),
  435. messageSends: ["tag:"],
  436. referencedClasses: []
  437. }),
  438. smalltalk.HTMLCanvas);
  439. smalltalk.addMethod(
  440. unescape('_textarea'),
  441. smalltalk.method({
  442. selector: unescape('textarea'),
  443. category: 'tags',
  444. fn: function (){
  445. var self=this;
  446. return smalltalk.send(self, "_tag_", ["textarea"]);
  447. return self;},
  448. args: [],
  449. source: unescape('textarea%0A%20%20%20%20%5Eself%20tag%3A%20%27textarea%27'),
  450. messageSends: ["tag:"],
  451. referencedClasses: []
  452. }),
  453. smalltalk.HTMLCanvas);
  454. smalltalk.addMethod(
  455. unescape('_a'),
  456. smalltalk.method({
  457. selector: unescape('a'),
  458. category: 'tags',
  459. fn: function (){
  460. var self=this;
  461. return smalltalk.send(self, "_tag_", ["a"]);
  462. return self;},
  463. args: [],
  464. source: unescape('a%0A%20%20%20%20%5Eself%20tag%3A%20%27a%27'),
  465. messageSends: ["tag:"],
  466. referencedClasses: []
  467. }),
  468. smalltalk.HTMLCanvas);
  469. smalltalk.addMethod(
  470. unescape('_canvas'),
  471. smalltalk.method({
  472. selector: unescape('canvas'),
  473. category: 'tags',
  474. fn: function (){
  475. var self=this;
  476. return smalltalk.send(self, "_tag_", ["canvas"]);
  477. return self;},
  478. args: [],
  479. source: unescape('canvas%0A%09%5Eself%20tag%3A%20%27canvas%27'),
  480. messageSends: ["tag:"],
  481. referencedClasses: []
  482. }),
  483. smalltalk.HTMLCanvas);
  484. smalltalk.addMethod(
  485. unescape('_pre'),
  486. smalltalk.method({
  487. selector: unescape('pre'),
  488. category: 'tags',
  489. fn: function (){
  490. var self=this;
  491. return smalltalk.send(self, "_tag_", ["pre"]);
  492. return self;},
  493. args: [],
  494. source: unescape('pre%0A%20%20%20%20%5Eself%20tag%3A%20%27pre%27'),
  495. messageSends: ["tag:"],
  496. referencedClasses: []
  497. }),
  498. smalltalk.HTMLCanvas);
  499. smalltalk.addMethod(
  500. unescape('_code'),
  501. smalltalk.method({
  502. selector: unescape('code'),
  503. category: 'tags',
  504. fn: function (){
  505. var self=this;
  506. return smalltalk.send(self, "_tag_", ["code"]);
  507. return self;},
  508. args: [],
  509. source: unescape('code%0A%20%20%20%20%5Eself%20tag%3A%20%27code%27'),
  510. messageSends: ["tag:"],
  511. referencedClasses: []
  512. }),
  513. smalltalk.HTMLCanvas);
  514. smalltalk.addMethod(
  515. unescape('_br'),
  516. smalltalk.method({
  517. selector: unescape('br'),
  518. category: 'tags',
  519. fn: function (){
  520. var self=this;
  521. return smalltalk.send(self, "_tag_", ["br"]);
  522. return self;},
  523. args: [],
  524. source: unescape('br%0A%20%20%20%20%5Eself%20tag%3A%20%27br%27'),
  525. messageSends: ["tag:"],
  526. referencedClasses: []
  527. }),
  528. smalltalk.HTMLCanvas);
  529. smalltalk.addMethod(
  530. unescape('_script'),
  531. smalltalk.method({
  532. selector: unescape('script'),
  533. category: 'tags',
  534. fn: function (){
  535. var self=this;
  536. return smalltalk.send(self, "_tag_", ["script"]);
  537. return self;},
  538. args: [],
  539. source: unescape('script%0A%20%20%20%20%5Eself%20tag%3A%20%27script%27'),
  540. messageSends: ["tag:"],
  541. referencedClasses: []
  542. }),
  543. smalltalk.HTMLCanvas);
  544. smalltalk.addMethod(
  545. unescape('_link'),
  546. smalltalk.method({
  547. selector: unescape('link'),
  548. category: 'tags',
  549. fn: function (){
  550. var self=this;
  551. return smalltalk.send(self, "_tag_", ["link"]);
  552. return self;},
  553. args: [],
  554. source: unescape('link%0A%20%20%20%20%5Eself%20tag%3A%20%27link%27'),
  555. messageSends: ["tag:"],
  556. referencedClasses: []
  557. }),
  558. smalltalk.HTMLCanvas);
  559. smalltalk.addMethod(
  560. unescape('_style'),
  561. smalltalk.method({
  562. selector: unescape('style'),
  563. category: 'tags',
  564. fn: function (){
  565. var self=this;
  566. return smalltalk.send(self, "_tag_", ["style"]);
  567. return self;},
  568. args: [],
  569. source: unescape('style%0A%09%5Eself%20tag%3A%20%27style%27'),
  570. messageSends: ["tag:"],
  571. referencedClasses: []
  572. }),
  573. smalltalk.HTMLCanvas);
  574. smalltalk.addMethod(
  575. unescape('_p_'),
  576. smalltalk.method({
  577. selector: unescape('p%3A'),
  578. category: 'tags',
  579. fn: function (anObject){
  580. var self=this;
  581. return smalltalk.send(smalltalk.send(self, "_p", []), "_with_", [anObject]);
  582. return self;},
  583. args: ["anObject"],
  584. source: unescape('p%3A%20anObject%0A%20%20%20%20%5Eself%20p%20with%3A%20anObject'),
  585. messageSends: ["with:", "p"],
  586. referencedClasses: []
  587. }),
  588. smalltalk.HTMLCanvas);
  589. smalltalk.addMethod(
  590. unescape('_h1_'),
  591. smalltalk.method({
  592. selector: unescape('h1%3A'),
  593. category: 'tags',
  594. fn: function (anObject){
  595. var self=this;
  596. return smalltalk.send(smalltalk.send(self, "_h1", []), "_with_", [anObject]);
  597. return self;},
  598. args: ["anObject"],
  599. source: unescape('h1%3A%20anObject%0A%20%20%20%20%5Eself%20h1%20with%3A%20anObject'),
  600. messageSends: ["with:", "h1"],
  601. referencedClasses: []
  602. }),
  603. smalltalk.HTMLCanvas);
  604. smalltalk.addMethod(
  605. unescape('_iframe'),
  606. smalltalk.method({
  607. selector: unescape('iframe'),
  608. category: 'tags',
  609. fn: function (){
  610. var self=this;
  611. return smalltalk.send(self, "_tag_", ["iframe"]);
  612. return self;},
  613. args: [],
  614. source: unescape('iframe%0A%20%20%20%20%5Eself%20tag%3A%20%27iframe%27'),
  615. messageSends: ["tag:"],
  616. referencedClasses: []
  617. }),
  618. smalltalk.HTMLCanvas);
  619. smalltalk.addMethod(
  620. unescape('_iframe_'),
  621. smalltalk.method({
  622. selector: unescape('iframe%3A'),
  623. category: 'tags',
  624. fn: function (aString){
  625. var self=this;
  626. return smalltalk.send(smalltalk.send(self, "_iframe", []), "_src_", [aString]);
  627. return self;},
  628. args: ["aString"],
  629. source: unescape('iframe%3A%20aString%0A%20%20%20%20%5Eself%20iframe%20src%3A%20aString'),
  630. messageSends: ["src:", "iframe"],
  631. referencedClasses: []
  632. }),
  633. smalltalk.HTMLCanvas);
  634. smalltalk.addMethod(
  635. unescape('_h2_'),
  636. smalltalk.method({
  637. selector: unescape('h2%3A'),
  638. category: 'tags',
  639. fn: function (anObject){
  640. var self=this;
  641. return smalltalk.send(smalltalk.send(self, "_h2", []), "_with_", [anObject]);
  642. return self;},
  643. args: ["anObject"],
  644. source: unescape('h2%3A%20anObject%0A%20%20%20%20%5E%20self%20h2%20with%3A%20anObject'),
  645. messageSends: ["with:", "h2"],
  646. referencedClasses: []
  647. }),
  648. smalltalk.HTMLCanvas);
  649. smalltalk.addMethod(
  650. unescape('_h3_'),
  651. smalltalk.method({
  652. selector: unescape('h3%3A'),
  653. category: 'tags',
  654. fn: function (anObject){
  655. var self=this;
  656. return smalltalk.send(smalltalk.send(self, "_h3", []), "_with_", [anObject]);
  657. return self;},
  658. args: ["anObject"],
  659. source: unescape('h3%3A%20anObject%0A%20%20%20%20%5Eself%20h3%20with%3A%20anObject'),
  660. messageSends: ["with:", "h3"],
  661. referencedClasses: []
  662. }),
  663. smalltalk.HTMLCanvas);
  664. smalltalk.addMethod(
  665. unescape('_h4_'),
  666. smalltalk.method({
  667. selector: unescape('h4%3A'),
  668. category: 'tags',
  669. fn: function (anObject){
  670. var self=this;
  671. return smalltalk.send(smalltalk.send(self, "_h4", []), "_with_", [anObject]);
  672. return self;},
  673. args: ["anObject"],
  674. source: unescape('h4%3A%20anObject%0A%20%20%20%20%5Eself%20h4%20with%3A%20anObject'),
  675. messageSends: ["with:", "h4"],
  676. referencedClasses: []
  677. }),
  678. smalltalk.HTMLCanvas);
  679. smalltalk.addMethod(
  680. unescape('_h5_'),
  681. smalltalk.method({
  682. selector: unescape('h5%3A'),
  683. category: 'tags',
  684. fn: function (anObject){
  685. var self=this;
  686. return smalltalk.send(smalltalk.send(self, "_h5", []), "_with_", [anObject]);
  687. return self;},
  688. args: ["anObject"],
  689. source: unescape('h5%3A%20anObject%0A%20%20%20%20%5Eself%20h5%20with%3A%20anObject'),
  690. messageSends: ["with:", "h5"],
  691. referencedClasses: []
  692. }),
  693. smalltalk.HTMLCanvas);
  694. smalltalk.addMethod(
  695. unescape('_h6_'),
  696. smalltalk.method({
  697. selector: unescape('h6%3A'),
  698. category: 'tags',
  699. fn: function (anObject){
  700. var self=this;
  701. return smalltalk.send(smalltalk.send(self, "_h6", []), "_with_", [anObject]);
  702. return self;},
  703. args: ["anObject"],
  704. source: unescape('h6%3A%20anObject%0A%20%20%20%20%5Eself%20h6%20with%3A%20anObject'),
  705. messageSends: ["with:", "h6"],
  706. referencedClasses: []
  707. }),
  708. smalltalk.HTMLCanvas);
  709. smalltalk.addMethod(
  710. unescape('_img_'),
  711. smalltalk.method({
  712. selector: unescape('img%3A'),
  713. category: 'tags',
  714. fn: function (aString){
  715. var self=this;
  716. return smalltalk.send(smalltalk.send(self, "_img", []), "_src_", [aString]);
  717. return self;},
  718. args: ["aString"],
  719. source: unescape('img%3A%20aString%0A%20%20%20%20%5Eself%20img%20src%3A%20aString'),
  720. messageSends: ["src:", "img"],
  721. referencedClasses: []
  722. }),
  723. smalltalk.HTMLCanvas);
  724. smalltalk.addMethod(
  725. unescape('_ol_'),
  726. smalltalk.method({
  727. selector: unescape('ol%3A'),
  728. category: 'tags',
  729. fn: function (anObject){
  730. var self=this;
  731. return smalltalk.send(smalltalk.send(self, "_ol", []), "_with_", [anObject]);
  732. return self;},
  733. args: ["anObject"],
  734. source: unescape('ol%3A%20anObject%0A%20%20%20%20%5Eself%20ol%20with%3A%20anObject'),
  735. messageSends: ["with:", "ol"],
  736. referencedClasses: []
  737. }),
  738. smalltalk.HTMLCanvas);
  739. smalltalk.addMethod(
  740. unescape('_li_'),
  741. smalltalk.method({
  742. selector: unescape('li%3A'),
  743. category: 'tags',
  744. fn: function (anObject){
  745. var self=this;
  746. return smalltalk.send(smalltalk.send(self, "_li", []), "_with_", [anObject]);
  747. return self;},
  748. args: ["anObject"],
  749. source: unescape('li%3A%20anObject%0A%20%20%20%20%5Eself%20li%20with%3A%20anObject'),
  750. messageSends: ["with:", "li"],
  751. referencedClasses: []
  752. }),
  753. smalltalk.HTMLCanvas);
  754. smalltalk.addMethod(
  755. unescape('_ul_'),
  756. smalltalk.method({
  757. selector: unescape('ul%3A'),
  758. category: 'tags',
  759. fn: function (anObject){
  760. var self=this;
  761. return smalltalk.send(smalltalk.send(self, "_ul", []), "_with_", [anObject]);
  762. return self;},
  763. args: ["anObject"],
  764. source: unescape('ul%3A%20anObject%0A%20%20%20%20%5Eself%20ul%20with%3A%20anObject'),
  765. messageSends: ["with:", "ul"],
  766. referencedClasses: []
  767. }),
  768. smalltalk.HTMLCanvas);
  769. smalltalk.addMethod(
  770. unescape('_span_'),
  771. smalltalk.method({
  772. selector: unescape('span%3A'),
  773. category: 'tags',
  774. fn: function (anObject){
  775. var self=this;
  776. return smalltalk.send(smalltalk.send(self, "_span", []), "_with_", [anObject]);
  777. return self;},
  778. args: ["anObject"],
  779. source: unescape('span%3A%20anObject%0A%20%20%20%20%5Eself%20span%20with%3A%20anObject'),
  780. messageSends: ["with:", "span"],
  781. referencedClasses: []
  782. }),
  783. smalltalk.HTMLCanvas);
  784. smalltalk.addMethod(
  785. unescape('_style_'),
  786. smalltalk.method({
  787. selector: unescape('style%3A'),
  788. category: 'tags',
  789. fn: function (aString){
  790. var self=this;
  791. return (function($rec){smalltalk.send($rec, "_with_", [aString]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_style", []));
  792. return self;},
  793. args: ["aString"],
  794. source: unescape('style%3A%20aString%0A%09%5E%20self%20style%20with%3A%20aString%3B%20yourself'),
  795. messageSends: ["with:", "yourself", "style"],
  796. referencedClasses: []
  797. }),
  798. smalltalk.HTMLCanvas);
  799. smalltalk.addMethod(
  800. unescape('_articles'),
  801. smalltalk.method({
  802. selector: unescape('articles'),
  803. category: 'tags',
  804. fn: function (){
  805. var self=this;
  806. return smalltalk.send(self, "_tag_", ["articles"]);
  807. return self;},
  808. args: [],
  809. source: unescape('articles%0A%20%20%20%20%5Eself%20tag%3A%20%27articles%27'),
  810. messageSends: ["tag:"],
  811. referencedClasses: []
  812. }),
  813. smalltalk.HTMLCanvas);
  814. smalltalk.addMethod(
  815. unescape('_audio'),
  816. smalltalk.method({
  817. selector: unescape('audio'),
  818. category: 'tags',
  819. fn: function (){
  820. var self=this;
  821. return smalltalk.send(self, "_tag_", ["audio"]);
  822. return self;},
  823. args: [],
  824. source: unescape('audio%0A%20%20%20%20%5Eself%20tag%3A%20%27audio%27'),
  825. messageSends: ["tag:"],
  826. referencedClasses: []
  827. }),
  828. smalltalk.HTMLCanvas);
  829. smalltalk.addMethod(
  830. unescape('_fieldset'),
  831. smalltalk.method({
  832. selector: unescape('fieldset'),
  833. category: 'tags',
  834. fn: function (){
  835. var self=this;
  836. return smalltalk.send(self, "_tag_", ["fieldset"]);
  837. return self;},
  838. args: [],
  839. source: unescape('fieldset%0A%20%20%20%20%5Eself%20tag%3A%20%27fieldset%27'),
  840. messageSends: ["tag:"],
  841. referencedClasses: []
  842. }),
  843. smalltalk.HTMLCanvas);
  844. smalltalk.addMethod(
  845. unescape('_footer'),
  846. smalltalk.method({
  847. selector: unescape('footer'),
  848. category: 'tags',
  849. fn: function (){
  850. var self=this;
  851. return smalltalk.send(self, "_tag_", ["footer"]);
  852. return self;},
  853. args: [],
  854. source: unescape('footer%0A%20%20%20%20%5Eself%20tag%3A%20%27footer%27'),
  855. messageSends: ["tag:"],
  856. referencedClasses: []
  857. }),
  858. smalltalk.HTMLCanvas);
  859. smalltalk.addMethod(
  860. unescape('_header'),
  861. smalltalk.method({
  862. selector: unescape('header'),
  863. category: 'tags',
  864. fn: function (){
  865. var self=this;
  866. return smalltalk.send(self, "_tag_", ["header"]);
  867. return self;},
  868. args: [],
  869. source: unescape('header%0A%20%20%20%20%5Eself%20tag%3A%20%27header%27'),
  870. messageSends: ["tag:"],
  871. referencedClasses: []
  872. }),
  873. smalltalk.HTMLCanvas);
  874. smalltalk.addMethod(
  875. unescape('_hr'),
  876. smalltalk.method({
  877. selector: unescape('hr'),
  878. category: 'tags',
  879. fn: function (){
  880. var self=this;
  881. return smalltalk.send(self, "_tag_", ["hr"]);
  882. return self;},
  883. args: [],
  884. source: unescape('hr%0A%20%20%20%20%5Eself%20tag%3A%20%27hr%27'),
  885. messageSends: ["tag:"],
  886. referencedClasses: []
  887. }),
  888. smalltalk.HTMLCanvas);
  889. smalltalk.addMethod(
  890. unescape('_section'),
  891. smalltalk.method({
  892. selector: unescape('section'),
  893. category: 'tags',
  894. fn: function (){
  895. var self=this;
  896. return smalltalk.send(self, "_tag_", ["section"]);
  897. return self;},
  898. args: [],
  899. source: unescape('section%0A%20%20%20%20%5Eself%20tag%3A%20%27section%27'),
  900. messageSends: ["tag:"],
  901. referencedClasses: []
  902. }),
  903. smalltalk.HTMLCanvas);
  904. smalltalk.addMethod(
  905. unescape('_tbody'),
  906. smalltalk.method({
  907. selector: unescape('tbody'),
  908. category: 'tags',
  909. fn: function (){
  910. var self=this;
  911. return smalltalk.send(self, "_tag_", ["tbody"]);
  912. return self;},
  913. args: [],
  914. source: unescape('tbody%0A%20%20%20%20%5Eself%20tag%3A%20%27tbody%27'),
  915. messageSends: ["tag:"],
  916. referencedClasses: []
  917. }),
  918. smalltalk.HTMLCanvas);
  919. smalltalk.addMethod(
  920. unescape('_tfoot'),
  921. smalltalk.method({
  922. selector: unescape('tfoot'),
  923. category: 'tags',
  924. fn: function (){
  925. var self=this;
  926. return smalltalk.send(self, "_tag_", ["tfoot"]);
  927. return self;},
  928. args: [],
  929. source: unescape('tfoot%0A%20%20%20%20%5Eself%20tag%3A%20%27tfoot%27'),
  930. messageSends: ["tag:"],
  931. referencedClasses: []
  932. }),
  933. smalltalk.HTMLCanvas);
  934. smalltalk.addMethod(
  935. unescape('_thead'),
  936. smalltalk.method({
  937. selector: unescape('thead'),
  938. category: 'tags',
  939. fn: function (){
  940. var self=this;
  941. return smalltalk.send(self, "_tag_", ["thead"]);
  942. return self;},
  943. args: [],
  944. source: unescape('thead%0A%20%20%20%20%5Eself%20tag%3A%20%27thead%27'),
  945. messageSends: ["tag:"],
  946. referencedClasses: []
  947. }),
  948. smalltalk.HTMLCanvas);
  949. smalltalk.addMethod(
  950. unescape('_video'),
  951. smalltalk.method({
  952. selector: unescape('video'),
  953. category: 'tags',
  954. fn: function (){
  955. var self=this;
  956. return smalltalk.send(self, "_tag_", ["video"]);
  957. return self;},
  958. args: [],
  959. source: unescape('video%0A%20%20%20%20%5Eself%20tag%3A%20%27video%27'),
  960. messageSends: ["tag:"],
  961. referencedClasses: []
  962. }),
  963. smalltalk.HTMLCanvas);
  964. smalltalk.addMethod(
  965. unescape('_onJQuery_'),
  966. smalltalk.method({
  967. selector: unescape('onJQuery%3A'),
  968. category: 'instance creation',
  969. fn: function (aJQuery){
  970. var self=this;
  971. return (function($rec){smalltalk.send($rec, "_initializeFromJQuery_", [aJQuery]);smalltalk.send($rec, "_initialize", []);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_basicNew", []));
  972. return self;},
  973. args: ["aJQuery"],
  974. source: unescape('onJQuery%3A%20aJQuery%0A%09%5Eself%20basicNew%0A%09%09initializeFromJQuery%3A%20aJQuery%3B%0A%09%09initialize%3B%0A%09%09yourself'),
  975. messageSends: ["initializeFromJQuery:", "initialize", "yourself", "basicNew"],
  976. referencedClasses: []
  977. }),
  978. smalltalk.HTMLCanvas.klass);
  979. smalltalk.addClass('TagBrush', smalltalk.Object, ['canvas', 'element'], 'Canvas');
  980. smalltalk.addMethod(
  981. unescape('_element'),
  982. smalltalk.method({
  983. selector: unescape('element'),
  984. category: 'accessing',
  985. fn: function (){
  986. var self=this;
  987. return self['@element'];
  988. return self;},
  989. args: [],
  990. source: unescape('element%0A%20%20%20%20%5Eelement'),
  991. messageSends: [],
  992. referencedClasses: []
  993. }),
  994. smalltalk.TagBrush);
  995. smalltalk.addMethod(
  996. unescape('_contents_'),
  997. smalltalk.method({
  998. selector: unescape('contents%3A'),
  999. category: 'adding',
  1000. fn: function (anObject){
  1001. var self=this;
  1002. (function($rec){smalltalk.send($rec, "_empty", []);return smalltalk.send($rec, "_append_", [anObject]);})(self);
  1003. return self;},
  1004. args: ["anObject"],
  1005. source: unescape('contents%3A%20anObject%0A%20%20%20%20self%20%0A%09empty%3B%0A%20%20%20%09append%3A%20anObject'),
  1006. messageSends: ["empty", "append:"],
  1007. referencedClasses: []
  1008. }),
  1009. smalltalk.TagBrush);
  1010. smalltalk.addMethod(
  1011. unescape('_addBrush_'),
  1012. smalltalk.method({
  1013. selector: unescape('addBrush%3A'),
  1014. category: 'adding',
  1015. fn: function (aTagBrush){
  1016. var self=this;
  1017. smalltalk.send(self, "_appendChild_", [smalltalk.send(aTagBrush, "_element", [])]);
  1018. return aTagBrush;
  1019. return self;},
  1020. args: ["aTagBrush"],
  1021. source: unescape('addBrush%3A%20aTagBrush%0A%20%20%20%20self%20appendChild%3A%20aTagBrush%20element.%0A%20%20%20%20%5EaTagBrush'),
  1022. messageSends: ["appendChild:", "element"],
  1023. referencedClasses: []
  1024. }),
  1025. smalltalk.TagBrush);
  1026. smalltalk.addMethod(
  1027. unescape('_with_'),
  1028. smalltalk.method({
  1029. selector: unescape('with%3A'),
  1030. category: 'adding',
  1031. fn: function (anObject){
  1032. var self=this;
  1033. smalltalk.send(self, "_append_", [anObject]);
  1034. return self;},
  1035. args: ["anObject"],
  1036. source: unescape('with%3A%20anObject%0A%20%20%20%20self%20append%3A%20anObject'),
  1037. messageSends: ["append:"],
  1038. referencedClasses: []
  1039. }),
  1040. smalltalk.TagBrush);
  1041. smalltalk.addMethod(
  1042. unescape('_append_'),
  1043. smalltalk.method({
  1044. selector: unescape('append%3A'),
  1045. category: 'adding',
  1046. fn: function (anObject){
  1047. var self=this;
  1048. smalltalk.send(anObject, "_appendToBrush_", [self]);
  1049. return self;},
  1050. args: ["anObject"],
  1051. source: unescape('append%3A%20anObject%0A%20%20%20%20anObject%20appendToBrush%3A%20self'),
  1052. messageSends: ["appendToBrush:"],
  1053. referencedClasses: []
  1054. }),
  1055. smalltalk.TagBrush);
  1056. smalltalk.addMethod(
  1057. unescape('_appendToBrush_'),
  1058. smalltalk.method({
  1059. selector: unescape('appendToBrush%3A'),
  1060. category: 'adding',
  1061. fn: function (aTagBrush){
  1062. var self=this;
  1063. smalltalk.send(aTagBrush, "_addBrush_", [self]);
  1064. return self;},
  1065. args: ["aTagBrush"],
  1066. source: unescape('appendToBrush%3A%20aTagBrush%0A%20%20%20%20aTagBrush%20addBrush%3A%20self'),
  1067. messageSends: ["addBrush:"],
  1068. referencedClasses: []
  1069. }),
  1070. smalltalk.TagBrush);
  1071. smalltalk.addMethod(
  1072. unescape('_appendBlock_'),
  1073. smalltalk.method({
  1074. selector: unescape('appendBlock%3A'),
  1075. category: 'adding',
  1076. fn: function (aBlock){
  1077. var self=this;
  1078. var root=nil;
  1079. root=smalltalk.send(self['@canvas'], "_root", []);
  1080. smalltalk.send(self['@canvas'], "_root_", [self]);
  1081. smalltalk.send(aBlock, "_value_", [self['@canvas']]);
  1082. smalltalk.send(self['@canvas'], "_root_", [root]);
  1083. return self;},
  1084. args: ["aBlock"],
  1085. source: unescape('appendBlock%3A%20aBlock%0A%20%20%20%20%7C%20root%20%7C%0A%20%20%20%20root%20%3A%3D%20canvas%20root.%0A%20%20%20%20canvas%20root%3A%20self.%0A%20%20%20%20aBlock%20value%3A%20canvas.%0A%20%20%20%20canvas%20root%3A%20root'),
  1086. messageSends: ["root", "root:", "value:"],
  1087. referencedClasses: []
  1088. }),
  1089. smalltalk.TagBrush);
  1090. smalltalk.addMethod(
  1091. unescape('_appendChild_'),
  1092. smalltalk.method({
  1093. selector: unescape('appendChild%3A'),
  1094. category: 'adding',
  1095. fn: function (anElement){
  1096. var self=this;
  1097. var element=self['@element'];
  1098. if (null == element.canHaveChildren || element.canHaveChildren) {
  1099. element.appendChild(anElement);
  1100. } else {
  1101. element.text = String(element.text) + anElement.innerHTML;
  1102. } ;
  1103. return self;},
  1104. args: ["anElement"],
  1105. source: unescape('appendChild%3A%20anElement%0A%09%22In%20IE7%20and%20IE8%20appendChild%20fails%20on%20several%20node%20types.%20So%20we%20need%20to%20check%22%20%0A%20%09%3Cvar%20element%3Dself%5B%27@element%27%5D%3B%0A%20%09if%20%28null%20%3D%3D%20element.canHaveChildren%20%7C%7C%20element.canHaveChildren%29%20%7B%0A%09%09element.appendChild%28anElement%29%3B%0A%20%09%7D%20else%20%7B%0A%20%09%09element.text%20%3D%20String%28element.text%29%20+%20%20anElement.innerHTML%3B%0A%20%09%7D%20%3E'),
  1106. messageSends: [],
  1107. referencedClasses: []
  1108. }),
  1109. smalltalk.TagBrush);
  1110. smalltalk.addMethod(
  1111. unescape('_appendString_'),
  1112. smalltalk.method({
  1113. selector: unescape('appendString%3A'),
  1114. category: 'adding',
  1115. fn: function (aString){
  1116. var self=this;
  1117. smalltalk.send(self, "_appendChild_", [smalltalk.send(self, "_createTextNodeFor_", [aString])]);
  1118. return self;},
  1119. args: ["aString"],
  1120. source: unescape('appendString%3A%20aString%0A%20%20%20%20self%20appendChild%3A%20%28self%20createTextNodeFor%3A%20aString%29'),
  1121. messageSends: ["appendChild:", "createTextNodeFor:"],
  1122. referencedClasses: []
  1123. }),
  1124. smalltalk.TagBrush);
  1125. smalltalk.addMethod(
  1126. unescape('_empty'),
  1127. smalltalk.method({
  1128. selector: unescape('empty'),
  1129. category: 'adding',
  1130. fn: function (){
  1131. var self=this;
  1132. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_empty", []);
  1133. return self;},
  1134. args: [],
  1135. source: unescape('empty%0A%09self%20asJQuery%20empty'),
  1136. messageSends: ["empty", "asJQuery"],
  1137. referencedClasses: []
  1138. }),
  1139. smalltalk.TagBrush);
  1140. smalltalk.addMethod(
  1141. unescape('_at_put_'),
  1142. smalltalk.method({
  1143. selector: unescape('at%3Aput%3A'),
  1144. category: 'attributes',
  1145. fn: function (aString, aValue){
  1146. var self=this;
  1147. self['@element'].setAttribute(aString, aValue);
  1148. return self;},
  1149. args: ["aString", "aValue"],
  1150. source: unescape('at%3A%20aString%20put%3A%20aValue%0A%20%20%20%20%3Cself%5B%27@element%27%5D.setAttribute%28aString%2C%20aValue%29%3E'),
  1151. messageSends: [],
  1152. referencedClasses: []
  1153. }),
  1154. smalltalk.TagBrush);
  1155. smalltalk.addMethod(
  1156. unescape('_removeAt_'),
  1157. smalltalk.method({
  1158. selector: unescape('removeAt%3A'),
  1159. category: 'attributes',
  1160. fn: function (aString){
  1161. var self=this;
  1162. self['@element'].removeAttribute(aString);
  1163. return self;},
  1164. args: ["aString"],
  1165. source: unescape('removeAt%3A%20aString%0A%20%20%20%20%3Cself%5B%27@element%27%5D.removeAttribute%28aString%29%3E'),
  1166. messageSends: [],
  1167. referencedClasses: []
  1168. }),
  1169. smalltalk.TagBrush);
  1170. smalltalk.addMethod(
  1171. unescape('_class_'),
  1172. smalltalk.method({
  1173. selector: unescape('class%3A'),
  1174. category: 'attributes',
  1175. fn: function (aString){
  1176. var self=this;
  1177. self['@element'].className = aString;
  1178. return self;},
  1179. args: ["aString"],
  1180. source: unescape('class%3A%20aString%0A%20%20%20%20%20%20%3Cself%5B%27@element%27%5D.className%20%3D%20aString%3E'),
  1181. messageSends: [],
  1182. referencedClasses: []
  1183. }),
  1184. smalltalk.TagBrush);
  1185. smalltalk.addMethod(
  1186. unescape('_id_'),
  1187. smalltalk.method({
  1188. selector: unescape('id%3A'),
  1189. category: 'attributes',
  1190. fn: function (aString){
  1191. var self=this;
  1192. smalltalk.send(self, "_at_put_", ["id", aString]);
  1193. return self;},
  1194. args: ["aString"],
  1195. source: unescape('id%3A%20aString%0A%20%20%20%20self%20at%3A%20%27id%27%20put%3A%20aString'),
  1196. messageSends: ["at:put:"],
  1197. referencedClasses: []
  1198. }),
  1199. smalltalk.TagBrush);
  1200. smalltalk.addMethod(
  1201. unescape('_src_'),
  1202. smalltalk.method({
  1203. selector: unescape('src%3A'),
  1204. category: 'attributes',
  1205. fn: function (aString){
  1206. var self=this;
  1207. smalltalk.send(self, "_at_put_", ["src", aString]);
  1208. return self;},
  1209. args: ["aString"],
  1210. source: unescape('src%3A%20aString%0A%20%20%20%20self%20%20at%3A%20%27src%27%20put%3A%20aString'),
  1211. messageSends: ["at:put:"],
  1212. referencedClasses: []
  1213. }),
  1214. smalltalk.TagBrush);
  1215. smalltalk.addMethod(
  1216. unescape('_href_'),
  1217. smalltalk.method({
  1218. selector: unescape('href%3A'),
  1219. category: 'attributes',
  1220. fn: function (aString){
  1221. var self=this;
  1222. smalltalk.send(self, "_at_put_", ["href", aString]);
  1223. return self;},
  1224. args: ["aString"],
  1225. source: unescape('href%3A%20aString%0A%20%20%20%20self%20at%3A%20%27href%27%20put%3A%20aString'),
  1226. messageSends: ["at:put:"],
  1227. referencedClasses: []
  1228. }),
  1229. smalltalk.TagBrush);
  1230. smalltalk.addMethod(
  1231. unescape('_title_'),
  1232. smalltalk.method({
  1233. selector: unescape('title%3A'),
  1234. category: 'attributes',
  1235. fn: function (aString){
  1236. var self=this;
  1237. smalltalk.send(self, "_at_put_", ["title", aString]);
  1238. return self;},
  1239. args: ["aString"],
  1240. source: unescape('title%3A%20aString%0A%20%20%20%20self%20at%3A%20%27title%27%20put%3A%20aString'),
  1241. messageSends: ["at:put:"],
  1242. referencedClasses: []
  1243. }),
  1244. smalltalk.TagBrush);
  1245. smalltalk.addMethod(
  1246. unescape('_style_'),
  1247. smalltalk.method({
  1248. selector: unescape('style%3A'),
  1249. category: 'attributes',
  1250. fn: function (aString){
  1251. var self=this;
  1252. smalltalk.send(self, "_at_put_", ["style", aString]);
  1253. return self;},
  1254. args: ["aString"],
  1255. source: unescape('style%3A%20aString%0A%20%20%20%20self%20at%3A%20%27style%27%20put%3A%20aString'),
  1256. messageSends: ["at:put:"],
  1257. referencedClasses: []
  1258. }),
  1259. smalltalk.TagBrush);
  1260. smalltalk.addMethod(
  1261. unescape('_type_'),
  1262. smalltalk.method({
  1263. selector: unescape('type%3A'),
  1264. category: 'attributes',
  1265. fn: function (aString){
  1266. var self=this;
  1267. smalltalk.send(self, "_at_put_", ["type", aString]);
  1268. return self;},
  1269. args: ["aString"],
  1270. source: unescape('type%3A%20aString%0A%20%20%20%20self%20at%3A%20%27type%27%20put%3A%20aString'),
  1271. messageSends: ["at:put:"],
  1272. referencedClasses: []
  1273. }),
  1274. smalltalk.TagBrush);
  1275. smalltalk.addMethod(
  1276. unescape('_media_'),
  1277. smalltalk.method({
  1278. selector: unescape('media%3A'),
  1279. category: 'attributes',
  1280. fn: function (aString){
  1281. var self=this;
  1282. smalltalk.send(self, "_at_put_", ["media", aString]);
  1283. return self;},
  1284. args: ["aString"],
  1285. source: unescape('media%3A%20aString%0A%20%20%20%20self%20at%3A%20%27media%27%20put%3A%20aString'),
  1286. messageSends: ["at:put:"],
  1287. referencedClasses: []
  1288. }),
  1289. smalltalk.TagBrush);
  1290. smalltalk.addMethod(
  1291. unescape('_rel_'),
  1292. smalltalk.method({
  1293. selector: unescape('rel%3A'),
  1294. category: 'attributes',
  1295. fn: function (aString){
  1296. var self=this;
  1297. smalltalk.send(self, "_at_put_", ["rel", aString]);
  1298. return self;},
  1299. args: ["aString"],
  1300. source: unescape('rel%3A%20aString%0A%20%20%20%20self%20%20at%3A%20%27rel%27%20put%3A%20aString'),
  1301. messageSends: ["at:put:"],
  1302. referencedClasses: []
  1303. }),
  1304. smalltalk.TagBrush);
  1305. smalltalk.addMethod(
  1306. unescape('_width_'),
  1307. smalltalk.method({
  1308. selector: unescape('width%3A'),
  1309. category: 'attributes',
  1310. fn: function (aString){
  1311. var self=this;
  1312. smalltalk.send(self, "_at_put_", ["width", aString]);
  1313. return self;},
  1314. args: ["aString"],
  1315. source: unescape('width%3A%20aString%0A%20%20%20%20self%20%20at%3A%20%27width%27%20put%3A%20aString'),
  1316. messageSends: ["at:put:"],
  1317. referencedClasses: []
  1318. }),
  1319. smalltalk.TagBrush);
  1320. smalltalk.addMethod(
  1321. unescape('_height_'),
  1322. smalltalk.method({
  1323. selector: unescape('height%3A'),
  1324. category: 'attributes',
  1325. fn: function (aString){
  1326. var self=this;
  1327. smalltalk.send(self, "_at_put_", ["height", aString]);
  1328. return self;},
  1329. args: ["aString"],
  1330. source: unescape('height%3A%20aString%0A%20%20%20%20self%20%20at%3A%20%27height%27%20put%3A%20aString'),
  1331. messageSends: ["at:put:"],
  1332. referencedClasses: []
  1333. }),
  1334. smalltalk.TagBrush);
  1335. smalltalk.addMethod(
  1336. unescape('_value_'),
  1337. smalltalk.method({
  1338. selector: unescape('value%3A'),
  1339. category: 'attributes',
  1340. fn: function (aString){
  1341. var self=this;
  1342. smalltalk.send(self, "_at_put_", ["value", aString]);
  1343. return self;},
  1344. args: ["aString"],
  1345. source: unescape('value%3A%20aString%0A%20%20%20%20self%20%20at%3A%20%27value%27%20put%3A%20aString'),
  1346. messageSends: ["at:put:"],
  1347. referencedClasses: []
  1348. }),
  1349. smalltalk.TagBrush);
  1350. smalltalk.addMethod(
  1351. unescape('_asJQuery'),
  1352. smalltalk.method({
  1353. selector: unescape('asJQuery'),
  1354. category: 'converting',
  1355. fn: function (){
  1356. var self=this;
  1357. return smalltalk.send((typeof window == 'undefined' ? nil : window), "_jQuery_", [smalltalk.send(self, "_element", [])]);
  1358. return self;},
  1359. args: [],
  1360. source: unescape('asJQuery%0A%20%20%20%20%5Ewindow%20jQuery%3A%20self%20element'),
  1361. messageSends: ["jQuery:", "element"],
  1362. referencedClasses: []
  1363. }),
  1364. smalltalk.TagBrush);
  1365. smalltalk.addMethod(
  1366. unescape('_onKeyDown_'),
  1367. smalltalk.method({
  1368. selector: unescape('onKeyDown%3A'),
  1369. category: 'events',
  1370. fn: function (aBlock){
  1371. var self=this;
  1372. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["keydown", aBlock]);
  1373. return self;},
  1374. args: ["aBlock"],
  1375. source: unescape('onKeyDown%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20bind%3A%20%27keydown%27%20do%3A%20aBlock'),
  1376. messageSends: ["bind:do:", "asJQuery"],
  1377. referencedClasses: []
  1378. }),
  1379. smalltalk.TagBrush);
  1380. smalltalk.addMethod(
  1381. unescape('_onKeyPress_'),
  1382. smalltalk.method({
  1383. selector: unescape('onKeyPress%3A'),
  1384. category: 'events',
  1385. fn: function (aBlock){
  1386. var self=this;
  1387. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["keypress", aBlock]);
  1388. return self;},
  1389. args: ["aBlock"],
  1390. source: unescape('onKeyPress%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20bind%3A%20%27keypress%27%20do%3A%20aBlock'),
  1391. messageSends: ["bind:do:", "asJQuery"],
  1392. referencedClasses: []
  1393. }),
  1394. smalltalk.TagBrush);
  1395. smalltalk.addMethod(
  1396. unescape('_onKeyUp_'),
  1397. smalltalk.method({
  1398. selector: unescape('onKeyUp%3A'),
  1399. category: 'events',
  1400. fn: function (aBlock){
  1401. var self=this;
  1402. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["keyup", aBlock]);
  1403. return self;},
  1404. args: ["aBlock"],
  1405. source: unescape('onKeyUp%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20bind%3A%20%27keyup%27%20do%3A%20aBlock'),
  1406. messageSends: ["bind:do:", "asJQuery"],
  1407. referencedClasses: []
  1408. }),
  1409. smalltalk.TagBrush);
  1410. smalltalk.addMethod(
  1411. unescape('_onFocus_'),
  1412. smalltalk.method({
  1413. selector: unescape('onFocus%3A'),
  1414. category: 'events',
  1415. fn: function (aBlock){
  1416. var self=this;
  1417. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["focus", aBlock]);
  1418. return self;},
  1419. args: ["aBlock"],
  1420. source: unescape('onFocus%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20bind%3A%20%27focus%27%20do%3A%20aBlock'),
  1421. messageSends: ["bind:do:", "asJQuery"],
  1422. referencedClasses: []
  1423. }),
  1424. smalltalk.TagBrush);
  1425. smalltalk.addMethod(
  1426. unescape('_onBlur_'),
  1427. smalltalk.method({
  1428. selector: unescape('onBlur%3A'),
  1429. category: 'events',
  1430. fn: function (aBlock){
  1431. var self=this;
  1432. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["blur", aBlock]);
  1433. return self;},
  1434. args: ["aBlock"],
  1435. source: unescape('onBlur%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20bind%3A%20%27blur%27%20do%3A%20aBlock'),
  1436. messageSends: ["bind:do:", "asJQuery"],
  1437. referencedClasses: []
  1438. }),
  1439. smalltalk.TagBrush);
  1440. smalltalk.addMethod(
  1441. unescape('_onChange_'),
  1442. smalltalk.method({
  1443. selector: unescape('onChange%3A'),
  1444. category: 'events',
  1445. fn: function (aBlock){
  1446. var self=this;
  1447. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["change", aBlock]);
  1448. return self;},
  1449. args: ["aBlock"],
  1450. source: unescape('onChange%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20bind%3A%20%27change%27%20do%3A%20aBlock'),
  1451. messageSends: ["bind:do:", "asJQuery"],
  1452. referencedClasses: []
  1453. }),
  1454. smalltalk.TagBrush);
  1455. smalltalk.addMethod(
  1456. unescape('_onClick_'),
  1457. smalltalk.method({
  1458. selector: unescape('onClick%3A'),
  1459. category: 'events',
  1460. fn: function (aBlock){
  1461. var self=this;
  1462. smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["click", aBlock]);
  1463. return self;},
  1464. args: ["aBlock"],
  1465. source: unescape('onClick%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20bind%3A%20%27click%27%20do%3A%20aBlock'),
  1466. messageSends: ["bind:do:", "asJQuery"],
  1467. referencedClasses: []
  1468. }),
  1469. smalltalk.TagBrush);
  1470. smalltalk.addMethod(
  1471. unescape('_initializeFromString_canvas_'),
  1472. smalltalk.method({
  1473. selector: unescape('initializeFromString%3Acanvas%3A'),
  1474. category: 'initialization',
  1475. fn: function (aString, aCanvas){
  1476. var self=this;
  1477. self['@element']=smalltalk.send(self, "_createElementFor_", [aString]);
  1478. self['@canvas']=aCanvas;
  1479. return self;},
  1480. args: ["aString", "aCanvas"],
  1481. source: unescape('initializeFromString%3A%20aString%20canvas%3A%20aCanvas%0A%20%20%20%20element%20%3A%3D%20self%20createElementFor%3A%20aString.%0A%20%20%20%20canvas%20%3A%3D%20aCanvas'),
  1482. messageSends: ["createElementFor:"],
  1483. referencedClasses: []
  1484. }),
  1485. smalltalk.TagBrush);
  1486. smalltalk.addMethod(
  1487. unescape('_initializeFromJQuery_canvas_'),
  1488. smalltalk.method({
  1489. selector: unescape('initializeFromJQuery%3Acanvas%3A'),
  1490. category: 'initialization',
  1491. fn: function (aJQuery, aCanvas){
  1492. var self=this;
  1493. self['@element']=smalltalk.send(aJQuery, "_get_", [(0)]);
  1494. self['@canvas']=aCanvas;
  1495. return self;},
  1496. args: ["aJQuery", "aCanvas"],
  1497. source: unescape('initializeFromJQuery%3A%20aJQuery%20canvas%3A%20aCanvas%0A%20%20%20%20element%20%3A%3D%20aJQuery%20get%3A%200.%0A%20%20%20%20canvas%20%3A%3D%20aCanvas'),
  1498. messageSends: ["get:"],
  1499. referencedClasses: []
  1500. }),
  1501. smalltalk.TagBrush);
  1502. smalltalk.addMethod(
  1503. unescape('_createElementFor_'),
  1504. smalltalk.method({
  1505. selector: unescape('createElementFor%3A'),
  1506. category: 'private',
  1507. fn: function (aString){
  1508. var self=this;
  1509. return document.createElement(String(aString));
  1510. return self;},
  1511. args: ["aString"],
  1512. source: unescape('createElementFor%3A%20aString%0A%09%3Creturn%20document.createElement%28String%28aString%29%29%3E'),
  1513. messageSends: [],
  1514. referencedClasses: []
  1515. }),
  1516. smalltalk.TagBrush);
  1517. smalltalk.addMethod(
  1518. unescape('_createTextNodeFor_'),
  1519. smalltalk.method({
  1520. selector: unescape('createTextNodeFor%3A'),
  1521. category: 'private',
  1522. fn: function (aString){
  1523. var self=this;
  1524. return document.createTextNode(String(aString));
  1525. return self;},
  1526. args: ["aString"],
  1527. source: unescape('createTextNodeFor%3A%20aString%0A%09%3Creturn%20document.createTextNode%28String%28aString%29%29%3E'),
  1528. messageSends: [],
  1529. referencedClasses: []
  1530. }),
  1531. smalltalk.TagBrush);
  1532. smalltalk.addMethod(
  1533. unescape('_fromString_canvas_'),
  1534. smalltalk.method({
  1535. selector: unescape('fromString%3Acanvas%3A'),
  1536. category: 'instance creation',
  1537. fn: function (aString, aCanvas){
  1538. var self=this;
  1539. return (function($rec){smalltalk.send($rec, "_initializeFromString_canvas_", [aString, aCanvas]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  1540. return self;},
  1541. args: ["aString", "aCanvas"],
  1542. source: unescape('fromString%3A%20aString%20canvas%3A%20aCanvas%0A%20%20%20%20%5Eself%20new%0A%09initializeFromString%3A%20aString%20canvas%3A%20aCanvas%3B%0A%09yourself'),
  1543. messageSends: ["initializeFromString:canvas:", "yourself", "new"],
  1544. referencedClasses: []
  1545. }),
  1546. smalltalk.TagBrush.klass);
  1547. smalltalk.addMethod(
  1548. unescape('_fromJQuery_canvas_'),
  1549. smalltalk.method({
  1550. selector: unescape('fromJQuery%3Acanvas%3A'),
  1551. category: 'instance creation',
  1552. fn: function (aJQuery, aCanvas){
  1553. var self=this;
  1554. return (function($rec){smalltalk.send($rec, "_initializeFromJQuery_canvas_", [aJQuery, aCanvas]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  1555. return self;},
  1556. args: ["aJQuery", "aCanvas"],
  1557. source: unescape('fromJQuery%3A%20aJQuery%20canvas%3A%20aCanvas%0A%20%20%20%20%5Eself%20new%0A%09initializeFromJQuery%3A%20aJQuery%20canvas%3A%20aCanvas%3B%0A%09yourself'),
  1558. messageSends: ["initializeFromJQuery:canvas:", "yourself", "new"],
  1559. referencedClasses: []
  1560. }),
  1561. smalltalk.TagBrush.klass);
  1562. smalltalk.addClass('Widget', smalltalk.Object, [], 'Canvas');
  1563. smalltalk.addMethod(
  1564. unescape('_appendToBrush_'),
  1565. smalltalk.method({
  1566. selector: unescape('appendToBrush%3A'),
  1567. category: 'adding',
  1568. fn: function (aTagBrush){
  1569. var self=this;
  1570. smalltalk.send(self, "_appendToJQuery_", [smalltalk.send(aTagBrush, "_asJQuery", [])]);
  1571. return self;},
  1572. args: ["aTagBrush"],
  1573. source: unescape('appendToBrush%3A%20aTagBrush%0A%20%20%20%20self%20appendToJQuery%3A%20aTagBrush%20asJQuery'),
  1574. messageSends: ["appendToJQuery:", "asJQuery"],
  1575. referencedClasses: []
  1576. }),
  1577. smalltalk.Widget);
  1578. smalltalk.addMethod(
  1579. unescape('_appendToJQuery_'),
  1580. smalltalk.method({
  1581. selector: unescape('appendToJQuery%3A'),
  1582. category: 'adding',
  1583. fn: function (aJQuery){
  1584. var self=this;
  1585. smalltalk.send(self, "_renderOn_", [smalltalk.send((smalltalk.HTMLCanvas || HTMLCanvas), "_onJQuery_", [aJQuery])]);
  1586. return self;},
  1587. args: ["aJQuery"],
  1588. source: unescape('appendToJQuery%3A%20aJQuery%0A%20%20%20self%20renderOn%3A%20%28HTMLCanvas%20onJQuery%3A%20aJQuery%29'),
  1589. messageSends: ["renderOn:", "onJQuery:"],
  1590. referencedClasses: ["HTMLCanvas"]
  1591. }),
  1592. smalltalk.Widget);
  1593. smalltalk.addMethod(
  1594. unescape('_renderOn_'),
  1595. smalltalk.method({
  1596. selector: unescape('renderOn%3A'),
  1597. category: 'rendering',
  1598. fn: function (html){
  1599. var self=this;
  1600. self;
  1601. return self;},
  1602. args: ["html"],
  1603. source: unescape('renderOn%3A%20html%0A%20%20%20%20self'),
  1604. messageSends: [],
  1605. referencedClasses: []
  1606. }),
  1607. smalltalk.Widget);
  1608. smalltalk.addMethod(
  1609. unescape('_appendToJQuery_'),
  1610. smalltalk.method({
  1611. selector: unescape('appendToJQuery%3A'),
  1612. category: '*Canvas',
  1613. fn: function (aJQuery){
  1614. var self=this;
  1615. smalltalk.send(aJQuery, "_append_", [smalltalk.send(self, "_asString", [])]);
  1616. return self;},
  1617. args: ["aJQuery"],
  1618. source: unescape('appendToJQuery%3A%20aJQuery%0A%20%20%20%20aJQuery%20append%3A%20self%20asString'),
  1619. messageSends: ["append:", "asString"],
  1620. referencedClasses: []
  1621. }),
  1622. smalltalk.Object);
  1623. smalltalk.addMethod(
  1624. unescape('_appendToBrush_'),
  1625. smalltalk.method({
  1626. selector: unescape('appendToBrush%3A'),
  1627. category: '*Canvas',
  1628. fn: function (aTagBrush){
  1629. var self=this;
  1630. smalltalk.send(aTagBrush, "_append_", [smalltalk.send(self, "_asString", [])]);
  1631. return self;},
  1632. args: ["aTagBrush"],
  1633. source: unescape('appendToBrush%3A%20aTagBrush%0A%20%20%20%20aTagBrush%20append%3A%20self%20asString'),
  1634. messageSends: ["append:", "asString"],
  1635. referencedClasses: []
  1636. }),
  1637. smalltalk.Object);
  1638. smalltalk.addMethod(
  1639. unescape('_appendToJQuery_'),
  1640. smalltalk.method({
  1641. selector: unescape('appendToJQuery%3A'),
  1642. category: '*Canvas',
  1643. fn: function (aJQuery){
  1644. var self=this;
  1645. smalltalk.send(self, "_value_", [smalltalk.send((smalltalk.HTMLCanvas || HTMLCanvas), "_onJQuery_", [aJQuery])]);
  1646. return self;},
  1647. args: ["aJQuery"],
  1648. source: unescape('appendToJQuery%3A%20aJQuery%0A%20%20%20%20self%20value%3A%20%28HTMLCanvas%20onJQuery%3A%20aJQuery%29'),
  1649. messageSends: ["value:", "onJQuery:"],
  1650. referencedClasses: ["HTMLCanvas"]
  1651. }),
  1652. smalltalk.BlockClosure);
  1653. smalltalk.addMethod(
  1654. unescape('_appendToBrush_'),
  1655. smalltalk.method({
  1656. selector: unescape('appendToBrush%3A'),
  1657. category: '*Canvas',
  1658. fn: function (aTagBrush){
  1659. var self=this;
  1660. smalltalk.send(aTagBrush, "_appendBlock_", [self]);
  1661. return self;},
  1662. args: ["aTagBrush"],
  1663. source: unescape('appendToBrush%3A%20aTagBrush%0A%20%20%20%20aTagBrush%20appendBlock%3A%20self'),
  1664. messageSends: ["appendBlock:"],
  1665. referencedClasses: []
  1666. }),
  1667. smalltalk.BlockClosure);
  1668. smalltalk.addMethod(
  1669. unescape('_asJQuery'),
  1670. smalltalk.method({
  1671. selector: unescape('asJQuery'),
  1672. category: '*Canvas',
  1673. fn: function (){
  1674. var self=this;
  1675. return jQuery(String(self));
  1676. return self;},
  1677. args: [],
  1678. source: unescape('asJQuery%0A%20%20%20%20%3Creturn%20jQuery%28String%28self%29%29%3E'),
  1679. messageSends: [],
  1680. referencedClasses: []
  1681. }),
  1682. smalltalk.String);
  1683. smalltalk.addMethod(
  1684. unescape('_appendToJQuery_'),
  1685. smalltalk.method({
  1686. selector: unescape('appendToJQuery%3A'),
  1687. category: '*Canvas',
  1688. fn: function (aJQuery){
  1689. var self=this;
  1690. smalltalk.send(aJQuery, "_append_", [self]);
  1691. return self;},
  1692. args: ["aJQuery"],
  1693. source: unescape('appendToJQuery%3A%20aJQuery%0A%20%20%20%20aJQuery%20append%3A%20self'),
  1694. messageSends: ["append:"],
  1695. referencedClasses: []
  1696. }),
  1697. smalltalk.String);
  1698. smalltalk.addMethod(
  1699. unescape('_appendToBrush_'),
  1700. smalltalk.method({
  1701. selector: unescape('appendToBrush%3A'),
  1702. category: '*Canvas',
  1703. fn: function (aTagBrush){
  1704. var self=this;
  1705. smalltalk.send(aTagBrush, "_appendString_", [self]);
  1706. return self;},
  1707. args: ["aTagBrush"],
  1708. source: unescape('appendToBrush%3A%20aTagBrush%0A%20%20%20%20aTagBrush%20appendString%3A%20self'),
  1709. messageSends: ["appendString:"],
  1710. referencedClasses: []
  1711. }),
  1712. smalltalk.String);