Canvas.deploy.js 78 KB

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