2
0

Canvas.js 105 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859
  1. define("amber_core/Canvas", ["amber_vm/smalltalk", "amber_vm/nil", "amber_vm/_st", "amber_vm/globals", "amber_core/Kernel-Objects", "amber_core/Kernel-Infrastructure", "amber_core/Kernel-Methods", "amber_core/Kernel-Collections"], function(smalltalk,nil,_st, globals){
  2. smalltalk.addPackage('Canvas');
  3. smalltalk.packages["Canvas"].transport = {"type":"amd","amdNamespace":"amber_core"};
  4. smalltalk.addClass('BrowserInterface', globals.Object, [], 'Canvas');
  5. globals.BrowserInterface.comment="I am platform interface class that tries to use window and jQuery; that is, one for browser environment.\x0a\x0a## API\x0a\x0a self isAvailable. \x22true if window and jQuery exist\x22.\x0a\x0a self alert: 'Hey, there is a problem'.\x0a self confirm: 'Affirmative?'.\x0a self prompt: 'Your name:'.\x0a\x0a self ajax: #{\x0a 'url' -> '/patch.js'. 'type' -> 'GET'. dataType->'script'\x0a }.";
  6. smalltalk.addMethod(
  7. smalltalk.method({
  8. selector: "ajax:",
  9. protocol: 'actions',
  10. fn: function (anObject){
  11. var self=this;
  12. return smalltalk.withContext(function($ctx1) {
  13. var $1;
  14. $1=_st(jQuery)._ajax_(anObject);
  15. return $1;
  16. }, function($ctx1) {$ctx1.fill(self,"ajax:",{anObject:anObject},globals.BrowserInterface)})},
  17. args: ["anObject"],
  18. source: "ajax: anObject\x0a\x09^ jQuery ajax: anObject",
  19. messageSends: ["ajax:"],
  20. referencedClasses: []
  21. }),
  22. globals.BrowserInterface);
  23. smalltalk.addMethod(
  24. smalltalk.method({
  25. selector: "alert:",
  26. protocol: 'actions',
  27. fn: function (aString){
  28. var self=this;
  29. return smalltalk.withContext(function($ctx1) {
  30. var $1;
  31. $1=_st(window)._alert_(aString);
  32. return $1;
  33. }, function($ctx1) {$ctx1.fill(self,"alert:",{aString:aString},globals.BrowserInterface)})},
  34. args: ["aString"],
  35. source: "alert: aString\x0a\x09^ window alert: aString",
  36. messageSends: ["alert:"],
  37. referencedClasses: []
  38. }),
  39. globals.BrowserInterface);
  40. smalltalk.addMethod(
  41. smalltalk.method({
  42. selector: "confirm:",
  43. protocol: 'actions',
  44. fn: function (aString){
  45. var self=this;
  46. return smalltalk.withContext(function($ctx1) {
  47. var $1;
  48. $1=_st(window)._confirm_(aString);
  49. return $1;
  50. }, function($ctx1) {$ctx1.fill(self,"confirm:",{aString:aString},globals.BrowserInterface)})},
  51. args: ["aString"],
  52. source: "confirm: aString\x0a\x09^ window confirm: aString",
  53. messageSends: ["confirm:"],
  54. referencedClasses: []
  55. }),
  56. globals.BrowserInterface);
  57. smalltalk.addMethod(
  58. smalltalk.method({
  59. selector: "isAvailable",
  60. protocol: 'testing',
  61. fn: function (){
  62. var self=this;
  63. return typeof window !== "undefined" && typeof jQuery !== "undefined";
  64. return self},
  65. args: [],
  66. source: "isAvailable\x0a<return typeof window !== \x22undefined\x22 && typeof jQuery !== \x22undefined\x22>",
  67. messageSends: [],
  68. referencedClasses: []
  69. }),
  70. globals.BrowserInterface);
  71. smalltalk.addMethod(
  72. smalltalk.method({
  73. selector: "prompt:",
  74. protocol: 'actions',
  75. fn: function (aString){
  76. var self=this;
  77. return smalltalk.withContext(function($ctx1) {
  78. var $1;
  79. $1=_st(window)._prompt_(aString);
  80. return $1;
  81. }, function($ctx1) {$ctx1.fill(self,"prompt:",{aString:aString},globals.BrowserInterface)})},
  82. args: ["aString"],
  83. source: "prompt: aString\x0a\x09^ window prompt: aString",
  84. messageSends: ["prompt:"],
  85. referencedClasses: []
  86. }),
  87. globals.BrowserInterface);
  88. smalltalk.addClass('HTMLCanvas', globals.Object, ['root'], 'Canvas');
  89. globals.HTMLCanvas.comment="I am a canvas for building HTML.\x0a\x0aI provide the `#tag:` method to create a `TagBrush` (wrapping a DOM element) and convenience methods in the `tags` protocol.\x0a\x0a## API\x0a\x0aMy instances are used as the argument of the `#renderOn:` method of `Widget` objects.\x0a\x0aThe `#with:` method is used to compose HTML, nesting tags. `#with:` can take a `TagBrush`, a `String`, a `BlockClosure` or a `Widget` as argument.\x0a\x0a## Usage example:\x0a\x0a aCanvas a \x0a with: [ aCanvas span with: 'click me' ];\x0a onClick: [ window alert: 'clicked!' ]";
  90. smalltalk.addMethod(
  91. smalltalk.method({
  92. selector: "a",
  93. protocol: 'tags',
  94. fn: function (){
  95. var self=this;
  96. return smalltalk.withContext(function($ctx1) {
  97. var $1;
  98. $1=self._tag_("a");
  99. return $1;
  100. }, function($ctx1) {$ctx1.fill(self,"a",{},globals.HTMLCanvas)})},
  101. args: [],
  102. source: "a\x0a\x09^ self tag: 'a'",
  103. messageSends: ["tag:"],
  104. referencedClasses: []
  105. }),
  106. globals.HTMLCanvas);
  107. smalltalk.addMethod(
  108. smalltalk.method({
  109. selector: "abbr",
  110. protocol: 'tags',
  111. fn: function (){
  112. var self=this;
  113. return smalltalk.withContext(function($ctx1) {
  114. var $1;
  115. $1=self._tag_("abbr");
  116. return $1;
  117. }, function($ctx1) {$ctx1.fill(self,"abbr",{},globals.HTMLCanvas)})},
  118. args: [],
  119. source: "abbr\x0a\x09^ self tag: 'abbr'",
  120. messageSends: ["tag:"],
  121. referencedClasses: []
  122. }),
  123. globals.HTMLCanvas);
  124. smalltalk.addMethod(
  125. smalltalk.method({
  126. selector: "address",
  127. protocol: 'tags',
  128. fn: function (){
  129. var self=this;
  130. return smalltalk.withContext(function($ctx1) {
  131. var $1;
  132. $1=self._tag_("address");
  133. return $1;
  134. }, function($ctx1) {$ctx1.fill(self,"address",{},globals.HTMLCanvas)})},
  135. args: [],
  136. source: "address\x0a\x09^ self tag: 'address'",
  137. messageSends: ["tag:"],
  138. referencedClasses: []
  139. }),
  140. globals.HTMLCanvas);
  141. smalltalk.addMethod(
  142. smalltalk.method({
  143. selector: "area",
  144. protocol: 'tags',
  145. fn: function (){
  146. var self=this;
  147. return smalltalk.withContext(function($ctx1) {
  148. var $1;
  149. $1=self._tag_("area");
  150. return $1;
  151. }, function($ctx1) {$ctx1.fill(self,"area",{},globals.HTMLCanvas)})},
  152. args: [],
  153. source: "area\x0a\x09^ self tag: 'area'",
  154. messageSends: ["tag:"],
  155. referencedClasses: []
  156. }),
  157. globals.HTMLCanvas);
  158. smalltalk.addMethod(
  159. smalltalk.method({
  160. selector: "article",
  161. protocol: 'tags',
  162. fn: function (){
  163. var self=this;
  164. return smalltalk.withContext(function($ctx1) {
  165. var $1;
  166. $1=self._tag_("article");
  167. return $1;
  168. }, function($ctx1) {$ctx1.fill(self,"article",{},globals.HTMLCanvas)})},
  169. args: [],
  170. source: "article\x0a\x09^ self tag: 'article'",
  171. messageSends: ["tag:"],
  172. referencedClasses: []
  173. }),
  174. globals.HTMLCanvas);
  175. smalltalk.addMethod(
  176. smalltalk.method({
  177. selector: "aside",
  178. protocol: 'tags',
  179. fn: function (){
  180. var self=this;
  181. return smalltalk.withContext(function($ctx1) {
  182. var $1;
  183. $1=self._tag_("aside");
  184. return $1;
  185. }, function($ctx1) {$ctx1.fill(self,"aside",{},globals.HTMLCanvas)})},
  186. args: [],
  187. source: "aside\x0a\x09^ self tag: 'aside'",
  188. messageSends: ["tag:"],
  189. referencedClasses: []
  190. }),
  191. globals.HTMLCanvas);
  192. smalltalk.addMethod(
  193. smalltalk.method({
  194. selector: "audio",
  195. protocol: 'tags',
  196. fn: function (){
  197. var self=this;
  198. return smalltalk.withContext(function($ctx1) {
  199. var $1;
  200. $1=self._tag_("audio");
  201. return $1;
  202. }, function($ctx1) {$ctx1.fill(self,"audio",{},globals.HTMLCanvas)})},
  203. args: [],
  204. source: "audio\x0a\x09^ self tag: 'audio'",
  205. messageSends: ["tag:"],
  206. referencedClasses: []
  207. }),
  208. globals.HTMLCanvas);
  209. smalltalk.addMethod(
  210. smalltalk.method({
  211. selector: "base",
  212. protocol: 'tags',
  213. fn: function (){
  214. var self=this;
  215. return smalltalk.withContext(function($ctx1) {
  216. var $1;
  217. $1=self._tag_("base");
  218. return $1;
  219. }, function($ctx1) {$ctx1.fill(self,"base",{},globals.HTMLCanvas)})},
  220. args: [],
  221. source: "base\x0a\x09^ self tag: 'base'",
  222. messageSends: ["tag:"],
  223. referencedClasses: []
  224. }),
  225. globals.HTMLCanvas);
  226. smalltalk.addMethod(
  227. smalltalk.method({
  228. selector: "blockquote",
  229. protocol: 'tags',
  230. fn: function (){
  231. var self=this;
  232. return smalltalk.withContext(function($ctx1) {
  233. var $1;
  234. $1=self._tag_("blockquote");
  235. return $1;
  236. }, function($ctx1) {$ctx1.fill(self,"blockquote",{},globals.HTMLCanvas)})},
  237. args: [],
  238. source: "blockquote\x0a\x09^ self tag: 'blockquote'",
  239. messageSends: ["tag:"],
  240. referencedClasses: []
  241. }),
  242. globals.HTMLCanvas);
  243. smalltalk.addMethod(
  244. smalltalk.method({
  245. selector: "body",
  246. protocol: 'tags',
  247. fn: function (){
  248. var self=this;
  249. return smalltalk.withContext(function($ctx1) {
  250. var $1;
  251. $1=self._tag_("body");
  252. return $1;
  253. }, function($ctx1) {$ctx1.fill(self,"body",{},globals.HTMLCanvas)})},
  254. args: [],
  255. source: "body\x0a\x09^ self tag: 'body'",
  256. messageSends: ["tag:"],
  257. referencedClasses: []
  258. }),
  259. globals.HTMLCanvas);
  260. smalltalk.addMethod(
  261. smalltalk.method({
  262. selector: "br",
  263. protocol: 'tags',
  264. fn: function (){
  265. var self=this;
  266. return smalltalk.withContext(function($ctx1) {
  267. var $1;
  268. $1=self._tag_("br");
  269. return $1;
  270. }, function($ctx1) {$ctx1.fill(self,"br",{},globals.HTMLCanvas)})},
  271. args: [],
  272. source: "br\x0a\x09^ self tag: 'br'",
  273. messageSends: ["tag:"],
  274. referencedClasses: []
  275. }),
  276. globals.HTMLCanvas);
  277. smalltalk.addMethod(
  278. smalltalk.method({
  279. selector: "button",
  280. protocol: 'tags',
  281. fn: function (){
  282. var self=this;
  283. return smalltalk.withContext(function($ctx1) {
  284. var $1;
  285. $1=self._tag_("button");
  286. return $1;
  287. }, function($ctx1) {$ctx1.fill(self,"button",{},globals.HTMLCanvas)})},
  288. args: [],
  289. source: "button\x0a\x09^ self tag: 'button'",
  290. messageSends: ["tag:"],
  291. referencedClasses: []
  292. }),
  293. globals.HTMLCanvas);
  294. smalltalk.addMethod(
  295. smalltalk.method({
  296. selector: "canvas",
  297. protocol: 'tags',
  298. fn: function (){
  299. var self=this;
  300. return smalltalk.withContext(function($ctx1) {
  301. var $1;
  302. $1=self._tag_("canvas");
  303. return $1;
  304. }, function($ctx1) {$ctx1.fill(self,"canvas",{},globals.HTMLCanvas)})},
  305. args: [],
  306. source: "canvas\x0a\x09^ self tag: 'canvas'",
  307. messageSends: ["tag:"],
  308. referencedClasses: []
  309. }),
  310. globals.HTMLCanvas);
  311. smalltalk.addMethod(
  312. smalltalk.method({
  313. selector: "caption",
  314. protocol: 'tags',
  315. fn: function (){
  316. var self=this;
  317. return smalltalk.withContext(function($ctx1) {
  318. var $1;
  319. $1=self._tag_("caption");
  320. return $1;
  321. }, function($ctx1) {$ctx1.fill(self,"caption",{},globals.HTMLCanvas)})},
  322. args: [],
  323. source: "caption\x0a\x09^ self tag: 'caption'",
  324. messageSends: ["tag:"],
  325. referencedClasses: []
  326. }),
  327. globals.HTMLCanvas);
  328. smalltalk.addMethod(
  329. smalltalk.method({
  330. selector: "cite",
  331. protocol: 'tags',
  332. fn: function (){
  333. var self=this;
  334. return smalltalk.withContext(function($ctx1) {
  335. var $1;
  336. $1=self._tag_("cite");
  337. return $1;
  338. }, function($ctx1) {$ctx1.fill(self,"cite",{},globals.HTMLCanvas)})},
  339. args: [],
  340. source: "cite\x0a\x09^ self tag: 'cite'",
  341. messageSends: ["tag:"],
  342. referencedClasses: []
  343. }),
  344. globals.HTMLCanvas);
  345. smalltalk.addMethod(
  346. smalltalk.method({
  347. selector: "code",
  348. protocol: 'tags',
  349. fn: function (){
  350. var self=this;
  351. return smalltalk.withContext(function($ctx1) {
  352. var $1;
  353. $1=self._tag_("code");
  354. return $1;
  355. }, function($ctx1) {$ctx1.fill(self,"code",{},globals.HTMLCanvas)})},
  356. args: [],
  357. source: "code\x0a\x09^ self tag: 'code'",
  358. messageSends: ["tag:"],
  359. referencedClasses: []
  360. }),
  361. globals.HTMLCanvas);
  362. smalltalk.addMethod(
  363. smalltalk.method({
  364. selector: "col",
  365. protocol: 'tags',
  366. fn: function (){
  367. var self=this;
  368. return smalltalk.withContext(function($ctx1) {
  369. var $1;
  370. $1=self._tag_("col");
  371. return $1;
  372. }, function($ctx1) {$ctx1.fill(self,"col",{},globals.HTMLCanvas)})},
  373. args: [],
  374. source: "col\x0a\x09^ self tag: 'col'",
  375. messageSends: ["tag:"],
  376. referencedClasses: []
  377. }),
  378. globals.HTMLCanvas);
  379. smalltalk.addMethod(
  380. smalltalk.method({
  381. selector: "colgroup",
  382. protocol: 'tags',
  383. fn: function (){
  384. var self=this;
  385. return smalltalk.withContext(function($ctx1) {
  386. var $1;
  387. $1=self._tag_("colgroup");
  388. return $1;
  389. }, function($ctx1) {$ctx1.fill(self,"colgroup",{},globals.HTMLCanvas)})},
  390. args: [],
  391. source: "colgroup\x0a\x09^ self tag: 'colgroup'",
  392. messageSends: ["tag:"],
  393. referencedClasses: []
  394. }),
  395. globals.HTMLCanvas);
  396. smalltalk.addMethod(
  397. smalltalk.method({
  398. selector: "command",
  399. protocol: 'tags',
  400. fn: function (){
  401. var self=this;
  402. return smalltalk.withContext(function($ctx1) {
  403. var $1;
  404. $1=self._tag_("command");
  405. return $1;
  406. }, function($ctx1) {$ctx1.fill(self,"command",{},globals.HTMLCanvas)})},
  407. args: [],
  408. source: "command\x0a\x09^ self tag: 'command'",
  409. messageSends: ["tag:"],
  410. referencedClasses: []
  411. }),
  412. globals.HTMLCanvas);
  413. smalltalk.addMethod(
  414. smalltalk.method({
  415. selector: "datalist",
  416. protocol: 'tags',
  417. fn: function (){
  418. var self=this;
  419. return smalltalk.withContext(function($ctx1) {
  420. var $1;
  421. $1=self._tag_("datalist");
  422. return $1;
  423. }, function($ctx1) {$ctx1.fill(self,"datalist",{},globals.HTMLCanvas)})},
  424. args: [],
  425. source: "datalist\x0a\x09^ self tag: 'datalist'",
  426. messageSends: ["tag:"],
  427. referencedClasses: []
  428. }),
  429. globals.HTMLCanvas);
  430. smalltalk.addMethod(
  431. smalltalk.method({
  432. selector: "dd",
  433. protocol: 'tags',
  434. fn: function (){
  435. var self=this;
  436. return smalltalk.withContext(function($ctx1) {
  437. var $1;
  438. $1=self._tag_("dd");
  439. return $1;
  440. }, function($ctx1) {$ctx1.fill(self,"dd",{},globals.HTMLCanvas)})},
  441. args: [],
  442. source: "dd\x0a\x09^ self tag: 'dd'",
  443. messageSends: ["tag:"],
  444. referencedClasses: []
  445. }),
  446. globals.HTMLCanvas);
  447. smalltalk.addMethod(
  448. smalltalk.method({
  449. selector: "del",
  450. protocol: 'tags',
  451. fn: function (){
  452. var self=this;
  453. return smalltalk.withContext(function($ctx1) {
  454. var $1;
  455. $1=self._tag_("del");
  456. return $1;
  457. }, function($ctx1) {$ctx1.fill(self,"del",{},globals.HTMLCanvas)})},
  458. args: [],
  459. source: "del\x0a\x09^ self tag: 'del'",
  460. messageSends: ["tag:"],
  461. referencedClasses: []
  462. }),
  463. globals.HTMLCanvas);
  464. smalltalk.addMethod(
  465. smalltalk.method({
  466. selector: "details",
  467. protocol: 'tags',
  468. fn: function (){
  469. var self=this;
  470. return smalltalk.withContext(function($ctx1) {
  471. var $1;
  472. $1=self._tag_("details");
  473. return $1;
  474. }, function($ctx1) {$ctx1.fill(self,"details",{},globals.HTMLCanvas)})},
  475. args: [],
  476. source: "details\x0a\x09^ self tag: 'details'",
  477. messageSends: ["tag:"],
  478. referencedClasses: []
  479. }),
  480. globals.HTMLCanvas);
  481. smalltalk.addMethod(
  482. smalltalk.method({
  483. selector: "div",
  484. protocol: 'tags',
  485. fn: function (){
  486. var self=this;
  487. return smalltalk.withContext(function($ctx1) {
  488. var $1;
  489. $1=self._tag_("div");
  490. return $1;
  491. }, function($ctx1) {$ctx1.fill(self,"div",{},globals.HTMLCanvas)})},
  492. args: [],
  493. source: "div\x0a\x09^ self tag: 'div'",
  494. messageSends: ["tag:"],
  495. referencedClasses: []
  496. }),
  497. globals.HTMLCanvas);
  498. smalltalk.addMethod(
  499. smalltalk.method({
  500. selector: "div:",
  501. protocol: 'tags',
  502. fn: function (aBlock){
  503. var self=this;
  504. return smalltalk.withContext(function($ctx1) {
  505. var $1;
  506. $1=_st(self._div())._with_(aBlock);
  507. return $1;
  508. }, function($ctx1) {$ctx1.fill(self,"div:",{aBlock:aBlock},globals.HTMLCanvas)})},
  509. args: ["aBlock"],
  510. source: "div: aBlock\x0a\x09^ self div with: aBlock",
  511. messageSends: ["with:", "div"],
  512. referencedClasses: []
  513. }),
  514. globals.HTMLCanvas);
  515. smalltalk.addMethod(
  516. smalltalk.method({
  517. selector: "dl",
  518. protocol: 'tags',
  519. fn: function (){
  520. var self=this;
  521. return smalltalk.withContext(function($ctx1) {
  522. var $1;
  523. $1=self._tag_("dl");
  524. return $1;
  525. }, function($ctx1) {$ctx1.fill(self,"dl",{},globals.HTMLCanvas)})},
  526. args: [],
  527. source: "dl\x0a\x09^ self tag: 'dl'",
  528. messageSends: ["tag:"],
  529. referencedClasses: []
  530. }),
  531. globals.HTMLCanvas);
  532. smalltalk.addMethod(
  533. smalltalk.method({
  534. selector: "dt",
  535. protocol: 'tags',
  536. fn: function (){
  537. var self=this;
  538. return smalltalk.withContext(function($ctx1) {
  539. var $1;
  540. $1=self._tag_("dt");
  541. return $1;
  542. }, function($ctx1) {$ctx1.fill(self,"dt",{},globals.HTMLCanvas)})},
  543. args: [],
  544. source: "dt\x0a\x09^ self tag: 'dt'",
  545. messageSends: ["tag:"],
  546. referencedClasses: []
  547. }),
  548. globals.HTMLCanvas);
  549. smalltalk.addMethod(
  550. smalltalk.method({
  551. selector: "em",
  552. protocol: 'tags',
  553. fn: function (){
  554. var self=this;
  555. return smalltalk.withContext(function($ctx1) {
  556. var $1;
  557. $1=self._tag_("em");
  558. return $1;
  559. }, function($ctx1) {$ctx1.fill(self,"em",{},globals.HTMLCanvas)})},
  560. args: [],
  561. source: "em\x0a\x09^ self tag: 'em'",
  562. messageSends: ["tag:"],
  563. referencedClasses: []
  564. }),
  565. globals.HTMLCanvas);
  566. smalltalk.addMethod(
  567. smalltalk.method({
  568. selector: "embed",
  569. protocol: 'tags',
  570. fn: function (){
  571. var self=this;
  572. return smalltalk.withContext(function($ctx1) {
  573. var $1;
  574. $1=self._tag_("embed");
  575. return $1;
  576. }, function($ctx1) {$ctx1.fill(self,"embed",{},globals.HTMLCanvas)})},
  577. args: [],
  578. source: "embed\x0a\x09^ self tag: 'embed'",
  579. messageSends: ["tag:"],
  580. referencedClasses: []
  581. }),
  582. globals.HTMLCanvas);
  583. smalltalk.addMethod(
  584. smalltalk.method({
  585. selector: "entity:",
  586. protocol: 'adding',
  587. fn: function (aString){
  588. var self=this;
  589. var result;
  590. return smalltalk.withContext(function($ctx1) {
  591. var $2,$4,$3,$1,$5;
  592. $2="<span />"._asJQuery();
  593. $4="&".__comma(aString);
  594. $ctx1.sendIdx[","]=2;
  595. $3=_st($4).__comma(";");
  596. $ctx1.sendIdx[","]=1;
  597. $1=_st($2)._html_($3);
  598. result=_st($1)._text();
  599. $5=_st(_st(result)._size()).__eq((1));
  600. if(! smalltalk.assert($5)){
  601. self._error_("Not an HTML entity: ".__comma(aString));
  602. };
  603. self._with_(result);
  604. return self}, function($ctx1) {$ctx1.fill(self,"entity:",{aString:aString,result:result},globals.HTMLCanvas)})},
  605. args: ["aString"],
  606. source: "entity: aString\x0a\x09\x22Adds a character representing html entity, eg.\x0a\x09html entity: 'copy'\x0a\x09adds a copyright sign.\x0a\x09If a name does not represent valid HTML entity, error is raised.\x22\x0a\x09| result |\x0a\x09result := ('<span />' asJQuery html: '&', aString, ';') text.\x0a\x09result size = 1 ifFalse: [ self error: 'Not an HTML entity: ', aString ].\x0a\x09self with: result",
  607. messageSends: ["text", "html:", "asJQuery", ",", "ifFalse:", "=", "size", "error:", "with:"],
  608. referencedClasses: []
  609. }),
  610. globals.HTMLCanvas);
  611. smalltalk.addMethod(
  612. smalltalk.method({
  613. selector: "fieldset",
  614. protocol: 'tags',
  615. fn: function (){
  616. var self=this;
  617. return smalltalk.withContext(function($ctx1) {
  618. var $1;
  619. $1=self._tag_("fieldset");
  620. return $1;
  621. }, function($ctx1) {$ctx1.fill(self,"fieldset",{},globals.HTMLCanvas)})},
  622. args: [],
  623. source: "fieldset\x0a\x09^ self tag: 'fieldset'",
  624. messageSends: ["tag:"],
  625. referencedClasses: []
  626. }),
  627. globals.HTMLCanvas);
  628. smalltalk.addMethod(
  629. smalltalk.method({
  630. selector: "figcaption",
  631. protocol: 'tags',
  632. fn: function (){
  633. var self=this;
  634. return smalltalk.withContext(function($ctx1) {
  635. var $1;
  636. $1=self._tag_("figcaption");
  637. return $1;
  638. }, function($ctx1) {$ctx1.fill(self,"figcaption",{},globals.HTMLCanvas)})},
  639. args: [],
  640. source: "figcaption\x0a\x09^ self tag: 'figcaption'",
  641. messageSends: ["tag:"],
  642. referencedClasses: []
  643. }),
  644. globals.HTMLCanvas);
  645. smalltalk.addMethod(
  646. smalltalk.method({
  647. selector: "figure",
  648. protocol: 'tags',
  649. fn: function (){
  650. var self=this;
  651. return smalltalk.withContext(function($ctx1) {
  652. var $1;
  653. $1=self._tag_("figure");
  654. return $1;
  655. }, function($ctx1) {$ctx1.fill(self,"figure",{},globals.HTMLCanvas)})},
  656. args: [],
  657. source: "figure\x0a\x09^ self tag: 'figure'",
  658. messageSends: ["tag:"],
  659. referencedClasses: []
  660. }),
  661. globals.HTMLCanvas);
  662. smalltalk.addMethod(
  663. smalltalk.method({
  664. selector: "footer",
  665. protocol: 'tags',
  666. fn: function (){
  667. var self=this;
  668. return smalltalk.withContext(function($ctx1) {
  669. var $1;
  670. $1=self._tag_("footer");
  671. return $1;
  672. }, function($ctx1) {$ctx1.fill(self,"footer",{},globals.HTMLCanvas)})},
  673. args: [],
  674. source: "footer\x0a\x09^ self tag: 'footer'",
  675. messageSends: ["tag:"],
  676. referencedClasses: []
  677. }),
  678. globals.HTMLCanvas);
  679. smalltalk.addMethod(
  680. smalltalk.method({
  681. selector: "form",
  682. protocol: 'tags',
  683. fn: function (){
  684. var self=this;
  685. return smalltalk.withContext(function($ctx1) {
  686. var $1;
  687. $1=self._tag_("form");
  688. return $1;
  689. }, function($ctx1) {$ctx1.fill(self,"form",{},globals.HTMLCanvas)})},
  690. args: [],
  691. source: "form\x0a\x09^ self tag: 'form'",
  692. messageSends: ["tag:"],
  693. referencedClasses: []
  694. }),
  695. globals.HTMLCanvas);
  696. smalltalk.addMethod(
  697. smalltalk.method({
  698. selector: "h1",
  699. protocol: 'tags',
  700. fn: function (){
  701. var self=this;
  702. return smalltalk.withContext(function($ctx1) {
  703. var $1;
  704. $1=self._tag_("h1");
  705. return $1;
  706. }, function($ctx1) {$ctx1.fill(self,"h1",{},globals.HTMLCanvas)})},
  707. args: [],
  708. source: "h1\x0a\x09^ self tag: 'h1'",
  709. messageSends: ["tag:"],
  710. referencedClasses: []
  711. }),
  712. globals.HTMLCanvas);
  713. smalltalk.addMethod(
  714. smalltalk.method({
  715. selector: "h1:",
  716. protocol: 'tags',
  717. fn: function (anObject){
  718. var self=this;
  719. return smalltalk.withContext(function($ctx1) {
  720. var $1;
  721. $1=_st(self._h1())._with_(anObject);
  722. return $1;
  723. }, function($ctx1) {$ctx1.fill(self,"h1:",{anObject:anObject},globals.HTMLCanvas)})},
  724. args: ["anObject"],
  725. source: "h1: anObject\x0a\x09^ self h1 with: anObject",
  726. messageSends: ["with:", "h1"],
  727. referencedClasses: []
  728. }),
  729. globals.HTMLCanvas);
  730. smalltalk.addMethod(
  731. smalltalk.method({
  732. selector: "h2",
  733. protocol: 'tags',
  734. fn: function (){
  735. var self=this;
  736. return smalltalk.withContext(function($ctx1) {
  737. var $1;
  738. $1=self._tag_("h2");
  739. return $1;
  740. }, function($ctx1) {$ctx1.fill(self,"h2",{},globals.HTMLCanvas)})},
  741. args: [],
  742. source: "h2\x0a\x09^ self tag: 'h2'",
  743. messageSends: ["tag:"],
  744. referencedClasses: []
  745. }),
  746. globals.HTMLCanvas);
  747. smalltalk.addMethod(
  748. smalltalk.method({
  749. selector: "h2:",
  750. protocol: 'tags',
  751. fn: function (anObject){
  752. var self=this;
  753. return smalltalk.withContext(function($ctx1) {
  754. var $1;
  755. $1=_st(self._h2())._with_(anObject);
  756. return $1;
  757. }, function($ctx1) {$ctx1.fill(self,"h2:",{anObject:anObject},globals.HTMLCanvas)})},
  758. args: ["anObject"],
  759. source: "h2: anObject\x0a\x09^ self h2 with: anObject",
  760. messageSends: ["with:", "h2"],
  761. referencedClasses: []
  762. }),
  763. globals.HTMLCanvas);
  764. smalltalk.addMethod(
  765. smalltalk.method({
  766. selector: "h3",
  767. protocol: 'tags',
  768. fn: function (){
  769. var self=this;
  770. return smalltalk.withContext(function($ctx1) {
  771. var $1;
  772. $1=self._tag_("h3");
  773. return $1;
  774. }, function($ctx1) {$ctx1.fill(self,"h3",{},globals.HTMLCanvas)})},
  775. args: [],
  776. source: "h3\x0a\x09^ self tag: 'h3'",
  777. messageSends: ["tag:"],
  778. referencedClasses: []
  779. }),
  780. globals.HTMLCanvas);
  781. smalltalk.addMethod(
  782. smalltalk.method({
  783. selector: "h3:",
  784. protocol: 'tags',
  785. fn: function (anObject){
  786. var self=this;
  787. return smalltalk.withContext(function($ctx1) {
  788. var $1;
  789. $1=_st(self._h3())._with_(anObject);
  790. return $1;
  791. }, function($ctx1) {$ctx1.fill(self,"h3:",{anObject:anObject},globals.HTMLCanvas)})},
  792. args: ["anObject"],
  793. source: "h3: anObject\x0a\x09^ self h3 with: anObject",
  794. messageSends: ["with:", "h3"],
  795. referencedClasses: []
  796. }),
  797. globals.HTMLCanvas);
  798. smalltalk.addMethod(
  799. smalltalk.method({
  800. selector: "h4",
  801. protocol: 'tags',
  802. fn: function (){
  803. var self=this;
  804. return smalltalk.withContext(function($ctx1) {
  805. var $1;
  806. $1=self._tag_("h4");
  807. return $1;
  808. }, function($ctx1) {$ctx1.fill(self,"h4",{},globals.HTMLCanvas)})},
  809. args: [],
  810. source: "h4\x0a\x09^ self tag: 'h4'",
  811. messageSends: ["tag:"],
  812. referencedClasses: []
  813. }),
  814. globals.HTMLCanvas);
  815. smalltalk.addMethod(
  816. smalltalk.method({
  817. selector: "h4:",
  818. protocol: 'tags',
  819. fn: function (anObject){
  820. var self=this;
  821. return smalltalk.withContext(function($ctx1) {
  822. var $1;
  823. $1=_st(self._h4())._with_(anObject);
  824. return $1;
  825. }, function($ctx1) {$ctx1.fill(self,"h4:",{anObject:anObject},globals.HTMLCanvas)})},
  826. args: ["anObject"],
  827. source: "h4: anObject\x0a\x09^ self h4 with: anObject",
  828. messageSends: ["with:", "h4"],
  829. referencedClasses: []
  830. }),
  831. globals.HTMLCanvas);
  832. smalltalk.addMethod(
  833. smalltalk.method({
  834. selector: "h5",
  835. protocol: 'tags',
  836. fn: function (){
  837. var self=this;
  838. return smalltalk.withContext(function($ctx1) {
  839. var $1;
  840. $1=self._tag_("h5");
  841. return $1;
  842. }, function($ctx1) {$ctx1.fill(self,"h5",{},globals.HTMLCanvas)})},
  843. args: [],
  844. source: "h5\x0a\x09^ self tag: 'h5'",
  845. messageSends: ["tag:"],
  846. referencedClasses: []
  847. }),
  848. globals.HTMLCanvas);
  849. smalltalk.addMethod(
  850. smalltalk.method({
  851. selector: "h5:",
  852. protocol: 'tags',
  853. fn: function (anObject){
  854. var self=this;
  855. return smalltalk.withContext(function($ctx1) {
  856. var $1;
  857. $1=_st(self._h5())._with_(anObject);
  858. return $1;
  859. }, function($ctx1) {$ctx1.fill(self,"h5:",{anObject:anObject},globals.HTMLCanvas)})},
  860. args: ["anObject"],
  861. source: "h5: anObject\x0a\x09^ self h5 with: anObject",
  862. messageSends: ["with:", "h5"],
  863. referencedClasses: []
  864. }),
  865. globals.HTMLCanvas);
  866. smalltalk.addMethod(
  867. smalltalk.method({
  868. selector: "h6",
  869. protocol: 'tags',
  870. fn: function (){
  871. var self=this;
  872. return smalltalk.withContext(function($ctx1) {
  873. var $1;
  874. $1=self._tag_("h6");
  875. return $1;
  876. }, function($ctx1) {$ctx1.fill(self,"h6",{},globals.HTMLCanvas)})},
  877. args: [],
  878. source: "h6\x0a\x09^ self tag: 'h6'",
  879. messageSends: ["tag:"],
  880. referencedClasses: []
  881. }),
  882. globals.HTMLCanvas);
  883. smalltalk.addMethod(
  884. smalltalk.method({
  885. selector: "h6:",
  886. protocol: 'tags',
  887. fn: function (anObject){
  888. var self=this;
  889. return smalltalk.withContext(function($ctx1) {
  890. var $1;
  891. $1=_st(self._h6())._with_(anObject);
  892. return $1;
  893. }, function($ctx1) {$ctx1.fill(self,"h6:",{anObject:anObject},globals.HTMLCanvas)})},
  894. args: ["anObject"],
  895. source: "h6: anObject\x0a\x09^ self h6 with: anObject",
  896. messageSends: ["with:", "h6"],
  897. referencedClasses: []
  898. }),
  899. globals.HTMLCanvas);
  900. smalltalk.addMethod(
  901. smalltalk.method({
  902. selector: "head",
  903. protocol: 'tags',
  904. fn: function (){
  905. var self=this;
  906. return smalltalk.withContext(function($ctx1) {
  907. var $1;
  908. $1=self._tag_("head");
  909. return $1;
  910. }, function($ctx1) {$ctx1.fill(self,"head",{},globals.HTMLCanvas)})},
  911. args: [],
  912. source: "head\x0a\x09^ self tag: 'head'",
  913. messageSends: ["tag:"],
  914. referencedClasses: []
  915. }),
  916. globals.HTMLCanvas);
  917. smalltalk.addMethod(
  918. smalltalk.method({
  919. selector: "header",
  920. protocol: 'tags',
  921. fn: function (){
  922. var self=this;
  923. return smalltalk.withContext(function($ctx1) {
  924. var $1;
  925. $1=self._tag_("header");
  926. return $1;
  927. }, function($ctx1) {$ctx1.fill(self,"header",{},globals.HTMLCanvas)})},
  928. args: [],
  929. source: "header\x0a\x09^ self tag: 'header'",
  930. messageSends: ["tag:"],
  931. referencedClasses: []
  932. }),
  933. globals.HTMLCanvas);
  934. smalltalk.addMethod(
  935. smalltalk.method({
  936. selector: "hgroup",
  937. protocol: 'tags',
  938. fn: function (){
  939. var self=this;
  940. return smalltalk.withContext(function($ctx1) {
  941. var $1;
  942. $1=self._tag_("hgroup");
  943. return $1;
  944. }, function($ctx1) {$ctx1.fill(self,"hgroup",{},globals.HTMLCanvas)})},
  945. args: [],
  946. source: "hgroup\x0a\x09^ self tag: 'hgroup'",
  947. messageSends: ["tag:"],
  948. referencedClasses: []
  949. }),
  950. globals.HTMLCanvas);
  951. smalltalk.addMethod(
  952. smalltalk.method({
  953. selector: "hr",
  954. protocol: 'tags',
  955. fn: function (){
  956. var self=this;
  957. return smalltalk.withContext(function($ctx1) {
  958. var $1;
  959. $1=self._tag_("hr");
  960. return $1;
  961. }, function($ctx1) {$ctx1.fill(self,"hr",{},globals.HTMLCanvas)})},
  962. args: [],
  963. source: "hr\x0a\x09^ self tag: 'hr'",
  964. messageSends: ["tag:"],
  965. referencedClasses: []
  966. }),
  967. globals.HTMLCanvas);
  968. smalltalk.addMethod(
  969. smalltalk.method({
  970. selector: "html",
  971. protocol: 'tags',
  972. fn: function (){
  973. var self=this;
  974. return smalltalk.withContext(function($ctx1) {
  975. var $1;
  976. $1=self._tag_("html");
  977. return $1;
  978. }, function($ctx1) {$ctx1.fill(self,"html",{},globals.HTMLCanvas)})},
  979. args: [],
  980. source: "html\x0a\x09^ self tag: 'html'",
  981. messageSends: ["tag:"],
  982. referencedClasses: []
  983. }),
  984. globals.HTMLCanvas);
  985. smalltalk.addMethod(
  986. smalltalk.method({
  987. selector: "iframe",
  988. protocol: 'tags',
  989. fn: function (){
  990. var self=this;
  991. return smalltalk.withContext(function($ctx1) {
  992. var $1;
  993. $1=self._tag_("iframe");
  994. return $1;
  995. }, function($ctx1) {$ctx1.fill(self,"iframe",{},globals.HTMLCanvas)})},
  996. args: [],
  997. source: "iframe\x0a\x09^ self tag: 'iframe'",
  998. messageSends: ["tag:"],
  999. referencedClasses: []
  1000. }),
  1001. globals.HTMLCanvas);
  1002. smalltalk.addMethod(
  1003. smalltalk.method({
  1004. selector: "iframe:",
  1005. protocol: 'tags',
  1006. fn: function (aString){
  1007. var self=this;
  1008. return smalltalk.withContext(function($ctx1) {
  1009. var $1;
  1010. $1=_st(self._iframe())._src_(aString);
  1011. return $1;
  1012. }, function($ctx1) {$ctx1.fill(self,"iframe:",{aString:aString},globals.HTMLCanvas)})},
  1013. args: ["aString"],
  1014. source: "iframe: aString\x0a\x09^ self iframe src: aString",
  1015. messageSends: ["src:", "iframe"],
  1016. referencedClasses: []
  1017. }),
  1018. globals.HTMLCanvas);
  1019. smalltalk.addMethod(
  1020. smalltalk.method({
  1021. selector: "img",
  1022. protocol: 'tags',
  1023. fn: function (){
  1024. var self=this;
  1025. return smalltalk.withContext(function($ctx1) {
  1026. var $1;
  1027. $1=self._tag_("img");
  1028. return $1;
  1029. }, function($ctx1) {$ctx1.fill(self,"img",{},globals.HTMLCanvas)})},
  1030. args: [],
  1031. source: "img\x0a\x09^ self tag: 'img'",
  1032. messageSends: ["tag:"],
  1033. referencedClasses: []
  1034. }),
  1035. globals.HTMLCanvas);
  1036. smalltalk.addMethod(
  1037. smalltalk.method({
  1038. selector: "img:",
  1039. protocol: 'tags',
  1040. fn: function (aString){
  1041. var self=this;
  1042. return smalltalk.withContext(function($ctx1) {
  1043. var $1;
  1044. $1=_st(self._img())._src_(aString);
  1045. return $1;
  1046. }, function($ctx1) {$ctx1.fill(self,"img:",{aString:aString},globals.HTMLCanvas)})},
  1047. args: ["aString"],
  1048. source: "img: aString\x0a\x09^ self img src: aString",
  1049. messageSends: ["src:", "img"],
  1050. referencedClasses: []
  1051. }),
  1052. globals.HTMLCanvas);
  1053. smalltalk.addMethod(
  1054. smalltalk.method({
  1055. selector: "initialize",
  1056. protocol: 'initialization',
  1057. fn: function (){
  1058. var self=this;
  1059. function $TagBrush(){return globals.TagBrush||(typeof TagBrush=="undefined"?nil:TagBrush)}
  1060. return smalltalk.withContext(function($ctx1) {
  1061. var $1;
  1062. globals.HTMLCanvas.superclass.fn.prototype._initialize.apply(_st(self), []);
  1063. $1=self["@root"];
  1064. if(($receiver = $1) == nil || $receiver == null){
  1065. self["@root"]=_st($TagBrush())._fromString_canvas_("div",self);
  1066. self["@root"];
  1067. } else {
  1068. $1;
  1069. };
  1070. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},globals.HTMLCanvas)})},
  1071. args: [],
  1072. source: "initialize\x0a\x09super initialize.\x0a\x09root ifNil: [ root := TagBrush fromString: 'div' canvas: self ]",
  1073. messageSends: ["initialize", "ifNil:", "fromString:canvas:"],
  1074. referencedClasses: ["TagBrush"]
  1075. }),
  1076. globals.HTMLCanvas);
  1077. smalltalk.addMethod(
  1078. smalltalk.method({
  1079. selector: "initializeFromJQuery:",
  1080. protocol: 'initialization',
  1081. fn: function (aJQuery){
  1082. var self=this;
  1083. function $TagBrush(){return globals.TagBrush||(typeof TagBrush=="undefined"?nil:TagBrush)}
  1084. return smalltalk.withContext(function($ctx1) {
  1085. self["@root"]=_st($TagBrush())._fromJQuery_canvas_(aJQuery,self);
  1086. return self}, function($ctx1) {$ctx1.fill(self,"initializeFromJQuery:",{aJQuery:aJQuery},globals.HTMLCanvas)})},
  1087. args: ["aJQuery"],
  1088. source: "initializeFromJQuery: aJQuery\x0a\x09root := TagBrush fromJQuery: aJQuery canvas: self",
  1089. messageSends: ["fromJQuery:canvas:"],
  1090. referencedClasses: ["TagBrush"]
  1091. }),
  1092. globals.HTMLCanvas);
  1093. smalltalk.addMethod(
  1094. smalltalk.method({
  1095. selector: "input",
  1096. protocol: 'tags',
  1097. fn: function (){
  1098. var self=this;
  1099. return smalltalk.withContext(function($ctx1) {
  1100. var $1;
  1101. $1=self._tag_("input");
  1102. return $1;
  1103. }, function($ctx1) {$ctx1.fill(self,"input",{},globals.HTMLCanvas)})},
  1104. args: [],
  1105. source: "input\x0a\x09^ self tag: 'input'",
  1106. messageSends: ["tag:"],
  1107. referencedClasses: []
  1108. }),
  1109. globals.HTMLCanvas);
  1110. smalltalk.addMethod(
  1111. smalltalk.method({
  1112. selector: "label",
  1113. protocol: 'tags',
  1114. fn: function (){
  1115. var self=this;
  1116. return smalltalk.withContext(function($ctx1) {
  1117. var $1;
  1118. $1=self._tag_("label");
  1119. return $1;
  1120. }, function($ctx1) {$ctx1.fill(self,"label",{},globals.HTMLCanvas)})},
  1121. args: [],
  1122. source: "label\x0a\x09^ self tag: 'label'",
  1123. messageSends: ["tag:"],
  1124. referencedClasses: []
  1125. }),
  1126. globals.HTMLCanvas);
  1127. smalltalk.addMethod(
  1128. smalltalk.method({
  1129. selector: "legend",
  1130. protocol: 'tags',
  1131. fn: function (){
  1132. var self=this;
  1133. return smalltalk.withContext(function($ctx1) {
  1134. var $1;
  1135. $1=self._tag_("legend");
  1136. return $1;
  1137. }, function($ctx1) {$ctx1.fill(self,"legend",{},globals.HTMLCanvas)})},
  1138. args: [],
  1139. source: "legend\x0a\x09^ self tag: 'legend'",
  1140. messageSends: ["tag:"],
  1141. referencedClasses: []
  1142. }),
  1143. globals.HTMLCanvas);
  1144. smalltalk.addMethod(
  1145. smalltalk.method({
  1146. selector: "li",
  1147. protocol: 'tags',
  1148. fn: function (){
  1149. var self=this;
  1150. return smalltalk.withContext(function($ctx1) {
  1151. var $1;
  1152. $1=self._tag_("li");
  1153. return $1;
  1154. }, function($ctx1) {$ctx1.fill(self,"li",{},globals.HTMLCanvas)})},
  1155. args: [],
  1156. source: "li\x0a\x09^ self tag: 'li'",
  1157. messageSends: ["tag:"],
  1158. referencedClasses: []
  1159. }),
  1160. globals.HTMLCanvas);
  1161. smalltalk.addMethod(
  1162. smalltalk.method({
  1163. selector: "li:",
  1164. protocol: 'tags',
  1165. fn: function (anObject){
  1166. var self=this;
  1167. return smalltalk.withContext(function($ctx1) {
  1168. var $1;
  1169. $1=_st(self._li())._with_(anObject);
  1170. return $1;
  1171. }, function($ctx1) {$ctx1.fill(self,"li:",{anObject:anObject},globals.HTMLCanvas)})},
  1172. args: ["anObject"],
  1173. source: "li: anObject\x0a\x09^ self li with: anObject",
  1174. messageSends: ["with:", "li"],
  1175. referencedClasses: []
  1176. }),
  1177. globals.HTMLCanvas);
  1178. smalltalk.addMethod(
  1179. smalltalk.method({
  1180. selector: "link",
  1181. protocol: 'tags',
  1182. fn: function (){
  1183. var self=this;
  1184. return smalltalk.withContext(function($ctx1) {
  1185. var $1;
  1186. $1=self._tag_("link");
  1187. return $1;
  1188. }, function($ctx1) {$ctx1.fill(self,"link",{},globals.HTMLCanvas)})},
  1189. args: [],
  1190. source: "link\x0a\x09^ self tag: 'link'",
  1191. messageSends: ["tag:"],
  1192. referencedClasses: []
  1193. }),
  1194. globals.HTMLCanvas);
  1195. smalltalk.addMethod(
  1196. smalltalk.method({
  1197. selector: "map",
  1198. protocol: 'tags',
  1199. fn: function (){
  1200. var self=this;
  1201. return smalltalk.withContext(function($ctx1) {
  1202. var $1;
  1203. $1=self._tag_("map");
  1204. return $1;
  1205. }, function($ctx1) {$ctx1.fill(self,"map",{},globals.HTMLCanvas)})},
  1206. args: [],
  1207. source: "map\x0a\x09^ self tag: 'map'",
  1208. messageSends: ["tag:"],
  1209. referencedClasses: []
  1210. }),
  1211. globals.HTMLCanvas);
  1212. smalltalk.addMethod(
  1213. smalltalk.method({
  1214. selector: "mark",
  1215. protocol: 'tags',
  1216. fn: function (){
  1217. var self=this;
  1218. return smalltalk.withContext(function($ctx1) {
  1219. var $1;
  1220. $1=self._tag_("mark");
  1221. return $1;
  1222. }, function($ctx1) {$ctx1.fill(self,"mark",{},globals.HTMLCanvas)})},
  1223. args: [],
  1224. source: "mark\x0a\x09^ self tag: 'mark'",
  1225. messageSends: ["tag:"],
  1226. referencedClasses: []
  1227. }),
  1228. globals.HTMLCanvas);
  1229. smalltalk.addMethod(
  1230. smalltalk.method({
  1231. selector: "menu",
  1232. protocol: 'tags',
  1233. fn: function (){
  1234. var self=this;
  1235. return smalltalk.withContext(function($ctx1) {
  1236. var $1;
  1237. $1=self._tag_("menu");
  1238. return $1;
  1239. }, function($ctx1) {$ctx1.fill(self,"menu",{},globals.HTMLCanvas)})},
  1240. args: [],
  1241. source: "menu\x0a\x09^ self tag: 'menu'",
  1242. messageSends: ["tag:"],
  1243. referencedClasses: []
  1244. }),
  1245. globals.HTMLCanvas);
  1246. smalltalk.addMethod(
  1247. smalltalk.method({
  1248. selector: "meta",
  1249. protocol: 'tags',
  1250. fn: function (){
  1251. var self=this;
  1252. return smalltalk.withContext(function($ctx1) {
  1253. var $1;
  1254. $1=self._tag_("meta");
  1255. return $1;
  1256. }, function($ctx1) {$ctx1.fill(self,"meta",{},globals.HTMLCanvas)})},
  1257. args: [],
  1258. source: "meta\x0a\x09^ self tag: 'meta'",
  1259. messageSends: ["tag:"],
  1260. referencedClasses: []
  1261. }),
  1262. globals.HTMLCanvas);
  1263. smalltalk.addMethod(
  1264. smalltalk.method({
  1265. selector: "nav",
  1266. protocol: 'tags',
  1267. fn: function (){
  1268. var self=this;
  1269. return smalltalk.withContext(function($ctx1) {
  1270. var $1;
  1271. $1=self._tag_("nav");
  1272. return $1;
  1273. }, function($ctx1) {$ctx1.fill(self,"nav",{},globals.HTMLCanvas)})},
  1274. args: [],
  1275. source: "nav\x0a\x09^ self tag: 'nav'",
  1276. messageSends: ["tag:"],
  1277. referencedClasses: []
  1278. }),
  1279. globals.HTMLCanvas);
  1280. smalltalk.addMethod(
  1281. smalltalk.method({
  1282. selector: "newTag:",
  1283. protocol: 'tags',
  1284. fn: function (aString){
  1285. var self=this;
  1286. function $TagBrush(){return globals.TagBrush||(typeof TagBrush=="undefined"?nil:TagBrush)}
  1287. return smalltalk.withContext(function($ctx1) {
  1288. var $1;
  1289. $1=_st($TagBrush())._fromString_canvas_(aString,self);
  1290. return $1;
  1291. }, function($ctx1) {$ctx1.fill(self,"newTag:",{aString:aString},globals.HTMLCanvas)})},
  1292. args: ["aString"],
  1293. source: "newTag: aString\x0a\x09^ TagBrush fromString: aString canvas: self",
  1294. messageSends: ["fromString:canvas:"],
  1295. referencedClasses: ["TagBrush"]
  1296. }),
  1297. globals.HTMLCanvas);
  1298. smalltalk.addMethod(
  1299. smalltalk.method({
  1300. selector: "noscript",
  1301. protocol: 'tags',
  1302. fn: function (){
  1303. var self=this;
  1304. return smalltalk.withContext(function($ctx1) {
  1305. var $1;
  1306. $1=self._tag_("noscript");
  1307. return $1;
  1308. }, function($ctx1) {$ctx1.fill(self,"noscript",{},globals.HTMLCanvas)})},
  1309. args: [],
  1310. source: "noscript\x0a\x09^ self tag: 'noscript'",
  1311. messageSends: ["tag:"],
  1312. referencedClasses: []
  1313. }),
  1314. globals.HTMLCanvas);
  1315. smalltalk.addMethod(
  1316. smalltalk.method({
  1317. selector: "object",
  1318. protocol: 'tags',
  1319. fn: function (){
  1320. var self=this;
  1321. return smalltalk.withContext(function($ctx1) {
  1322. var $1;
  1323. $1=self._tag_("object");
  1324. return $1;
  1325. }, function($ctx1) {$ctx1.fill(self,"object",{},globals.HTMLCanvas)})},
  1326. args: [],
  1327. source: "object\x0a\x09^ self tag: 'object'",
  1328. messageSends: ["tag:"],
  1329. referencedClasses: []
  1330. }),
  1331. globals.HTMLCanvas);
  1332. smalltalk.addMethod(
  1333. smalltalk.method({
  1334. selector: "ol",
  1335. protocol: 'tags',
  1336. fn: function (){
  1337. var self=this;
  1338. return smalltalk.withContext(function($ctx1) {
  1339. var $1;
  1340. $1=self._tag_("ol");
  1341. return $1;
  1342. }, function($ctx1) {$ctx1.fill(self,"ol",{},globals.HTMLCanvas)})},
  1343. args: [],
  1344. source: "ol\x0a\x09^ self tag: 'ol'",
  1345. messageSends: ["tag:"],
  1346. referencedClasses: []
  1347. }),
  1348. globals.HTMLCanvas);
  1349. smalltalk.addMethod(
  1350. smalltalk.method({
  1351. selector: "ol:",
  1352. protocol: 'tags',
  1353. fn: function (anObject){
  1354. var self=this;
  1355. return smalltalk.withContext(function($ctx1) {
  1356. var $1;
  1357. $1=_st(self._ol())._with_(anObject);
  1358. return $1;
  1359. }, function($ctx1) {$ctx1.fill(self,"ol:",{anObject:anObject},globals.HTMLCanvas)})},
  1360. args: ["anObject"],
  1361. source: "ol: anObject\x0a\x09^ self ol with: anObject",
  1362. messageSends: ["with:", "ol"],
  1363. referencedClasses: []
  1364. }),
  1365. globals.HTMLCanvas);
  1366. smalltalk.addMethod(
  1367. smalltalk.method({
  1368. selector: "optgroup",
  1369. protocol: 'tags',
  1370. fn: function (){
  1371. var self=this;
  1372. return smalltalk.withContext(function($ctx1) {
  1373. var $1;
  1374. $1=self._tag_("optgroup");
  1375. return $1;
  1376. }, function($ctx1) {$ctx1.fill(self,"optgroup",{},globals.HTMLCanvas)})},
  1377. args: [],
  1378. source: "optgroup\x0a\x09^ self tag: 'optgroup'",
  1379. messageSends: ["tag:"],
  1380. referencedClasses: []
  1381. }),
  1382. globals.HTMLCanvas);
  1383. smalltalk.addMethod(
  1384. smalltalk.method({
  1385. selector: "option",
  1386. protocol: 'tags',
  1387. fn: function (){
  1388. var self=this;
  1389. return smalltalk.withContext(function($ctx1) {
  1390. var $1;
  1391. $1=self._tag_("option");
  1392. return $1;
  1393. }, function($ctx1) {$ctx1.fill(self,"option",{},globals.HTMLCanvas)})},
  1394. args: [],
  1395. source: "option\x0a\x09^ self tag: 'option'",
  1396. messageSends: ["tag:"],
  1397. referencedClasses: []
  1398. }),
  1399. globals.HTMLCanvas);
  1400. smalltalk.addMethod(
  1401. smalltalk.method({
  1402. selector: "output",
  1403. protocol: 'tags',
  1404. fn: function (){
  1405. var self=this;
  1406. return smalltalk.withContext(function($ctx1) {
  1407. var $1;
  1408. $1=self._tag_("output");
  1409. return $1;
  1410. }, function($ctx1) {$ctx1.fill(self,"output",{},globals.HTMLCanvas)})},
  1411. args: [],
  1412. source: "output\x0a\x09^ self tag: 'output'",
  1413. messageSends: ["tag:"],
  1414. referencedClasses: []
  1415. }),
  1416. globals.HTMLCanvas);
  1417. smalltalk.addMethod(
  1418. smalltalk.method({
  1419. selector: "p",
  1420. protocol: 'tags',
  1421. fn: function (){
  1422. var self=this;
  1423. return smalltalk.withContext(function($ctx1) {
  1424. var $1;
  1425. $1=self._tag_("p");
  1426. return $1;
  1427. }, function($ctx1) {$ctx1.fill(self,"p",{},globals.HTMLCanvas)})},
  1428. args: [],
  1429. source: "p\x0a\x09^ self tag: 'p'",
  1430. messageSends: ["tag:"],
  1431. referencedClasses: []
  1432. }),
  1433. globals.HTMLCanvas);
  1434. smalltalk.addMethod(
  1435. smalltalk.method({
  1436. selector: "p:",
  1437. protocol: 'tags',
  1438. fn: function (anObject){
  1439. var self=this;
  1440. return smalltalk.withContext(function($ctx1) {
  1441. var $1;
  1442. $1=_st(self._p())._with_(anObject);
  1443. return $1;
  1444. }, function($ctx1) {$ctx1.fill(self,"p:",{anObject:anObject},globals.HTMLCanvas)})},
  1445. args: ["anObject"],
  1446. source: "p: anObject\x0a\x09^ self p with: anObject",
  1447. messageSends: ["with:", "p"],
  1448. referencedClasses: []
  1449. }),
  1450. globals.HTMLCanvas);
  1451. smalltalk.addMethod(
  1452. smalltalk.method({
  1453. selector: "param",
  1454. protocol: 'tags',
  1455. fn: function (){
  1456. var self=this;
  1457. return smalltalk.withContext(function($ctx1) {
  1458. var $1;
  1459. $1=self._tag_("param");
  1460. return $1;
  1461. }, function($ctx1) {$ctx1.fill(self,"param",{},globals.HTMLCanvas)})},
  1462. args: [],
  1463. source: "param\x0a\x09^ self tag: 'param'",
  1464. messageSends: ["tag:"],
  1465. referencedClasses: []
  1466. }),
  1467. globals.HTMLCanvas);
  1468. smalltalk.addMethod(
  1469. smalltalk.method({
  1470. selector: "pre",
  1471. protocol: 'tags',
  1472. fn: function (){
  1473. var self=this;
  1474. return smalltalk.withContext(function($ctx1) {
  1475. var $1;
  1476. $1=self._tag_("pre");
  1477. return $1;
  1478. }, function($ctx1) {$ctx1.fill(self,"pre",{},globals.HTMLCanvas)})},
  1479. args: [],
  1480. source: "pre\x0a\x09^ self tag: 'pre'",
  1481. messageSends: ["tag:"],
  1482. referencedClasses: []
  1483. }),
  1484. globals.HTMLCanvas);
  1485. smalltalk.addMethod(
  1486. smalltalk.method({
  1487. selector: "progress",
  1488. protocol: 'tags',
  1489. fn: function (){
  1490. var self=this;
  1491. return smalltalk.withContext(function($ctx1) {
  1492. var $1;
  1493. $1=self._tag_("progress");
  1494. return $1;
  1495. }, function($ctx1) {$ctx1.fill(self,"progress",{},globals.HTMLCanvas)})},
  1496. args: [],
  1497. source: "progress\x0a\x09^ self tag: 'progress'",
  1498. messageSends: ["tag:"],
  1499. referencedClasses: []
  1500. }),
  1501. globals.HTMLCanvas);
  1502. smalltalk.addMethod(
  1503. smalltalk.method({
  1504. selector: "root",
  1505. protocol: 'accessing',
  1506. fn: function (){
  1507. var self=this;
  1508. var $1;
  1509. $1=self["@root"];
  1510. return $1;
  1511. },
  1512. args: [],
  1513. source: "root\x0a\x09^ root",
  1514. messageSends: [],
  1515. referencedClasses: []
  1516. }),
  1517. globals.HTMLCanvas);
  1518. smalltalk.addMethod(
  1519. smalltalk.method({
  1520. selector: "root:",
  1521. protocol: 'accessing',
  1522. fn: function (aTagBrush){
  1523. var self=this;
  1524. self["@root"]=aTagBrush;
  1525. return self},
  1526. args: ["aTagBrush"],
  1527. source: "root: aTagBrush\x0a\x09root := aTagBrush",
  1528. messageSends: [],
  1529. referencedClasses: []
  1530. }),
  1531. globals.HTMLCanvas);
  1532. smalltalk.addMethod(
  1533. smalltalk.method({
  1534. selector: "script",
  1535. protocol: 'tags',
  1536. fn: function (){
  1537. var self=this;
  1538. return smalltalk.withContext(function($ctx1) {
  1539. var $1;
  1540. $1=self._tag_("script");
  1541. return $1;
  1542. }, function($ctx1) {$ctx1.fill(self,"script",{},globals.HTMLCanvas)})},
  1543. args: [],
  1544. source: "script\x0a\x09^ self tag: 'script'",
  1545. messageSends: ["tag:"],
  1546. referencedClasses: []
  1547. }),
  1548. globals.HTMLCanvas);
  1549. smalltalk.addMethod(
  1550. smalltalk.method({
  1551. selector: "section",
  1552. protocol: 'tags',
  1553. fn: function (){
  1554. var self=this;
  1555. return smalltalk.withContext(function($ctx1) {
  1556. var $1;
  1557. $1=self._tag_("section");
  1558. return $1;
  1559. }, function($ctx1) {$ctx1.fill(self,"section",{},globals.HTMLCanvas)})},
  1560. args: [],
  1561. source: "section\x0a\x09^ self tag: 'section'",
  1562. messageSends: ["tag:"],
  1563. referencedClasses: []
  1564. }),
  1565. globals.HTMLCanvas);
  1566. smalltalk.addMethod(
  1567. smalltalk.method({
  1568. selector: "select",
  1569. protocol: 'tags',
  1570. fn: function (){
  1571. var self=this;
  1572. return smalltalk.withContext(function($ctx1) {
  1573. var $1;
  1574. $1=self._tag_("select");
  1575. return $1;
  1576. }, function($ctx1) {$ctx1.fill(self,"select",{},globals.HTMLCanvas)})},
  1577. args: [],
  1578. source: "select\x0a\x09^ self tag: 'select'",
  1579. messageSends: ["tag:"],
  1580. referencedClasses: []
  1581. }),
  1582. globals.HTMLCanvas);
  1583. smalltalk.addMethod(
  1584. smalltalk.method({
  1585. selector: "small",
  1586. protocol: 'tags',
  1587. fn: function (){
  1588. var self=this;
  1589. return smalltalk.withContext(function($ctx1) {
  1590. var $1;
  1591. $1=self._tag_("small");
  1592. return $1;
  1593. }, function($ctx1) {$ctx1.fill(self,"small",{},globals.HTMLCanvas)})},
  1594. args: [],
  1595. source: "small\x0a\x09^ self tag: 'small'",
  1596. messageSends: ["tag:"],
  1597. referencedClasses: []
  1598. }),
  1599. globals.HTMLCanvas);
  1600. smalltalk.addMethod(
  1601. smalltalk.method({
  1602. selector: "snippet:",
  1603. protocol: 'accessing',
  1604. fn: function (anElement){
  1605. var self=this;
  1606. var clone,caret;
  1607. function $TagBrush(){return globals.TagBrush||(typeof TagBrush=="undefined"?nil:TagBrush)}
  1608. return smalltalk.withContext(function($ctx1) {
  1609. var $1,$2,$3;
  1610. clone=_st(_st(anElement)._asJQuery())._clone();
  1611. $1=_st($TagBrush())._fromJQuery_canvas_(clone,self);
  1612. $ctx1.sendIdx["fromJQuery:canvas:"]=1;
  1613. self._with_($1);
  1614. caret=_st(clone)._find_("[data-snippet=\x22*\x22]");
  1615. $2=_st(_st(caret)._toArray())._isEmpty();
  1616. if(smalltalk.assert($2)){
  1617. caret=clone;
  1618. caret;
  1619. };
  1620. $3=_st($TagBrush())._fromJQuery_canvas_(_st(caret)._removeAttr_("data-snippet"),self);
  1621. return $3;
  1622. }, function($ctx1) {$ctx1.fill(self,"snippet:",{anElement:anElement,clone:clone,caret:caret},globals.HTMLCanvas)})},
  1623. args: ["anElement"],
  1624. source: "snippet: anElement\x0a\x09\x22Adds clone of anElement, finds [data-snippet=\x22\x22*\x22\x22] subelement\x0a\x09and returns TagBrush as if that subelement was just added.\x0a\x09\x0a\x09Rarely needed to use directly, use `html foo` dynamically installed method\x0a\x09for a snippet named foo.\x22\x0a\x09\x0a\x09| clone caret |\x0a\x09\x0a\x09clone := anElement asJQuery clone.\x0a\x09self with: (TagBrush fromJQuery: clone canvas: self).\x0a\x09caret := clone find: '[data-snippet=\x22*\x22]'.\x0a\x09caret toArray isEmpty ifTrue: [ caret := clone ].\x0a\x09^ TagBrush fromJQuery: (caret removeAttr: 'data-snippet') canvas: self",
  1625. messageSends: ["clone", "asJQuery", "with:", "fromJQuery:canvas:", "find:", "ifTrue:", "isEmpty", "toArray", "removeAttr:"],
  1626. referencedClasses: ["TagBrush"]
  1627. }),
  1628. globals.HTMLCanvas);
  1629. smalltalk.addMethod(
  1630. smalltalk.method({
  1631. selector: "source",
  1632. protocol: 'tags',
  1633. fn: function (){
  1634. var self=this;
  1635. return smalltalk.withContext(function($ctx1) {
  1636. var $1;
  1637. $1=self._tag_("source");
  1638. return $1;
  1639. }, function($ctx1) {$ctx1.fill(self,"source",{},globals.HTMLCanvas)})},
  1640. args: [],
  1641. source: "source\x0a\x09^ self tag: 'source'",
  1642. messageSends: ["tag:"],
  1643. referencedClasses: []
  1644. }),
  1645. globals.HTMLCanvas);
  1646. smalltalk.addMethod(
  1647. smalltalk.method({
  1648. selector: "span",
  1649. protocol: 'tags',
  1650. fn: function (){
  1651. var self=this;
  1652. return smalltalk.withContext(function($ctx1) {
  1653. var $1;
  1654. $1=self._tag_("span");
  1655. return $1;
  1656. }, function($ctx1) {$ctx1.fill(self,"span",{},globals.HTMLCanvas)})},
  1657. args: [],
  1658. source: "span\x0a\x09^ self tag: 'span'",
  1659. messageSends: ["tag:"],
  1660. referencedClasses: []
  1661. }),
  1662. globals.HTMLCanvas);
  1663. smalltalk.addMethod(
  1664. smalltalk.method({
  1665. selector: "span:",
  1666. protocol: 'tags',
  1667. fn: function (anObject){
  1668. var self=this;
  1669. return smalltalk.withContext(function($ctx1) {
  1670. var $1;
  1671. $1=_st(self._span())._with_(anObject);
  1672. return $1;
  1673. }, function($ctx1) {$ctx1.fill(self,"span:",{anObject:anObject},globals.HTMLCanvas)})},
  1674. args: ["anObject"],
  1675. source: "span: anObject\x0a\x09^ self span with: anObject",
  1676. messageSends: ["with:", "span"],
  1677. referencedClasses: []
  1678. }),
  1679. globals.HTMLCanvas);
  1680. smalltalk.addMethod(
  1681. smalltalk.method({
  1682. selector: "strong",
  1683. protocol: 'tags',
  1684. fn: function (){
  1685. var self=this;
  1686. return smalltalk.withContext(function($ctx1) {
  1687. var $1;
  1688. $1=self._tag_("strong");
  1689. return $1;
  1690. }, function($ctx1) {$ctx1.fill(self,"strong",{},globals.HTMLCanvas)})},
  1691. args: [],
  1692. source: "strong\x0a\x09^ self tag: 'strong'",
  1693. messageSends: ["tag:"],
  1694. referencedClasses: []
  1695. }),
  1696. globals.HTMLCanvas);
  1697. smalltalk.addMethod(
  1698. smalltalk.method({
  1699. selector: "strong:",
  1700. protocol: 'tags',
  1701. fn: function (anObject){
  1702. var self=this;
  1703. return smalltalk.withContext(function($ctx1) {
  1704. var $1;
  1705. $1=_st(self._strong())._with_(anObject);
  1706. return $1;
  1707. }, function($ctx1) {$ctx1.fill(self,"strong:",{anObject:anObject},globals.HTMLCanvas)})},
  1708. args: ["anObject"],
  1709. source: "strong: anObject\x0a\x09^ self strong with: anObject",
  1710. messageSends: ["with:", "strong"],
  1711. referencedClasses: []
  1712. }),
  1713. globals.HTMLCanvas);
  1714. smalltalk.addMethod(
  1715. smalltalk.method({
  1716. selector: "style",
  1717. protocol: 'tags',
  1718. fn: function (){
  1719. var self=this;
  1720. return smalltalk.withContext(function($ctx1) {
  1721. var $1;
  1722. $1=self._tag_("style");
  1723. return $1;
  1724. }, function($ctx1) {$ctx1.fill(self,"style",{},globals.HTMLCanvas)})},
  1725. args: [],
  1726. source: "style\x0a\x09^ self tag: 'style'",
  1727. messageSends: ["tag:"],
  1728. referencedClasses: []
  1729. }),
  1730. globals.HTMLCanvas);
  1731. smalltalk.addMethod(
  1732. smalltalk.method({
  1733. selector: "style:",
  1734. protocol: 'tags',
  1735. fn: function (aString){
  1736. var self=this;
  1737. return smalltalk.withContext(function($ctx1) {
  1738. var $2,$3,$1;
  1739. $2=self._style();
  1740. _st($2)._with_(aString);
  1741. $3=_st($2)._yourself();
  1742. $1=$3;
  1743. return $1;
  1744. }, function($ctx1) {$ctx1.fill(self,"style:",{aString:aString},globals.HTMLCanvas)})},
  1745. args: ["aString"],
  1746. source: "style: aString\x0a\x09^ self style with: aString; yourself",
  1747. messageSends: ["with:", "style", "yourself"],
  1748. referencedClasses: []
  1749. }),
  1750. globals.HTMLCanvas);
  1751. smalltalk.addMethod(
  1752. smalltalk.method({
  1753. selector: "sub",
  1754. protocol: 'tags',
  1755. fn: function (){
  1756. var self=this;
  1757. return smalltalk.withContext(function($ctx1) {
  1758. var $1;
  1759. $1=self._tag_("sub");
  1760. return $1;
  1761. }, function($ctx1) {$ctx1.fill(self,"sub",{},globals.HTMLCanvas)})},
  1762. args: [],
  1763. source: "sub\x0a\x09^ self tag: 'sub'",
  1764. messageSends: ["tag:"],
  1765. referencedClasses: []
  1766. }),
  1767. globals.HTMLCanvas);
  1768. smalltalk.addMethod(
  1769. smalltalk.method({
  1770. selector: "summary",
  1771. protocol: 'tags',
  1772. fn: function (){
  1773. var self=this;
  1774. return smalltalk.withContext(function($ctx1) {
  1775. var $1;
  1776. $1=self._tag_("summary");
  1777. return $1;
  1778. }, function($ctx1) {$ctx1.fill(self,"summary",{},globals.HTMLCanvas)})},
  1779. args: [],
  1780. source: "summary\x0a\x09^ self tag: 'summary'",
  1781. messageSends: ["tag:"],
  1782. referencedClasses: []
  1783. }),
  1784. globals.HTMLCanvas);
  1785. smalltalk.addMethod(
  1786. smalltalk.method({
  1787. selector: "sup",
  1788. protocol: 'tags',
  1789. fn: function (){
  1790. var self=this;
  1791. return smalltalk.withContext(function($ctx1) {
  1792. var $1;
  1793. $1=self._tag_("sup");
  1794. return $1;
  1795. }, function($ctx1) {$ctx1.fill(self,"sup",{},globals.HTMLCanvas)})},
  1796. args: [],
  1797. source: "sup\x0a\x09^ self tag: 'sup'",
  1798. messageSends: ["tag:"],
  1799. referencedClasses: []
  1800. }),
  1801. globals.HTMLCanvas);
  1802. smalltalk.addMethod(
  1803. smalltalk.method({
  1804. selector: "table",
  1805. protocol: 'tags',
  1806. fn: function (){
  1807. var self=this;
  1808. return smalltalk.withContext(function($ctx1) {
  1809. var $1;
  1810. $1=self._tag_("table");
  1811. return $1;
  1812. }, function($ctx1) {$ctx1.fill(self,"table",{},globals.HTMLCanvas)})},
  1813. args: [],
  1814. source: "table\x0a\x09^ self tag: 'table'",
  1815. messageSends: ["tag:"],
  1816. referencedClasses: []
  1817. }),
  1818. globals.HTMLCanvas);
  1819. smalltalk.addMethod(
  1820. smalltalk.method({
  1821. selector: "tag:",
  1822. protocol: 'tags',
  1823. fn: function (aString){
  1824. var self=this;
  1825. return smalltalk.withContext(function($ctx1) {
  1826. var $1;
  1827. $1=_st(self["@root"])._addBrush_(self._newTag_(aString));
  1828. return $1;
  1829. }, function($ctx1) {$ctx1.fill(self,"tag:",{aString:aString},globals.HTMLCanvas)})},
  1830. args: ["aString"],
  1831. source: "tag: aString\x0a\x09^ root addBrush: (self newTag: aString)",
  1832. messageSends: ["addBrush:", "newTag:"],
  1833. referencedClasses: []
  1834. }),
  1835. globals.HTMLCanvas);
  1836. smalltalk.addMethod(
  1837. smalltalk.method({
  1838. selector: "tbody",
  1839. protocol: 'tags',
  1840. fn: function (){
  1841. var self=this;
  1842. return smalltalk.withContext(function($ctx1) {
  1843. var $1;
  1844. $1=self._tag_("tbody");
  1845. return $1;
  1846. }, function($ctx1) {$ctx1.fill(self,"tbody",{},globals.HTMLCanvas)})},
  1847. args: [],
  1848. source: "tbody\x0a\x09^ self tag: 'tbody'",
  1849. messageSends: ["tag:"],
  1850. referencedClasses: []
  1851. }),
  1852. globals.HTMLCanvas);
  1853. smalltalk.addMethod(
  1854. smalltalk.method({
  1855. selector: "td",
  1856. protocol: 'tags',
  1857. fn: function (){
  1858. var self=this;
  1859. return smalltalk.withContext(function($ctx1) {
  1860. var $1;
  1861. $1=self._tag_("td");
  1862. return $1;
  1863. }, function($ctx1) {$ctx1.fill(self,"td",{},globals.HTMLCanvas)})},
  1864. args: [],
  1865. source: "td\x0a\x09^ self tag: 'td'",
  1866. messageSends: ["tag:"],
  1867. referencedClasses: []
  1868. }),
  1869. globals.HTMLCanvas);
  1870. smalltalk.addMethod(
  1871. smalltalk.method({
  1872. selector: "textarea",
  1873. protocol: 'tags',
  1874. fn: function (){
  1875. var self=this;
  1876. return smalltalk.withContext(function($ctx1) {
  1877. var $1;
  1878. $1=self._tag_("textarea");
  1879. return $1;
  1880. }, function($ctx1) {$ctx1.fill(self,"textarea",{},globals.HTMLCanvas)})},
  1881. args: [],
  1882. source: "textarea\x0a\x09^ self tag: 'textarea'",
  1883. messageSends: ["tag:"],
  1884. referencedClasses: []
  1885. }),
  1886. globals.HTMLCanvas);
  1887. smalltalk.addMethod(
  1888. smalltalk.method({
  1889. selector: "tfoot",
  1890. protocol: 'tags',
  1891. fn: function (){
  1892. var self=this;
  1893. return smalltalk.withContext(function($ctx1) {
  1894. var $1;
  1895. $1=self._tag_("tfoot");
  1896. return $1;
  1897. }, function($ctx1) {$ctx1.fill(self,"tfoot",{},globals.HTMLCanvas)})},
  1898. args: [],
  1899. source: "tfoot\x0a\x09^ self tag: 'tfoot'",
  1900. messageSends: ["tag:"],
  1901. referencedClasses: []
  1902. }),
  1903. globals.HTMLCanvas);
  1904. smalltalk.addMethod(
  1905. smalltalk.method({
  1906. selector: "th",
  1907. protocol: 'tags',
  1908. fn: function (){
  1909. var self=this;
  1910. return smalltalk.withContext(function($ctx1) {
  1911. var $1;
  1912. $1=self._tag_("th");
  1913. return $1;
  1914. }, function($ctx1) {$ctx1.fill(self,"th",{},globals.HTMLCanvas)})},
  1915. args: [],
  1916. source: "th\x0a\x09^ self tag: 'th'",
  1917. messageSends: ["tag:"],
  1918. referencedClasses: []
  1919. }),
  1920. globals.HTMLCanvas);
  1921. smalltalk.addMethod(
  1922. smalltalk.method({
  1923. selector: "thead",
  1924. protocol: 'tags',
  1925. fn: function (){
  1926. var self=this;
  1927. return smalltalk.withContext(function($ctx1) {
  1928. var $1;
  1929. $1=self._tag_("thead");
  1930. return $1;
  1931. }, function($ctx1) {$ctx1.fill(self,"thead",{},globals.HTMLCanvas)})},
  1932. args: [],
  1933. source: "thead\x0a\x09^ self tag: 'thead'",
  1934. messageSends: ["tag:"],
  1935. referencedClasses: []
  1936. }),
  1937. globals.HTMLCanvas);
  1938. smalltalk.addMethod(
  1939. smalltalk.method({
  1940. selector: "time",
  1941. protocol: 'tags',
  1942. fn: function (){
  1943. var self=this;
  1944. return smalltalk.withContext(function($ctx1) {
  1945. var $1;
  1946. $1=self._tag_("time");
  1947. return $1;
  1948. }, function($ctx1) {$ctx1.fill(self,"time",{},globals.HTMLCanvas)})},
  1949. args: [],
  1950. source: "time\x0a\x09^ self tag: 'time'",
  1951. messageSends: ["tag:"],
  1952. referencedClasses: []
  1953. }),
  1954. globals.HTMLCanvas);
  1955. smalltalk.addMethod(
  1956. smalltalk.method({
  1957. selector: "title",
  1958. protocol: 'tags',
  1959. fn: function (){
  1960. var self=this;
  1961. return smalltalk.withContext(function($ctx1) {
  1962. var $1;
  1963. $1=self._tag_("title");
  1964. return $1;
  1965. }, function($ctx1) {$ctx1.fill(self,"title",{},globals.HTMLCanvas)})},
  1966. args: [],
  1967. source: "title\x0a\x09^ self tag: 'title'",
  1968. messageSends: ["tag:"],
  1969. referencedClasses: []
  1970. }),
  1971. globals.HTMLCanvas);
  1972. smalltalk.addMethod(
  1973. smalltalk.method({
  1974. selector: "tr",
  1975. protocol: 'tags',
  1976. fn: function (){
  1977. var self=this;
  1978. return smalltalk.withContext(function($ctx1) {
  1979. var $1;
  1980. $1=self._tag_("tr");
  1981. return $1;
  1982. }, function($ctx1) {$ctx1.fill(self,"tr",{},globals.HTMLCanvas)})},
  1983. args: [],
  1984. source: "tr\x0a\x09^ self tag: 'tr'",
  1985. messageSends: ["tag:"],
  1986. referencedClasses: []
  1987. }),
  1988. globals.HTMLCanvas);
  1989. smalltalk.addMethod(
  1990. smalltalk.method({
  1991. selector: "ul",
  1992. protocol: 'tags',
  1993. fn: function (){
  1994. var self=this;
  1995. return smalltalk.withContext(function($ctx1) {
  1996. var $1;
  1997. $1=self._tag_("ul");
  1998. return $1;
  1999. }, function($ctx1) {$ctx1.fill(self,"ul",{},globals.HTMLCanvas)})},
  2000. args: [],
  2001. source: "ul\x0a\x09^ self tag: 'ul'",
  2002. messageSends: ["tag:"],
  2003. referencedClasses: []
  2004. }),
  2005. globals.HTMLCanvas);
  2006. smalltalk.addMethod(
  2007. smalltalk.method({
  2008. selector: "ul:",
  2009. protocol: 'tags',
  2010. fn: function (anObject){
  2011. var self=this;
  2012. return smalltalk.withContext(function($ctx1) {
  2013. var $1;
  2014. $1=_st(self._ul())._with_(anObject);
  2015. return $1;
  2016. }, function($ctx1) {$ctx1.fill(self,"ul:",{anObject:anObject},globals.HTMLCanvas)})},
  2017. args: ["anObject"],
  2018. source: "ul: anObject\x0a\x09^ self ul with: anObject",
  2019. messageSends: ["with:", "ul"],
  2020. referencedClasses: []
  2021. }),
  2022. globals.HTMLCanvas);
  2023. smalltalk.addMethod(
  2024. smalltalk.method({
  2025. selector: "video",
  2026. protocol: 'tags',
  2027. fn: function (){
  2028. var self=this;
  2029. return smalltalk.withContext(function($ctx1) {
  2030. var $1;
  2031. $1=self._tag_("video");
  2032. return $1;
  2033. }, function($ctx1) {$ctx1.fill(self,"video",{},globals.HTMLCanvas)})},
  2034. args: [],
  2035. source: "video\x0a\x09^ self tag: 'video'",
  2036. messageSends: ["tag:"],
  2037. referencedClasses: []
  2038. }),
  2039. globals.HTMLCanvas);
  2040. smalltalk.addMethod(
  2041. smalltalk.method({
  2042. selector: "with:",
  2043. protocol: 'adding',
  2044. fn: function (anObject){
  2045. var self=this;
  2046. return smalltalk.withContext(function($ctx1) {
  2047. var $1;
  2048. $1=_st(self._root())._with_(anObject);
  2049. return $1;
  2050. }, function($ctx1) {$ctx1.fill(self,"with:",{anObject:anObject},globals.HTMLCanvas)})},
  2051. args: ["anObject"],
  2052. source: "with: anObject\x0a\x09^ self root with: anObject",
  2053. messageSends: ["with:", "root"],
  2054. referencedClasses: []
  2055. }),
  2056. globals.HTMLCanvas);
  2057. smalltalk.addMethod(
  2058. smalltalk.method({
  2059. selector: "initialize",
  2060. protocol: 'initialization',
  2061. fn: function (){
  2062. var self=this;
  2063. return smalltalk.withContext(function($ctx1) {
  2064. _st(jQuery)._basicAt_put_("allowJavaScriptCalls",true);
  2065. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},globals.HTMLCanvas.klass)})},
  2066. args: [],
  2067. source: "initialize\x0a\x09\x22Allow JS method calls for the jQuery object.\x0a\x09See boot.js DNU handling.\x22\x0a\x09\x0a\x09jQuery basicAt: 'allowJavaScriptCalls' put: true",
  2068. messageSends: ["basicAt:put:"],
  2069. referencedClasses: []
  2070. }),
  2071. globals.HTMLCanvas.klass);
  2072. smalltalk.addMethod(
  2073. smalltalk.method({
  2074. selector: "onJQuery:",
  2075. protocol: 'instance creation',
  2076. fn: function (aJQuery){
  2077. var self=this;
  2078. return smalltalk.withContext(function($ctx1) {
  2079. var $2,$3,$1;
  2080. $2=self._basicNew();
  2081. _st($2)._initializeFromJQuery_(aJQuery);
  2082. _st($2)._initialize();
  2083. $3=_st($2)._yourself();
  2084. $1=$3;
  2085. return $1;
  2086. }, function($ctx1) {$ctx1.fill(self,"onJQuery:",{aJQuery:aJQuery},globals.HTMLCanvas.klass)})},
  2087. args: ["aJQuery"],
  2088. source: "onJQuery: aJQuery\x0a\x09^ self basicNew\x0a\x09\x09initializeFromJQuery: aJQuery;\x0a\x09\x09initialize;\x0a\x09\x09yourself",
  2089. messageSends: ["initializeFromJQuery:", "basicNew", "initialize", "yourself"],
  2090. referencedClasses: []
  2091. }),
  2092. globals.HTMLCanvas.klass);
  2093. smalltalk.addClass('HTMLSnippet', globals.Object, ['snippets'], 'Canvas');
  2094. globals.HTMLSnippet.comment="My sole instance is the registry of html snippets.\x0a`HTMLSnippet current` is the public singleton instance.\x0a\x0aOn startup, it scans the document for any html elements\x0awith `'data-snippet=\x22foo\x22'` attribute and takes them off the document,\x0aremembering them in the store under the specified name.\x0aIt also install method #foo into HTMLCanvas dynamically.\x0a\x0aEvery html snippet should mark a 'caret', a place where contents\x0acan be inserted, by 'data-snippet=\x22*\x22' (a special name for caret).\x0aFor example:\x0a\x0a`<li data-snippet='menuelement' class='...'><a data-snippet='*'></a></li>`\x0a\x0adefines a list element with a link inside; the link itself is marked as a caret.\x0a\x0aYou can later issue\x0a\x0a`html menuelement href: '/foo'; with: 'A foo'`\x0a\x0ato insert the whole snippet and directly manipulate the caret, so it renders:\x0a\x0a`<li class='...'><a href='/foo'>A foo</a></li>`\x0a\x0aFor a self-careting tags (not very useful, but you do not need to fill class etc.\x0ayou can use\x0a\x0a`<div class='lots of classes' attr1='one' attr2='two' data-snippet='*bar'></div>`\x0a\x0aand in code later do:\x0a\x0a`html bar with: [ xxx ]`\x0a\x0ato render\x0a\x0a`<div class='lots of classes' attr1='one' attr2='two'>...added by xxx...</div>`";
  2095. smalltalk.addMethod(
  2096. smalltalk.method({
  2097. selector: "initializeFromJQuery:",
  2098. protocol: 'initialization',
  2099. fn: function (aJQuery){
  2100. var self=this;
  2101. return smalltalk.withContext(function($ctx1) {
  2102. _st(self._snippetsFromJQuery_(aJQuery))._do_((function(each){
  2103. return smalltalk.withContext(function($ctx2) {
  2104. return self._installSnippetFromJQuery_(_st(each)._asJQuery());
  2105. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,1)})}));
  2106. return self}, function($ctx1) {$ctx1.fill(self,"initializeFromJQuery:",{aJQuery:aJQuery},globals.HTMLSnippet)})},
  2107. args: ["aJQuery"],
  2108. source: "initializeFromJQuery: aJQuery\x0a\x09\x22Finds and takes out all snippets out of aJQuery.\x0a\x09Installs it into self.\x22\x0a\x09\x0a\x09(self snippetsFromJQuery: aJQuery) do: [ :each |\x0a\x09\x09self installSnippetFromJQuery: each asJQuery ]",
  2109. messageSends: ["do:", "snippetsFromJQuery:", "installSnippetFromJQuery:", "asJQuery"],
  2110. referencedClasses: []
  2111. }),
  2112. globals.HTMLSnippet);
  2113. smalltalk.addMethod(
  2114. smalltalk.method({
  2115. selector: "installSnippetFromJQuery:",
  2116. protocol: 'snippet installation',
  2117. fn: function (element){
  2118. var self=this;
  2119. var name;
  2120. return smalltalk.withContext(function($ctx1) {
  2121. var $1,$2;
  2122. name=_st(element)._attr_("data-snippet");
  2123. $1=_st(name).__eq("*");
  2124. if(! smalltalk.assert($1)){
  2125. $2=_st("^\x5c*"._asRegexp())._test_(name);
  2126. if(smalltalk.assert($2)){
  2127. name=_st(name)._allButFirst();
  2128. name;
  2129. _st(element)._attr_put_("data-snippet","*");
  2130. } else {
  2131. _st(element)._removeAttr_("data-snippet");
  2132. };
  2133. self._snippetAt_install_(name,_st(_st(element)._detach())._get_((0)));
  2134. };
  2135. return self}, function($ctx1) {$ctx1.fill(self,"installSnippetFromJQuery:",{element:element,name:name},globals.HTMLSnippet)})},
  2136. args: ["element"],
  2137. source: "installSnippetFromJQuery: element\x0a\x09| name |\x0a\x09name := element attr: 'data-snippet'.\x0a\x09name = '*' ifFalse: [\x0a\x09\x09('^\x5c*' asRegexp test: name)\x0a\x09\x09\x09ifTrue: [\x0a\x09\x09\x09\x09name := name allButFirst.\x0a\x09\x09\x09\x09element attr: 'data-snippet' put: '*' ]\x0a\x09\x09\x09ifFalse: [\x0a\x09\x09\x09\x09element removeAttr: 'data-snippet' ].\x0a\x09\x09self snippetAt: name install: (element detach get: 0) ]",
  2138. messageSends: ["attr:", "ifFalse:", "=", "ifTrue:ifFalse:", "test:", "asRegexp", "allButFirst", "attr:put:", "removeAttr:", "snippetAt:install:", "get:", "detach"],
  2139. referencedClasses: []
  2140. }),
  2141. globals.HTMLSnippet);
  2142. smalltalk.addMethod(
  2143. smalltalk.method({
  2144. selector: "snippetAt:",
  2145. protocol: 'accessing',
  2146. fn: function (aString){
  2147. var self=this;
  2148. return smalltalk.withContext(function($ctx1) {
  2149. var $1;
  2150. $1=_st(self._snippets())._at_(aString);
  2151. return $1;
  2152. }, function($ctx1) {$ctx1.fill(self,"snippetAt:",{aString:aString},globals.HTMLSnippet)})},
  2153. args: ["aString"],
  2154. source: "snippetAt: aString\x0a\x09^ self snippets at: aString",
  2155. messageSends: ["at:", "snippets"],
  2156. referencedClasses: []
  2157. }),
  2158. globals.HTMLSnippet);
  2159. smalltalk.addMethod(
  2160. smalltalk.method({
  2161. selector: "snippetAt:compile:",
  2162. protocol: 'method generation',
  2163. fn: function (aString,anElement){
  2164. var self=this;
  2165. function $ClassBuilder(){return globals.ClassBuilder||(typeof ClassBuilder=="undefined"?nil:ClassBuilder)}
  2166. function $HTMLCanvas(){return globals.HTMLCanvas||(typeof HTMLCanvas=="undefined"?nil:HTMLCanvas)}
  2167. return smalltalk.withContext(function($ctx1) {
  2168. _st(_st($ClassBuilder())._new())._installMethod_forClass_protocol_(_st(_st((function(htmlReceiver){
  2169. return smalltalk.withContext(function($ctx2) {
  2170. return _st(htmlReceiver)._snippet_(anElement);
  2171. }, function($ctx2) {$ctx2.fillBlock({htmlReceiver:htmlReceiver},$ctx1,1)})}))._currySelf())._asCompiledMethod_(aString),$HTMLCanvas(),"**snippets");
  2172. return self}, function($ctx1) {$ctx1.fill(self,"snippetAt:compile:",{aString:aString,anElement:anElement},globals.HTMLSnippet)})},
  2173. args: ["aString", "anElement"],
  2174. source: "snippetAt: aString compile: anElement\x0a\x09\x22Method generation for the snippet.\x0a\x09The selector is aString, the method block uses anElement\x22\x0a\x09\x0a\x09ClassBuilder new\x0a\x09\x09installMethod: ([ :htmlReceiver | htmlReceiver snippet: anElement ]\x0a\x09\x09\x09currySelf asCompiledMethod: aString)\x0a\x09\x09forClass: HTMLCanvas\x0a\x09\x09protocol: '**snippets'",
  2175. messageSends: ["installMethod:forClass:protocol:", "new", "asCompiledMethod:", "currySelf", "snippet:"],
  2176. referencedClasses: ["ClassBuilder", "HTMLCanvas"]
  2177. }),
  2178. globals.HTMLSnippet);
  2179. smalltalk.addMethod(
  2180. smalltalk.method({
  2181. selector: "snippetAt:install:",
  2182. protocol: 'snippet installation',
  2183. fn: function (aString,anElement){
  2184. var self=this;
  2185. return smalltalk.withContext(function($ctx1) {
  2186. _st(self._snippets())._at_put_(aString,anElement);
  2187. self._snippetAt_compile_(aString,anElement);
  2188. return self}, function($ctx1) {$ctx1.fill(self,"snippetAt:install:",{aString:aString,anElement:anElement},globals.HTMLSnippet)})},
  2189. args: ["aString", "anElement"],
  2190. source: "snippetAt: aString install: anElement\x0a\x09self snippets at: aString put: anElement.\x0a\x09self snippetAt: aString compile: anElement",
  2191. messageSends: ["at:put:", "snippets", "snippetAt:compile:"],
  2192. referencedClasses: []
  2193. }),
  2194. globals.HTMLSnippet);
  2195. smalltalk.addMethod(
  2196. smalltalk.method({
  2197. selector: "snippets",
  2198. protocol: 'accessing',
  2199. fn: function (){
  2200. var self=this;
  2201. return smalltalk.withContext(function($ctx1) {
  2202. var $2,$1;
  2203. $2=self["@snippets"];
  2204. if(($receiver = $2) == nil || $receiver == null){
  2205. self["@snippets"]=globals.HashedCollection._from_([]);
  2206. $1=self["@snippets"];
  2207. } else {
  2208. $1=$2;
  2209. };
  2210. return $1;
  2211. }, function($ctx1) {$ctx1.fill(self,"snippets",{},globals.HTMLSnippet)})},
  2212. args: [],
  2213. source: "snippets\x0a\x09^ snippets ifNil: [ snippets := #{} ]",
  2214. messageSends: ["ifNil:"],
  2215. referencedClasses: []
  2216. }),
  2217. globals.HTMLSnippet);
  2218. smalltalk.addMethod(
  2219. smalltalk.method({
  2220. selector: "snippetsFromJQuery:",
  2221. protocol: 'private',
  2222. fn: function (aJQuery){
  2223. var self=this;
  2224. return smalltalk.withContext(function($ctx1) {
  2225. var $1;
  2226. $1=_st(_st(aJQuery)._find_("[data-snippet]"))._toArray();
  2227. return $1;
  2228. }, function($ctx1) {$ctx1.fill(self,"snippetsFromJQuery:",{aJQuery:aJQuery},globals.HTMLSnippet)})},
  2229. args: ["aJQuery"],
  2230. source: "snippetsFromJQuery: aJQuery\x0a\x09^ (aJQuery find: '[data-snippet]') toArray",
  2231. messageSends: ["toArray", "find:"],
  2232. referencedClasses: []
  2233. }),
  2234. globals.HTMLSnippet);
  2235. globals.HTMLSnippet.klass.iVarNames = ['current'];
  2236. smalltalk.addMethod(
  2237. smalltalk.method({
  2238. selector: "current",
  2239. protocol: 'instance creation',
  2240. fn: function (){
  2241. var self=this;
  2242. var $1;
  2243. $1=self["@current"];
  2244. return $1;
  2245. },
  2246. args: [],
  2247. source: "current\x0a\x09^ current",
  2248. messageSends: [],
  2249. referencedClasses: []
  2250. }),
  2251. globals.HTMLSnippet.klass);
  2252. smalltalk.addMethod(
  2253. smalltalk.method({
  2254. selector: "ensureCurrent",
  2255. protocol: 'initialization',
  2256. fn: function (){
  2257. var self=this;
  2258. return smalltalk.withContext(function($ctx1) {
  2259. var $1,$2,$3;
  2260. $1=self["@current"];
  2261. if(($receiver = $1) == nil || $receiver == null){
  2262. $2=globals.HTMLSnippet.klass.superclass.fn.prototype._new.apply(_st(self), []);
  2263. _st($2)._initializeFromJQuery_(_st(document)._asJQuery());
  2264. $3=_st($2)._yourself();
  2265. self["@current"]=$3;
  2266. self["@current"];
  2267. } else {
  2268. $1;
  2269. };
  2270. return self}, function($ctx1) {$ctx1.fill(self,"ensureCurrent",{},globals.HTMLSnippet.klass)})},
  2271. args: [],
  2272. source: "ensureCurrent\x0a\x09current ifNil: [\x0a\x09\x09current := super new\x0a\x09\x09\x09initializeFromJQuery: document asJQuery;\x0a\x09\x09\x09yourself ]",
  2273. messageSends: ["ifNil:", "initializeFromJQuery:", "new", "asJQuery", "yourself"],
  2274. referencedClasses: []
  2275. }),
  2276. globals.HTMLSnippet.klass);
  2277. smalltalk.addMethod(
  2278. smalltalk.method({
  2279. selector: "initialize",
  2280. protocol: 'initialization',
  2281. fn: function (){
  2282. var self=this;
  2283. return smalltalk.withContext(function($ctx1) {
  2284. var $1;
  2285. globals.HTMLSnippet.klass.superclass.fn.prototype._initialize.apply(_st(self), []);
  2286. $1=self._isDOMAvailable();
  2287. if(smalltalk.assert($1)){
  2288. self._ensureCurrent();
  2289. };
  2290. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},globals.HTMLSnippet.klass)})},
  2291. args: [],
  2292. source: "initialize\x0a\x09super initialize.\x0a\x09self isDOMAvailable ifTrue: [\x0a\x09\x09self ensureCurrent ]",
  2293. messageSends: ["initialize", "ifTrue:", "isDOMAvailable", "ensureCurrent"],
  2294. referencedClasses: []
  2295. }),
  2296. globals.HTMLSnippet.klass);
  2297. smalltalk.addMethod(
  2298. smalltalk.method({
  2299. selector: "isDOMAvailable",
  2300. protocol: 'instance creation',
  2301. fn: function (){
  2302. var self=this;
  2303. return typeof document !== 'undefined' ;
  2304. return self},
  2305. args: [],
  2306. source: "isDOMAvailable\x0a\x09< return typeof document !== 'undefined' >",
  2307. messageSends: [],
  2308. referencedClasses: []
  2309. }),
  2310. globals.HTMLSnippet.klass);
  2311. smalltalk.addMethod(
  2312. smalltalk.method({
  2313. selector: "new",
  2314. protocol: 'instance creation',
  2315. fn: function (){
  2316. var self=this;
  2317. return smalltalk.withContext(function($ctx1) {
  2318. self._shouldNotImplement();
  2319. return self}, function($ctx1) {$ctx1.fill(self,"new",{},globals.HTMLSnippet.klass)})},
  2320. args: [],
  2321. source: "new\x0a\x09self shouldNotImplement",
  2322. messageSends: ["shouldNotImplement"],
  2323. referencedClasses: []
  2324. }),
  2325. globals.HTMLSnippet.klass);
  2326. smalltalk.addClass('TagBrush', globals.Object, ['canvas', 'element'], 'Canvas');
  2327. globals.TagBrush.comment="I am a brush for building a single DOM element (which I hold onto).\x0a\x0aAll tags but `<style>` are instances of me (see the `StyleBrush` class).\x0a\x0a## API\x0a\x0a1. Nesting\x0a\x0a Use `#with:` to nest tags. `#with:` can take aString, `TagBrush` instance, a `Widget` or block closure as parameter.\x0a\x0a Example: `aTag with: aString with: aCanvas div`\x0a\x0a2. Events\x0a\x0a The `events` protocol contains all methods related to events (delegating event handling to jQuery).\x0a\x0a Example: `aTag onClick: [ window alert: 'clicked' ]`\x0a\x0a3. Attributes\x0a\x0a The `attribute` protocol contains methods for attribute manipulation (delegating to jQuery too).\x0a\x0a Example: `aTag at: 'value' put: 'hello world'`\x0a\x0a4. Raw access and jQuery\x0a\x0a The `#element` method can be used to access to JavaScript DOM element object.\x0a\x0a Example: `aTag element cssStyle`\x0a\x0a Use `#asJQuery` to access to the receiver converted into a jQuery object.\x0a\x0a Example: `aTag asJQuery css: 'color' value: 'red'`";
  2328. smalltalk.addMethod(
  2329. smalltalk.method({
  2330. selector: "accesskey:",
  2331. protocol: 'attributes',
  2332. fn: function (aString){
  2333. var self=this;
  2334. return smalltalk.withContext(function($ctx1) {
  2335. self._at_put_("accesskey",aString);
  2336. return self}, function($ctx1) {$ctx1.fill(self,"accesskey:",{aString:aString},globals.TagBrush)})},
  2337. args: ["aString"],
  2338. source: "accesskey: aString\x0a\x09self at: 'accesskey' put: aString",
  2339. messageSends: ["at:put:"],
  2340. referencedClasses: []
  2341. }),
  2342. globals.TagBrush);
  2343. smalltalk.addMethod(
  2344. smalltalk.method({
  2345. selector: "action:",
  2346. protocol: 'attributes',
  2347. fn: function (aString){
  2348. var self=this;
  2349. return smalltalk.withContext(function($ctx1) {
  2350. self._at_put_("action",aString);
  2351. return self}, function($ctx1) {$ctx1.fill(self,"action:",{aString:aString},globals.TagBrush)})},
  2352. args: ["aString"],
  2353. source: "action: aString\x0a\x09self at: 'action' put: aString",
  2354. messageSends: ["at:put:"],
  2355. referencedClasses: []
  2356. }),
  2357. globals.TagBrush);
  2358. smalltalk.addMethod(
  2359. smalltalk.method({
  2360. selector: "addBrush:",
  2361. protocol: 'adding',
  2362. fn: function (aTagBrush){
  2363. var self=this;
  2364. return smalltalk.withContext(function($ctx1) {
  2365. self._appendChild_(_st(aTagBrush)._element());
  2366. return aTagBrush;
  2367. }, function($ctx1) {$ctx1.fill(self,"addBrush:",{aTagBrush:aTagBrush},globals.TagBrush)})},
  2368. args: ["aTagBrush"],
  2369. source: "addBrush: aTagBrush\x0a\x09self appendChild: aTagBrush element.\x0a\x09^ aTagBrush",
  2370. messageSends: ["appendChild:", "element"],
  2371. referencedClasses: []
  2372. }),
  2373. globals.TagBrush);
  2374. smalltalk.addMethod(
  2375. smalltalk.method({
  2376. selector: "align:",
  2377. protocol: 'attributes',
  2378. fn: function (aString){
  2379. var self=this;
  2380. return smalltalk.withContext(function($ctx1) {
  2381. self._at_put_("align",aString);
  2382. return self}, function($ctx1) {$ctx1.fill(self,"align:",{aString:aString},globals.TagBrush)})},
  2383. args: ["aString"],
  2384. source: "align: aString\x0a\x09self at: 'align' put: aString",
  2385. messageSends: ["at:put:"],
  2386. referencedClasses: []
  2387. }),
  2388. globals.TagBrush);
  2389. smalltalk.addMethod(
  2390. smalltalk.method({
  2391. selector: "alt:",
  2392. protocol: 'attributes',
  2393. fn: function (aString){
  2394. var self=this;
  2395. return smalltalk.withContext(function($ctx1) {
  2396. self._at_put_("alt",aString);
  2397. return self}, function($ctx1) {$ctx1.fill(self,"alt:",{aString:aString},globals.TagBrush)})},
  2398. args: ["aString"],
  2399. source: "alt: aString\x0a\x09self at: 'alt' put: aString",
  2400. messageSends: ["at:put:"],
  2401. referencedClasses: []
  2402. }),
  2403. globals.TagBrush);
  2404. smalltalk.addMethod(
  2405. smalltalk.method({
  2406. selector: "append:",
  2407. protocol: 'adding',
  2408. fn: function (anObject){
  2409. var self=this;
  2410. return smalltalk.withContext(function($ctx1) {
  2411. _st(anObject)._appendToBrush_(self);
  2412. return self}, function($ctx1) {$ctx1.fill(self,"append:",{anObject:anObject},globals.TagBrush)})},
  2413. args: ["anObject"],
  2414. source: "append: anObject\x0a\x09anObject appendToBrush: self",
  2415. messageSends: ["appendToBrush:"],
  2416. referencedClasses: []
  2417. }),
  2418. globals.TagBrush);
  2419. smalltalk.addMethod(
  2420. smalltalk.method({
  2421. selector: "appendBlock:",
  2422. protocol: 'adding',
  2423. fn: function (aBlock){
  2424. var self=this;
  2425. var root;
  2426. return smalltalk.withContext(function($ctx1) {
  2427. root=_st(self["@canvas"])._root();
  2428. _st(self["@canvas"])._root_(self);
  2429. $ctx1.sendIdx["root:"]=1;
  2430. _st(aBlock)._value_(self["@canvas"]);
  2431. _st(self["@canvas"])._root_(root);
  2432. return self}, function($ctx1) {$ctx1.fill(self,"appendBlock:",{aBlock:aBlock,root:root},globals.TagBrush)})},
  2433. args: ["aBlock"],
  2434. source: "appendBlock: aBlock\x0a\x09| root |\x0a\x09root := canvas root.\x0a\x09canvas root: self.\x0a\x09aBlock value: canvas.\x0a\x09canvas root: root",
  2435. messageSends: ["root", "root:", "value:"],
  2436. referencedClasses: []
  2437. }),
  2438. globals.TagBrush);
  2439. smalltalk.addMethod(
  2440. smalltalk.method({
  2441. selector: "appendChild:",
  2442. protocol: 'adding',
  2443. fn: function (anElement){
  2444. var self=this;
  2445. var element=self['@element'];
  2446. if (null == element.canHaveChildren || element.canHaveChildren) {
  2447. element.appendChild(anElement);
  2448. } else {
  2449. element.text = String(element.text) + anElement.innerHTML;
  2450. } ;
  2451. return self},
  2452. args: ["anElement"],
  2453. source: "appendChild: anElement\x0a\x09\x22In IE7 and IE8 appendChild fails on several node types. So we need to check\x22\x0a\x09<var element=self['@element'];\x0a\x09if (null == element.canHaveChildren || element.canHaveChildren) {\x0a\x09\x09element.appendChild(anElement);\x0a\x09} else {\x0a\x09\x09element.text = String(element.text) + anElement.innerHTML;\x0a\x09} >",
  2454. messageSends: [],
  2455. referencedClasses: []
  2456. }),
  2457. globals.TagBrush);
  2458. smalltalk.addMethod(
  2459. smalltalk.method({
  2460. selector: "appendDocumentFragment:",
  2461. protocol: 'private',
  2462. fn: function (anElement){
  2463. var self=this;
  2464. var element=self['@element'].appendChild(anElement["@element"]);
  2465. return self},
  2466. args: ["anElement"],
  2467. source: "appendDocumentFragment: anElement\x0a\x09<var element=self['@element'].appendChild(anElement[\x22@element\x22])>",
  2468. messageSends: [],
  2469. referencedClasses: []
  2470. }),
  2471. globals.TagBrush);
  2472. smalltalk.addMethod(
  2473. smalltalk.method({
  2474. selector: "appendString:",
  2475. protocol: 'adding',
  2476. fn: function (aString){
  2477. var self=this;
  2478. return smalltalk.withContext(function($ctx1) {
  2479. self._appendChild_(self._createTextNodeFor_(aString));
  2480. return self}, function($ctx1) {$ctx1.fill(self,"appendString:",{aString:aString},globals.TagBrush)})},
  2481. args: ["aString"],
  2482. source: "appendString: aString\x0a\x09self appendChild: (self createTextNodeFor: aString)",
  2483. messageSends: ["appendChild:", "createTextNodeFor:"],
  2484. referencedClasses: []
  2485. }),
  2486. globals.TagBrush);
  2487. smalltalk.addMethod(
  2488. smalltalk.method({
  2489. selector: "appendToBrush:",
  2490. protocol: 'adding',
  2491. fn: function (aTagBrush){
  2492. var self=this;
  2493. return smalltalk.withContext(function($ctx1) {
  2494. _st(aTagBrush)._addBrush_(self);
  2495. return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},globals.TagBrush)})},
  2496. args: ["aTagBrush"],
  2497. source: "appendToBrush: aTagBrush\x0a\x09aTagBrush addBrush: self",
  2498. messageSends: ["addBrush:"],
  2499. referencedClasses: []
  2500. }),
  2501. globals.TagBrush);
  2502. smalltalk.addMethod(
  2503. smalltalk.method({
  2504. selector: "asJQuery",
  2505. protocol: 'converting',
  2506. fn: function (){
  2507. var self=this;
  2508. return smalltalk.withContext(function($ctx1) {
  2509. var $1;
  2510. $1=_st(self._element())._asJQuery();
  2511. return $1;
  2512. }, function($ctx1) {$ctx1.fill(self,"asJQuery",{},globals.TagBrush)})},
  2513. args: [],
  2514. source: "asJQuery\x0a\x09^ self element asJQuery",
  2515. messageSends: ["asJQuery", "element"],
  2516. referencedClasses: []
  2517. }),
  2518. globals.TagBrush);
  2519. smalltalk.addMethod(
  2520. smalltalk.method({
  2521. selector: "at:",
  2522. protocol: 'attributes',
  2523. fn: function (aString){
  2524. var self=this;
  2525. function $Collection(){return globals.Collection||(typeof Collection=="undefined"?nil:Collection)}
  2526. return smalltalk.withContext(function($ctx1) {
  2527. var $1;
  2528. $1=self._at_ifAbsent_(aString,(function(){
  2529. return smalltalk.withContext(function($ctx2) {
  2530. return _st(_st($Collection())._new())._errorNotFound();
  2531. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}));
  2532. return $1;
  2533. }, function($ctx1) {$ctx1.fill(self,"at:",{aString:aString},globals.TagBrush)})},
  2534. args: ["aString"],
  2535. source: "at: aString\x0a\x09^ self at: aString ifAbsent: [ Collection new errorNotFound ]",
  2536. messageSends: ["at:ifAbsent:", "errorNotFound", "new"],
  2537. referencedClasses: ["Collection"]
  2538. }),
  2539. globals.TagBrush);
  2540. smalltalk.addMethod(
  2541. smalltalk.method({
  2542. selector: "at:ifAbsent:",
  2543. protocol: 'attributes',
  2544. fn: function (aString,aBlock){
  2545. var self=this;
  2546. return self['@element'].hasAttribute(aString) ? self['@element'].getAttribute(aString) : aBlock._value();
  2547. return self},
  2548. args: ["aString", "aBlock"],
  2549. source: "at: aString ifAbsent: aBlock\x0a\x09<return self['@element'].hasAttribute(aString) ? self['@element'].getAttribute(aString) : aBlock._value()>",
  2550. messageSends: [],
  2551. referencedClasses: []
  2552. }),
  2553. globals.TagBrush);
  2554. smalltalk.addMethod(
  2555. smalltalk.method({
  2556. selector: "at:put:",
  2557. protocol: 'attributes',
  2558. fn: function (aString,aValue){
  2559. var self=this;
  2560. self['@element'].setAttribute(aString, aValue); return aValue;
  2561. return self},
  2562. args: ["aString", "aValue"],
  2563. source: "at: aString put: aValue\x0a\x09<self['@element'].setAttribute(aString, aValue); return aValue>",
  2564. messageSends: [],
  2565. referencedClasses: []
  2566. }),
  2567. globals.TagBrush);
  2568. smalltalk.addMethod(
  2569. smalltalk.method({
  2570. selector: "class:",
  2571. protocol: 'attributes',
  2572. fn: function (aString){
  2573. var self=this;
  2574. self['@element'].className = aString;
  2575. return self},
  2576. args: ["aString"],
  2577. source: "class: aString\x0a\x09<self['@element'].className = aString>",
  2578. messageSends: [],
  2579. referencedClasses: []
  2580. }),
  2581. globals.TagBrush);
  2582. smalltalk.addMethod(
  2583. smalltalk.method({
  2584. selector: "cols:",
  2585. protocol: 'attributes',
  2586. fn: function (aString){
  2587. var self=this;
  2588. return smalltalk.withContext(function($ctx1) {
  2589. self._at_put_("cols",aString);
  2590. return self}, function($ctx1) {$ctx1.fill(self,"cols:",{aString:aString},globals.TagBrush)})},
  2591. args: ["aString"],
  2592. source: "cols: aString\x0a\x09self at: 'cols' put: aString",
  2593. messageSends: ["at:put:"],
  2594. referencedClasses: []
  2595. }),
  2596. globals.TagBrush);
  2597. smalltalk.addMethod(
  2598. smalltalk.method({
  2599. selector: "contenteditable:",
  2600. protocol: 'attributes',
  2601. fn: function (aString){
  2602. var self=this;
  2603. return smalltalk.withContext(function($ctx1) {
  2604. self._at_put_("contenteditable",aString);
  2605. return self}, function($ctx1) {$ctx1.fill(self,"contenteditable:",{aString:aString},globals.TagBrush)})},
  2606. args: ["aString"],
  2607. source: "contenteditable: aString\x0a\x09self at: 'contenteditable' put: aString",
  2608. messageSends: ["at:put:"],
  2609. referencedClasses: []
  2610. }),
  2611. globals.TagBrush);
  2612. smalltalk.addMethod(
  2613. smalltalk.method({
  2614. selector: "contents:",
  2615. protocol: 'adding',
  2616. fn: function (anObject){
  2617. var self=this;
  2618. return smalltalk.withContext(function($ctx1) {
  2619. var $1;
  2620. self._empty();
  2621. $1=self._append_(anObject);
  2622. return self}, function($ctx1) {$ctx1.fill(self,"contents:",{anObject:anObject},globals.TagBrush)})},
  2623. args: ["anObject"],
  2624. source: "contents: anObject\x0a\x09self\x0a\x09empty;\x0a\x09append: anObject",
  2625. messageSends: ["empty", "append:"],
  2626. referencedClasses: []
  2627. }),
  2628. globals.TagBrush);
  2629. smalltalk.addMethod(
  2630. smalltalk.method({
  2631. selector: "contextmenu:",
  2632. protocol: 'attributes',
  2633. fn: function (aString){
  2634. var self=this;
  2635. return smalltalk.withContext(function($ctx1) {
  2636. self._at_put_("contextmenu",aString);
  2637. return self}, function($ctx1) {$ctx1.fill(self,"contextmenu:",{aString:aString},globals.TagBrush)})},
  2638. args: ["aString"],
  2639. source: "contextmenu: aString\x0a\x09self at: 'contextmenu' put: aString",
  2640. messageSends: ["at:put:"],
  2641. referencedClasses: []
  2642. }),
  2643. globals.TagBrush);
  2644. smalltalk.addMethod(
  2645. smalltalk.method({
  2646. selector: "createElementFor:",
  2647. protocol: 'private',
  2648. fn: function (aString){
  2649. var self=this;
  2650. return document.createElement(String(aString));
  2651. return self},
  2652. args: ["aString"],
  2653. source: "createElementFor: aString\x0a\x09<return document.createElement(String(aString))>",
  2654. messageSends: [],
  2655. referencedClasses: []
  2656. }),
  2657. globals.TagBrush);
  2658. smalltalk.addMethod(
  2659. smalltalk.method({
  2660. selector: "createTextNodeFor:",
  2661. protocol: 'private',
  2662. fn: function (aString){
  2663. var self=this;
  2664. return document.createTextNode(String(aString));
  2665. return self},
  2666. args: ["aString"],
  2667. source: "createTextNodeFor: aString\x0a\x09<return document.createTextNode(String(aString))>",
  2668. messageSends: [],
  2669. referencedClasses: []
  2670. }),
  2671. globals.TagBrush);
  2672. smalltalk.addMethod(
  2673. smalltalk.method({
  2674. selector: "draggable:",
  2675. protocol: 'attributes',
  2676. fn: function (aString){
  2677. var self=this;
  2678. return smalltalk.withContext(function($ctx1) {
  2679. self._at_put_("draggable",aString);
  2680. return self}, function($ctx1) {$ctx1.fill(self,"draggable:",{aString:aString},globals.TagBrush)})},
  2681. args: ["aString"],
  2682. source: "draggable: aString\x0a\x09self at: 'draggable' put: aString",
  2683. messageSends: ["at:put:"],
  2684. referencedClasses: []
  2685. }),
  2686. globals.TagBrush);
  2687. smalltalk.addMethod(
  2688. smalltalk.method({
  2689. selector: "element",
  2690. protocol: 'accessing',
  2691. fn: function (){
  2692. var self=this;
  2693. var $1;
  2694. $1=self["@element"];
  2695. return $1;
  2696. },
  2697. args: [],
  2698. source: "element\x0a\x09^ element",
  2699. messageSends: [],
  2700. referencedClasses: []
  2701. }),
  2702. globals.TagBrush);
  2703. smalltalk.addMethod(
  2704. smalltalk.method({
  2705. selector: "empty",
  2706. protocol: 'adding',
  2707. fn: function (){
  2708. var self=this;
  2709. return smalltalk.withContext(function($ctx1) {
  2710. _st(self._asJQuery())._empty();
  2711. return self}, function($ctx1) {$ctx1.fill(self,"empty",{},globals.TagBrush)})},
  2712. args: [],
  2713. source: "empty\x0a\x09self asJQuery empty",
  2714. messageSends: ["empty", "asJQuery"],
  2715. referencedClasses: []
  2716. }),
  2717. globals.TagBrush);
  2718. smalltalk.addMethod(
  2719. smalltalk.method({
  2720. selector: "for:",
  2721. protocol: 'attributes',
  2722. fn: function (aString){
  2723. var self=this;
  2724. return smalltalk.withContext(function($ctx1) {
  2725. self._at_put_("for",aString);
  2726. return self}, function($ctx1) {$ctx1.fill(self,"for:",{aString:aString},globals.TagBrush)})},
  2727. args: ["aString"],
  2728. source: "for: aString\x0a\x09self at: 'for' put: aString",
  2729. messageSends: ["at:put:"],
  2730. referencedClasses: []
  2731. }),
  2732. globals.TagBrush);
  2733. smalltalk.addMethod(
  2734. smalltalk.method({
  2735. selector: "height:",
  2736. protocol: 'attributes',
  2737. fn: function (aString){
  2738. var self=this;
  2739. return smalltalk.withContext(function($ctx1) {
  2740. self._at_put_("height",aString);
  2741. return self}, function($ctx1) {$ctx1.fill(self,"height:",{aString:aString},globals.TagBrush)})},
  2742. args: ["aString"],
  2743. source: "height: aString\x0a\x09self at: 'height' put: aString",
  2744. messageSends: ["at:put:"],
  2745. referencedClasses: []
  2746. }),
  2747. globals.TagBrush);
  2748. smalltalk.addMethod(
  2749. smalltalk.method({
  2750. selector: "hidden",
  2751. protocol: 'attributes',
  2752. fn: function (){
  2753. var self=this;
  2754. return smalltalk.withContext(function($ctx1) {
  2755. self._at_put_("hidden","hidden");
  2756. return self}, function($ctx1) {$ctx1.fill(self,"hidden",{},globals.TagBrush)})},
  2757. args: [],
  2758. source: "hidden\x0a\x09self at: 'hidden' put: 'hidden'",
  2759. messageSends: ["at:put:"],
  2760. referencedClasses: []
  2761. }),
  2762. globals.TagBrush);
  2763. smalltalk.addMethod(
  2764. smalltalk.method({
  2765. selector: "href:",
  2766. protocol: 'attributes',
  2767. fn: function (aString){
  2768. var self=this;
  2769. return smalltalk.withContext(function($ctx1) {
  2770. self._at_put_("href",aString);
  2771. return self}, function($ctx1) {$ctx1.fill(self,"href:",{aString:aString},globals.TagBrush)})},
  2772. args: ["aString"],
  2773. source: "href: aString\x0a\x09self at: 'href' put: aString",
  2774. messageSends: ["at:put:"],
  2775. referencedClasses: []
  2776. }),
  2777. globals.TagBrush);
  2778. smalltalk.addMethod(
  2779. smalltalk.method({
  2780. selector: "id:",
  2781. protocol: 'attributes',
  2782. fn: function (aString){
  2783. var self=this;
  2784. return smalltalk.withContext(function($ctx1) {
  2785. self._at_put_("id",aString);
  2786. return self}, function($ctx1) {$ctx1.fill(self,"id:",{aString:aString},globals.TagBrush)})},
  2787. args: ["aString"],
  2788. source: "id: aString\x0a\x09self at: 'id' put: aString",
  2789. messageSends: ["at:put:"],
  2790. referencedClasses: []
  2791. }),
  2792. globals.TagBrush);
  2793. smalltalk.addMethod(
  2794. smalltalk.method({
  2795. selector: "initializeFromJQuery:canvas:",
  2796. protocol: 'initialization',
  2797. fn: function (aJQuery,aCanvas){
  2798. var self=this;
  2799. return smalltalk.withContext(function($ctx1) {
  2800. self["@element"]=_st(aJQuery)._get_((0));
  2801. self["@canvas"]=aCanvas;
  2802. return self}, function($ctx1) {$ctx1.fill(self,"initializeFromJQuery:canvas:",{aJQuery:aJQuery,aCanvas:aCanvas},globals.TagBrush)})},
  2803. args: ["aJQuery", "aCanvas"],
  2804. source: "initializeFromJQuery: aJQuery canvas: aCanvas\x0a\x09element := aJQuery get: 0.\x0a\x09canvas := aCanvas",
  2805. messageSends: ["get:"],
  2806. referencedClasses: []
  2807. }),
  2808. globals.TagBrush);
  2809. smalltalk.addMethod(
  2810. smalltalk.method({
  2811. selector: "initializeFromString:canvas:",
  2812. protocol: 'initialization',
  2813. fn: function (aString,aCanvas){
  2814. var self=this;
  2815. return smalltalk.withContext(function($ctx1) {
  2816. self["@element"]=self._createElementFor_(aString);
  2817. self["@canvas"]=aCanvas;
  2818. return self}, function($ctx1) {$ctx1.fill(self,"initializeFromString:canvas:",{aString:aString,aCanvas:aCanvas},globals.TagBrush)})},
  2819. args: ["aString", "aCanvas"],
  2820. source: "initializeFromString: aString canvas: aCanvas\x0a\x09element := self createElementFor: aString.\x0a\x09canvas := aCanvas",
  2821. messageSends: ["createElementFor:"],
  2822. referencedClasses: []
  2823. }),
  2824. globals.TagBrush);
  2825. smalltalk.addMethod(
  2826. smalltalk.method({
  2827. selector: "media:",
  2828. protocol: 'attributes',
  2829. fn: function (aString){
  2830. var self=this;
  2831. return smalltalk.withContext(function($ctx1) {
  2832. self._at_put_("media",aString);
  2833. return self}, function($ctx1) {$ctx1.fill(self,"media:",{aString:aString},globals.TagBrush)})},
  2834. args: ["aString"],
  2835. source: "media: aString\x0a\x09self at: 'media' put: aString",
  2836. messageSends: ["at:put:"],
  2837. referencedClasses: []
  2838. }),
  2839. globals.TagBrush);
  2840. smalltalk.addMethod(
  2841. smalltalk.method({
  2842. selector: "method:",
  2843. protocol: 'attributes',
  2844. fn: function (aString){
  2845. var self=this;
  2846. return smalltalk.withContext(function($ctx1) {
  2847. self._at_put_("method",aString);
  2848. return self}, function($ctx1) {$ctx1.fill(self,"method:",{aString:aString},globals.TagBrush)})},
  2849. args: ["aString"],
  2850. source: "method: aString\x0a\x09self at: 'method' put: aString",
  2851. messageSends: ["at:put:"],
  2852. referencedClasses: []
  2853. }),
  2854. globals.TagBrush);
  2855. smalltalk.addMethod(
  2856. smalltalk.method({
  2857. selector: "name:",
  2858. protocol: 'attributes',
  2859. fn: function (aString){
  2860. var self=this;
  2861. return smalltalk.withContext(function($ctx1) {
  2862. self._at_put_("name",aString);
  2863. return self}, function($ctx1) {$ctx1.fill(self,"name:",{aString:aString},globals.TagBrush)})},
  2864. args: ["aString"],
  2865. source: "name: aString\x0a\x09self at: 'name' put: aString",
  2866. messageSends: ["at:put:"],
  2867. referencedClasses: []
  2868. }),
  2869. globals.TagBrush);
  2870. smalltalk.addMethod(
  2871. smalltalk.method({
  2872. selector: "onBlur:",
  2873. protocol: 'events',
  2874. fn: function (aBlock){
  2875. var self=this;
  2876. return smalltalk.withContext(function($ctx1) {
  2877. _st(self._asJQuery())._bind_do_("blur",aBlock);
  2878. return self}, function($ctx1) {$ctx1.fill(self,"onBlur:",{aBlock:aBlock},globals.TagBrush)})},
  2879. args: ["aBlock"],
  2880. source: "onBlur: aBlock\x0a\x09self asJQuery bind: 'blur' do: aBlock",
  2881. messageSends: ["bind:do:", "asJQuery"],
  2882. referencedClasses: []
  2883. }),
  2884. globals.TagBrush);
  2885. smalltalk.addMethod(
  2886. smalltalk.method({
  2887. selector: "onChange:",
  2888. protocol: 'events',
  2889. fn: function (aBlock){
  2890. var self=this;
  2891. return smalltalk.withContext(function($ctx1) {
  2892. _st(self._asJQuery())._bind_do_("change",aBlock);
  2893. return self}, function($ctx1) {$ctx1.fill(self,"onChange:",{aBlock:aBlock},globals.TagBrush)})},
  2894. args: ["aBlock"],
  2895. source: "onChange: aBlock\x0a\x09self asJQuery bind: 'change' do: aBlock",
  2896. messageSends: ["bind:do:", "asJQuery"],
  2897. referencedClasses: []
  2898. }),
  2899. globals.TagBrush);
  2900. smalltalk.addMethod(
  2901. smalltalk.method({
  2902. selector: "onClick:",
  2903. protocol: 'events',
  2904. fn: function (aBlock){
  2905. var self=this;
  2906. return smalltalk.withContext(function($ctx1) {
  2907. _st(self._asJQuery())._bind_do_("click",aBlock);
  2908. return self}, function($ctx1) {$ctx1.fill(self,"onClick:",{aBlock:aBlock},globals.TagBrush)})},
  2909. args: ["aBlock"],
  2910. source: "onClick: aBlock\x0a\x09self asJQuery bind: 'click' do: aBlock",
  2911. messageSends: ["bind:do:", "asJQuery"],
  2912. referencedClasses: []
  2913. }),
  2914. globals.TagBrush);
  2915. smalltalk.addMethod(
  2916. smalltalk.method({
  2917. selector: "onDblClick:",
  2918. protocol: 'events',
  2919. fn: function (aBlock){
  2920. var self=this;
  2921. return smalltalk.withContext(function($ctx1) {
  2922. _st(self._asJQuery())._bind_do_("dblclick",aBlock);
  2923. return self}, function($ctx1) {$ctx1.fill(self,"onDblClick:",{aBlock:aBlock},globals.TagBrush)})},
  2924. args: ["aBlock"],
  2925. source: "onDblClick: aBlock\x0a\x09self asJQuery bind: 'dblclick' do: aBlock",
  2926. messageSends: ["bind:do:", "asJQuery"],
  2927. referencedClasses: []
  2928. }),
  2929. globals.TagBrush);
  2930. smalltalk.addMethod(
  2931. smalltalk.method({
  2932. selector: "onFocus:",
  2933. protocol: 'events',
  2934. fn: function (aBlock){
  2935. var self=this;
  2936. return smalltalk.withContext(function($ctx1) {
  2937. _st(self._asJQuery())._bind_do_("focus",aBlock);
  2938. return self}, function($ctx1) {$ctx1.fill(self,"onFocus:",{aBlock:aBlock},globals.TagBrush)})},
  2939. args: ["aBlock"],
  2940. source: "onFocus: aBlock\x0a\x09self asJQuery bind: 'focus' do: aBlock",
  2941. messageSends: ["bind:do:", "asJQuery"],
  2942. referencedClasses: []
  2943. }),
  2944. globals.TagBrush);
  2945. smalltalk.addMethod(
  2946. smalltalk.method({
  2947. selector: "onFocusIn:",
  2948. protocol: 'events',
  2949. fn: function (aBlock){
  2950. var self=this;
  2951. return smalltalk.withContext(function($ctx1) {
  2952. _st(self._asJQuery())._bind_do_("focusin",aBlock);
  2953. return self}, function($ctx1) {$ctx1.fill(self,"onFocusIn:",{aBlock:aBlock},globals.TagBrush)})},
  2954. args: ["aBlock"],
  2955. source: "onFocusIn: aBlock\x0a\x09self asJQuery bind: 'focusin' do: aBlock",
  2956. messageSends: ["bind:do:", "asJQuery"],
  2957. referencedClasses: []
  2958. }),
  2959. globals.TagBrush);
  2960. smalltalk.addMethod(
  2961. smalltalk.method({
  2962. selector: "onFocusOut:",
  2963. protocol: 'events',
  2964. fn: function (aBlock){
  2965. var self=this;
  2966. return smalltalk.withContext(function($ctx1) {
  2967. _st(self._asJQuery())._bind_do_("focusout",aBlock);
  2968. return self}, function($ctx1) {$ctx1.fill(self,"onFocusOut:",{aBlock:aBlock},globals.TagBrush)})},
  2969. args: ["aBlock"],
  2970. source: "onFocusOut: aBlock\x0a\x09self asJQuery bind: 'focusout' do: aBlock",
  2971. messageSends: ["bind:do:", "asJQuery"],
  2972. referencedClasses: []
  2973. }),
  2974. globals.TagBrush);
  2975. smalltalk.addMethod(
  2976. smalltalk.method({
  2977. selector: "onHover:",
  2978. protocol: 'events',
  2979. fn: function (aBlock){
  2980. var self=this;
  2981. return smalltalk.withContext(function($ctx1) {
  2982. _st(self._asJQuery())._bind_do_("hover",aBlock);
  2983. return self}, function($ctx1) {$ctx1.fill(self,"onHover:",{aBlock:aBlock},globals.TagBrush)})},
  2984. args: ["aBlock"],
  2985. source: "onHover: aBlock\x0a\x09self asJQuery bind: 'hover' do: aBlock",
  2986. messageSends: ["bind:do:", "asJQuery"],
  2987. referencedClasses: []
  2988. }),
  2989. globals.TagBrush);
  2990. smalltalk.addMethod(
  2991. smalltalk.method({
  2992. selector: "onKeyDown:",
  2993. protocol: 'events',
  2994. fn: function (aBlock){
  2995. var self=this;
  2996. return smalltalk.withContext(function($ctx1) {
  2997. _st(self._asJQuery())._bind_do_("keydown",aBlock);
  2998. return self}, function($ctx1) {$ctx1.fill(self,"onKeyDown:",{aBlock:aBlock},globals.TagBrush)})},
  2999. args: ["aBlock"],
  3000. source: "onKeyDown: aBlock\x0a\x09self asJQuery bind: 'keydown' do: aBlock",
  3001. messageSends: ["bind:do:", "asJQuery"],
  3002. referencedClasses: []
  3003. }),
  3004. globals.TagBrush);
  3005. smalltalk.addMethod(
  3006. smalltalk.method({
  3007. selector: "onKeyPress:",
  3008. protocol: 'events',
  3009. fn: function (aBlock){
  3010. var self=this;
  3011. return smalltalk.withContext(function($ctx1) {
  3012. _st(self._asJQuery())._bind_do_("keypress",aBlock);
  3013. return self}, function($ctx1) {$ctx1.fill(self,"onKeyPress:",{aBlock:aBlock},globals.TagBrush)})},
  3014. args: ["aBlock"],
  3015. source: "onKeyPress: aBlock\x0a\x09self asJQuery bind: 'keypress' do: aBlock",
  3016. messageSends: ["bind:do:", "asJQuery"],
  3017. referencedClasses: []
  3018. }),
  3019. globals.TagBrush);
  3020. smalltalk.addMethod(
  3021. smalltalk.method({
  3022. selector: "onKeyUp:",
  3023. protocol: 'events',
  3024. fn: function (aBlock){
  3025. var self=this;
  3026. return smalltalk.withContext(function($ctx1) {
  3027. _st(self._asJQuery())._bind_do_("keyup",aBlock);
  3028. return self}, function($ctx1) {$ctx1.fill(self,"onKeyUp:",{aBlock:aBlock},globals.TagBrush)})},
  3029. args: ["aBlock"],
  3030. source: "onKeyUp: aBlock\x0a\x09self asJQuery bind: 'keyup' do: aBlock",
  3031. messageSends: ["bind:do:", "asJQuery"],
  3032. referencedClasses: []
  3033. }),
  3034. globals.TagBrush);
  3035. smalltalk.addMethod(
  3036. smalltalk.method({
  3037. selector: "onMouseDown:",
  3038. protocol: 'events',
  3039. fn: function (aBlock){
  3040. var self=this;
  3041. return smalltalk.withContext(function($ctx1) {
  3042. _st(self._asJQuery())._bind_do_("mousedown",aBlock);
  3043. return self}, function($ctx1) {$ctx1.fill(self,"onMouseDown:",{aBlock:aBlock},globals.TagBrush)})},
  3044. args: ["aBlock"],
  3045. source: "onMouseDown: aBlock\x0a\x09self asJQuery bind: 'mousedown' do: aBlock",
  3046. messageSends: ["bind:do:", "asJQuery"],
  3047. referencedClasses: []
  3048. }),
  3049. globals.TagBrush);
  3050. smalltalk.addMethod(
  3051. smalltalk.method({
  3052. selector: "onMouseEnter:",
  3053. protocol: 'events',
  3054. fn: function (aBlock){
  3055. var self=this;
  3056. return smalltalk.withContext(function($ctx1) {
  3057. _st(self._asJQuery())._bind_do_("mouseenter",aBlock);
  3058. return self}, function($ctx1) {$ctx1.fill(self,"onMouseEnter:",{aBlock:aBlock},globals.TagBrush)})},
  3059. args: ["aBlock"],
  3060. source: "onMouseEnter: aBlock\x0a\x09self asJQuery bind: 'mouseenter' do: aBlock",
  3061. messageSends: ["bind:do:", "asJQuery"],
  3062. referencedClasses: []
  3063. }),
  3064. globals.TagBrush);
  3065. smalltalk.addMethod(
  3066. smalltalk.method({
  3067. selector: "onMouseLeave:",
  3068. protocol: 'events',
  3069. fn: function (aBlock){
  3070. var self=this;
  3071. return smalltalk.withContext(function($ctx1) {
  3072. _st(self._asJQuery())._bind_do_("mouseleave",aBlock);
  3073. return self}, function($ctx1) {$ctx1.fill(self,"onMouseLeave:",{aBlock:aBlock},globals.TagBrush)})},
  3074. args: ["aBlock"],
  3075. source: "onMouseLeave: aBlock\x0a\x09self asJQuery bind: 'mouseleave' do: aBlock",
  3076. messageSends: ["bind:do:", "asJQuery"],
  3077. referencedClasses: []
  3078. }),
  3079. globals.TagBrush);
  3080. smalltalk.addMethod(
  3081. smalltalk.method({
  3082. selector: "onMouseMove:",
  3083. protocol: 'events',
  3084. fn: function (aBlock){
  3085. var self=this;
  3086. return smalltalk.withContext(function($ctx1) {
  3087. _st(self._asJQuery())._bind_do_("mousemove",aBlock);
  3088. return self}, function($ctx1) {$ctx1.fill(self,"onMouseMove:",{aBlock:aBlock},globals.TagBrush)})},
  3089. args: ["aBlock"],
  3090. source: "onMouseMove: aBlock\x0a\x09self asJQuery bind: 'mousemove' do: aBlock",
  3091. messageSends: ["bind:do:", "asJQuery"],
  3092. referencedClasses: []
  3093. }),
  3094. globals.TagBrush);
  3095. smalltalk.addMethod(
  3096. smalltalk.method({
  3097. selector: "onMouseOut:",
  3098. protocol: 'events',
  3099. fn: function (aBlock){
  3100. var self=this;
  3101. return smalltalk.withContext(function($ctx1) {
  3102. _st(self._asJQuery())._bind_do_("mouseout",aBlock);
  3103. return self}, function($ctx1) {$ctx1.fill(self,"onMouseOut:",{aBlock:aBlock},globals.TagBrush)})},
  3104. args: ["aBlock"],
  3105. source: "onMouseOut: aBlock\x0a\x09self asJQuery bind: 'mouseout' do: aBlock",
  3106. messageSends: ["bind:do:", "asJQuery"],
  3107. referencedClasses: []
  3108. }),
  3109. globals.TagBrush);
  3110. smalltalk.addMethod(
  3111. smalltalk.method({
  3112. selector: "onMouseOver:",
  3113. protocol: 'events',
  3114. fn: function (aBlock){
  3115. var self=this;
  3116. return smalltalk.withContext(function($ctx1) {
  3117. _st(self._asJQuery())._bind_do_("mouseover",aBlock);
  3118. return self}, function($ctx1) {$ctx1.fill(self,"onMouseOver:",{aBlock:aBlock},globals.TagBrush)})},
  3119. args: ["aBlock"],
  3120. source: "onMouseOver: aBlock\x0a\x09self asJQuery bind: 'mouseover' do: aBlock",
  3121. messageSends: ["bind:do:", "asJQuery"],
  3122. referencedClasses: []
  3123. }),
  3124. globals.TagBrush);
  3125. smalltalk.addMethod(
  3126. smalltalk.method({
  3127. selector: "onMouseUp:",
  3128. protocol: 'events',
  3129. fn: function (aBlock){
  3130. var self=this;
  3131. return smalltalk.withContext(function($ctx1) {
  3132. _st(self._asJQuery())._bind_do_("mouseup",aBlock);
  3133. return self}, function($ctx1) {$ctx1.fill(self,"onMouseUp:",{aBlock:aBlock},globals.TagBrush)})},
  3134. args: ["aBlock"],
  3135. source: "onMouseUp: aBlock\x0a\x09self asJQuery bind: 'mouseup' do: aBlock",
  3136. messageSends: ["bind:do:", "asJQuery"],
  3137. referencedClasses: []
  3138. }),
  3139. globals.TagBrush);
  3140. smalltalk.addMethod(
  3141. smalltalk.method({
  3142. selector: "onSelect:",
  3143. protocol: 'events',
  3144. fn: function (aBlock){
  3145. var self=this;
  3146. return smalltalk.withContext(function($ctx1) {
  3147. _st(self._asJQuery())._bind_do_("select",aBlock);
  3148. return self}, function($ctx1) {$ctx1.fill(self,"onSelect:",{aBlock:aBlock},globals.TagBrush)})},
  3149. args: ["aBlock"],
  3150. source: "onSelect: aBlock\x0a\x09self asJQuery bind: 'select' do: aBlock",
  3151. messageSends: ["bind:do:", "asJQuery"],
  3152. referencedClasses: []
  3153. }),
  3154. globals.TagBrush);
  3155. smalltalk.addMethod(
  3156. smalltalk.method({
  3157. selector: "onSubmit:",
  3158. protocol: 'events',
  3159. fn: function (aBlock){
  3160. var self=this;
  3161. return smalltalk.withContext(function($ctx1) {
  3162. _st(self._asJQuery())._bind_do_("submit",aBlock);
  3163. return self}, function($ctx1) {$ctx1.fill(self,"onSubmit:",{aBlock:aBlock},globals.TagBrush)})},
  3164. args: ["aBlock"],
  3165. source: "onSubmit: aBlock\x0a\x09self asJQuery bind: 'submit' do: aBlock",
  3166. messageSends: ["bind:do:", "asJQuery"],
  3167. referencedClasses: []
  3168. }),
  3169. globals.TagBrush);
  3170. smalltalk.addMethod(
  3171. smalltalk.method({
  3172. selector: "onUnload:",
  3173. protocol: 'events',
  3174. fn: function (aBlock){
  3175. var self=this;
  3176. return smalltalk.withContext(function($ctx1) {
  3177. _st(self._asJQuery())._bind_do_("unload",aBlock);
  3178. return self}, function($ctx1) {$ctx1.fill(self,"onUnload:",{aBlock:aBlock},globals.TagBrush)})},
  3179. args: ["aBlock"],
  3180. source: "onUnload: aBlock\x0a\x09self asJQuery bind: 'unload' do: aBlock",
  3181. messageSends: ["bind:do:", "asJQuery"],
  3182. referencedClasses: []
  3183. }),
  3184. globals.TagBrush);
  3185. smalltalk.addMethod(
  3186. smalltalk.method({
  3187. selector: "placeholder:",
  3188. protocol: 'attributes',
  3189. fn: function (aString){
  3190. var self=this;
  3191. return smalltalk.withContext(function($ctx1) {
  3192. self._at_put_("placeholder",aString);
  3193. return self}, function($ctx1) {$ctx1.fill(self,"placeholder:",{aString:aString},globals.TagBrush)})},
  3194. args: ["aString"],
  3195. source: "placeholder: aString\x0a\x09self at: 'placeholder' put: aString",
  3196. messageSends: ["at:put:"],
  3197. referencedClasses: []
  3198. }),
  3199. globals.TagBrush);
  3200. smalltalk.addMethod(
  3201. smalltalk.method({
  3202. selector: "rel:",
  3203. protocol: 'attributes',
  3204. fn: function (aString){
  3205. var self=this;
  3206. return smalltalk.withContext(function($ctx1) {
  3207. self._at_put_("rel",aString);
  3208. return self}, function($ctx1) {$ctx1.fill(self,"rel:",{aString:aString},globals.TagBrush)})},
  3209. args: ["aString"],
  3210. source: "rel: aString\x0a\x09self at: 'rel' put: aString",
  3211. messageSends: ["at:put:"],
  3212. referencedClasses: []
  3213. }),
  3214. globals.TagBrush);
  3215. smalltalk.addMethod(
  3216. smalltalk.method({
  3217. selector: "removeAt:",
  3218. protocol: 'attributes',
  3219. fn: function (aString){
  3220. var self=this;
  3221. self['@element'].removeAttribute(aString);
  3222. return self},
  3223. args: ["aString"],
  3224. source: "removeAt: aString\x0a\x09<self['@element'].removeAttribute(aString)>",
  3225. messageSends: [],
  3226. referencedClasses: []
  3227. }),
  3228. globals.TagBrush);
  3229. smalltalk.addMethod(
  3230. smalltalk.method({
  3231. selector: "rows:",
  3232. protocol: 'attributes',
  3233. fn: function (aString){
  3234. var self=this;
  3235. return smalltalk.withContext(function($ctx1) {
  3236. self._at_put_("rows",aString);
  3237. return self}, function($ctx1) {$ctx1.fill(self,"rows:",{aString:aString},globals.TagBrush)})},
  3238. args: ["aString"],
  3239. source: "rows: aString\x0a\x09self at: 'rows' put: aString",
  3240. messageSends: ["at:put:"],
  3241. referencedClasses: []
  3242. }),
  3243. globals.TagBrush);
  3244. smalltalk.addMethod(
  3245. smalltalk.method({
  3246. selector: "src:",
  3247. protocol: 'attributes',
  3248. fn: function (aString){
  3249. var self=this;
  3250. return smalltalk.withContext(function($ctx1) {
  3251. self._at_put_("src",aString);
  3252. return self}, function($ctx1) {$ctx1.fill(self,"src:",{aString:aString},globals.TagBrush)})},
  3253. args: ["aString"],
  3254. source: "src: aString\x0a\x09self at: 'src' put: aString",
  3255. messageSends: ["at:put:"],
  3256. referencedClasses: []
  3257. }),
  3258. globals.TagBrush);
  3259. smalltalk.addMethod(
  3260. smalltalk.method({
  3261. selector: "style:",
  3262. protocol: 'attributes',
  3263. fn: function (aString){
  3264. var self=this;
  3265. return smalltalk.withContext(function($ctx1) {
  3266. self._at_put_("style",aString);
  3267. return self}, function($ctx1) {$ctx1.fill(self,"style:",{aString:aString},globals.TagBrush)})},
  3268. args: ["aString"],
  3269. source: "style: aString\x0a\x09self at: 'style' put: aString",
  3270. messageSends: ["at:put:"],
  3271. referencedClasses: []
  3272. }),
  3273. globals.TagBrush);
  3274. smalltalk.addMethod(
  3275. smalltalk.method({
  3276. selector: "tabindex:",
  3277. protocol: 'attributes',
  3278. fn: function (aNumber){
  3279. var self=this;
  3280. return smalltalk.withContext(function($ctx1) {
  3281. self._at_put_("tabindex",aNumber);
  3282. return self}, function($ctx1) {$ctx1.fill(self,"tabindex:",{aNumber:aNumber},globals.TagBrush)})},
  3283. args: ["aNumber"],
  3284. source: "tabindex: aNumber\x0a\x09self at: 'tabindex' put: aNumber",
  3285. messageSends: ["at:put:"],
  3286. referencedClasses: []
  3287. }),
  3288. globals.TagBrush);
  3289. smalltalk.addMethod(
  3290. smalltalk.method({
  3291. selector: "target:",
  3292. protocol: 'attributes',
  3293. fn: function (aString){
  3294. var self=this;
  3295. return smalltalk.withContext(function($ctx1) {
  3296. self._at_put_("target",aString);
  3297. return self}, function($ctx1) {$ctx1.fill(self,"target:",{aString:aString},globals.TagBrush)})},
  3298. args: ["aString"],
  3299. source: "target: aString\x0a\x09self at: 'target' put: aString",
  3300. messageSends: ["at:put:"],
  3301. referencedClasses: []
  3302. }),
  3303. globals.TagBrush);
  3304. smalltalk.addMethod(
  3305. smalltalk.method({
  3306. selector: "title:",
  3307. protocol: 'attributes',
  3308. fn: function (aString){
  3309. var self=this;
  3310. return smalltalk.withContext(function($ctx1) {
  3311. self._at_put_("title",aString);
  3312. return self}, function($ctx1) {$ctx1.fill(self,"title:",{aString:aString},globals.TagBrush)})},
  3313. args: ["aString"],
  3314. source: "title: aString\x0a\x09self at: 'title' put: aString",
  3315. messageSends: ["at:put:"],
  3316. referencedClasses: []
  3317. }),
  3318. globals.TagBrush);
  3319. smalltalk.addMethod(
  3320. smalltalk.method({
  3321. selector: "type:",
  3322. protocol: 'attributes',
  3323. fn: function (aString){
  3324. var self=this;
  3325. return smalltalk.withContext(function($ctx1) {
  3326. self._at_put_("type",aString);
  3327. return self}, function($ctx1) {$ctx1.fill(self,"type:",{aString:aString},globals.TagBrush)})},
  3328. args: ["aString"],
  3329. source: "type: aString\x0a\x09self at: 'type' put: aString",
  3330. messageSends: ["at:put:"],
  3331. referencedClasses: []
  3332. }),
  3333. globals.TagBrush);
  3334. smalltalk.addMethod(
  3335. smalltalk.method({
  3336. selector: "valign:",
  3337. protocol: 'attributes',
  3338. fn: function (aString){
  3339. var self=this;
  3340. return smalltalk.withContext(function($ctx1) {
  3341. self._at_put_("valign",aString);
  3342. return self}, function($ctx1) {$ctx1.fill(self,"valign:",{aString:aString},globals.TagBrush)})},
  3343. args: ["aString"],
  3344. source: "valign: aString\x0a\x09self at: 'valign' put: aString",
  3345. messageSends: ["at:put:"],
  3346. referencedClasses: []
  3347. }),
  3348. globals.TagBrush);
  3349. smalltalk.addMethod(
  3350. smalltalk.method({
  3351. selector: "value:",
  3352. protocol: 'attributes',
  3353. fn: function (aString){
  3354. var self=this;
  3355. return smalltalk.withContext(function($ctx1) {
  3356. self._at_put_("value",aString);
  3357. return self}, function($ctx1) {$ctx1.fill(self,"value:",{aString:aString},globals.TagBrush)})},
  3358. args: ["aString"],
  3359. source: "value: aString\x0a\x09self at: 'value' put: aString",
  3360. messageSends: ["at:put:"],
  3361. referencedClasses: []
  3362. }),
  3363. globals.TagBrush);
  3364. smalltalk.addMethod(
  3365. smalltalk.method({
  3366. selector: "width:",
  3367. protocol: 'attributes',
  3368. fn: function (aString){
  3369. var self=this;
  3370. return smalltalk.withContext(function($ctx1) {
  3371. self._at_put_("width",aString);
  3372. return self}, function($ctx1) {$ctx1.fill(self,"width:",{aString:aString},globals.TagBrush)})},
  3373. args: ["aString"],
  3374. source: "width: aString\x0a\x09self at: 'width' put: aString",
  3375. messageSends: ["at:put:"],
  3376. referencedClasses: []
  3377. }),
  3378. globals.TagBrush);
  3379. smalltalk.addMethod(
  3380. smalltalk.method({
  3381. selector: "with:",
  3382. protocol: 'adding',
  3383. fn: function (anObject){
  3384. var self=this;
  3385. return smalltalk.withContext(function($ctx1) {
  3386. self._append_(anObject);
  3387. return self}, function($ctx1) {$ctx1.fill(self,"with:",{anObject:anObject},globals.TagBrush)})},
  3388. args: ["anObject"],
  3389. source: "with: anObject\x0a\x09self append: anObject",
  3390. messageSends: ["append:"],
  3391. referencedClasses: []
  3392. }),
  3393. globals.TagBrush);
  3394. smalltalk.addMethod(
  3395. smalltalk.method({
  3396. selector: "fromJQuery:canvas:",
  3397. protocol: 'instance creation',
  3398. fn: function (aJQuery,aCanvas){
  3399. var self=this;
  3400. return smalltalk.withContext(function($ctx1) {
  3401. var $2,$3,$1;
  3402. $2=self._new();
  3403. _st($2)._initializeFromJQuery_canvas_(aJQuery,aCanvas);
  3404. $3=_st($2)._yourself();
  3405. $1=$3;
  3406. return $1;
  3407. }, function($ctx1) {$ctx1.fill(self,"fromJQuery:canvas:",{aJQuery:aJQuery,aCanvas:aCanvas},globals.TagBrush.klass)})},
  3408. args: ["aJQuery", "aCanvas"],
  3409. source: "fromJQuery: aJQuery canvas: aCanvas\x0a\x09^ self new\x0a\x09\x09initializeFromJQuery: aJQuery canvas: aCanvas;\x0a\x09\x09yourself",
  3410. messageSends: ["initializeFromJQuery:canvas:", "new", "yourself"],
  3411. referencedClasses: []
  3412. }),
  3413. globals.TagBrush.klass);
  3414. smalltalk.addMethod(
  3415. smalltalk.method({
  3416. selector: "fromString:canvas:",
  3417. protocol: 'instance creation',
  3418. fn: function (aString,aCanvas){
  3419. var self=this;
  3420. return smalltalk.withContext(function($ctx1) {
  3421. var $2,$3,$1;
  3422. $2=self._new();
  3423. _st($2)._initializeFromString_canvas_(aString,aCanvas);
  3424. $3=_st($2)._yourself();
  3425. $1=$3;
  3426. return $1;
  3427. }, function($ctx1) {$ctx1.fill(self,"fromString:canvas:",{aString:aString,aCanvas:aCanvas},globals.TagBrush.klass)})},
  3428. args: ["aString", "aCanvas"],
  3429. source: "fromString: aString canvas: aCanvas\x0a\x09^ self new\x0a\x09initializeFromString: aString canvas: aCanvas;\x0a\x09yourself",
  3430. messageSends: ["initializeFromString:canvas:", "new", "yourself"],
  3431. referencedClasses: []
  3432. }),
  3433. globals.TagBrush.klass);
  3434. smalltalk.addClass('Widget', globals.InterfacingObject, [], 'Canvas');
  3435. globals.Widget.comment="I am a presenter building HTML. Subclasses are typically reusable components.\x0a\x0a## API\x0a\x0aUse `#renderContentOn:` to build HTML. (See `HTMLCanvas` and `TagBrush` classes for more about building HTML).\x0a\x0aTo add a widget to the page, the convenience method `#appendToJQuery:` is very useful.\x0a\x0aExemple: \x0a\x0a Counter new appendToJQuery: 'body' asJQuery";
  3436. smalltalk.addMethod(
  3437. smalltalk.method({
  3438. selector: "appendToBrush:",
  3439. protocol: 'adding',
  3440. fn: function (aTagBrush){
  3441. var self=this;
  3442. return smalltalk.withContext(function($ctx1) {
  3443. self._appendToJQuery_(_st(aTagBrush)._asJQuery());
  3444. return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},globals.Widget)})},
  3445. args: ["aTagBrush"],
  3446. source: "appendToBrush: aTagBrush\x0a\x09self appendToJQuery: aTagBrush asJQuery",
  3447. messageSends: ["appendToJQuery:", "asJQuery"],
  3448. referencedClasses: []
  3449. }),
  3450. globals.Widget);
  3451. smalltalk.addMethod(
  3452. smalltalk.method({
  3453. selector: "appendToJQuery:",
  3454. protocol: 'adding',
  3455. fn: function (aJQuery){
  3456. var self=this;
  3457. function $HTMLCanvas(){return globals.HTMLCanvas||(typeof HTMLCanvas=="undefined"?nil:HTMLCanvas)}
  3458. return smalltalk.withContext(function($ctx1) {
  3459. self._renderOn_(_st($HTMLCanvas())._onJQuery_(aJQuery));
  3460. return self}, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery},globals.Widget)})},
  3461. args: ["aJQuery"],
  3462. source: "appendToJQuery: aJQuery\x0a\x09self renderOn: (HTMLCanvas onJQuery: aJQuery)",
  3463. messageSends: ["renderOn:", "onJQuery:"],
  3464. referencedClasses: ["HTMLCanvas"]
  3465. }),
  3466. globals.Widget);
  3467. smalltalk.addMethod(
  3468. smalltalk.method({
  3469. selector: "renderOn:",
  3470. protocol: 'rendering',
  3471. fn: function (html){
  3472. var self=this;
  3473. return self},
  3474. args: ["html"],
  3475. source: "renderOn: html\x0a\x09self",
  3476. messageSends: [],
  3477. referencedClasses: []
  3478. }),
  3479. globals.Widget);
  3480. smalltalk.addMethod(
  3481. smalltalk.method({
  3482. selector: "heliosClass",
  3483. protocol: 'helios',
  3484. fn: function (){
  3485. var self=this;
  3486. return "widget";
  3487. },
  3488. args: [],
  3489. source: "heliosClass\x0a\x09^ 'widget'",
  3490. messageSends: [],
  3491. referencedClasses: []
  3492. }),
  3493. globals.Widget.klass);
  3494. smalltalk.addMethod(
  3495. smalltalk.method({
  3496. selector: "appendToBrush:",
  3497. protocol: '*Canvas',
  3498. fn: function (aTagBrush){
  3499. var self=this;
  3500. return smalltalk.withContext(function($ctx1) {
  3501. _st(aTagBrush)._append_(self._asString());
  3502. return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},globals.Object)})},
  3503. args: ["aTagBrush"],
  3504. source: "appendToBrush: aTagBrush\x0a\x09aTagBrush append: self asString",
  3505. messageSends: ["append:", "asString"],
  3506. referencedClasses: []
  3507. }),
  3508. globals.Object);
  3509. smalltalk.addMethod(
  3510. smalltalk.method({
  3511. selector: "appendToJQuery:",
  3512. protocol: '*Canvas',
  3513. fn: function (aJQuery){
  3514. var self=this;
  3515. return smalltalk.withContext(function($ctx1) {
  3516. _st(aJQuery)._append_(self._asString());
  3517. return self}, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery},globals.Object)})},
  3518. args: ["aJQuery"],
  3519. source: "appendToJQuery: aJQuery\x0a\x09aJQuery append: self asString",
  3520. messageSends: ["append:", "asString"],
  3521. referencedClasses: []
  3522. }),
  3523. globals.Object);
  3524. smalltalk.addMethod(
  3525. smalltalk.method({
  3526. selector: "appendToBrush:",
  3527. protocol: '*Canvas',
  3528. fn: function (aTagBrush){
  3529. var self=this;
  3530. return smalltalk.withContext(function($ctx1) {
  3531. _st(aTagBrush)._appendBlock_(self);
  3532. return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},globals.BlockClosure)})},
  3533. args: ["aTagBrush"],
  3534. source: "appendToBrush: aTagBrush\x0a\x09aTagBrush appendBlock: self",
  3535. messageSends: ["appendBlock:"],
  3536. referencedClasses: []
  3537. }),
  3538. globals.BlockClosure);
  3539. smalltalk.addMethod(
  3540. smalltalk.method({
  3541. selector: "appendToJQuery:",
  3542. protocol: '*Canvas',
  3543. fn: function (aJQuery){
  3544. var self=this;
  3545. function $HTMLCanvas(){return globals.HTMLCanvas||(typeof HTMLCanvas=="undefined"?nil:HTMLCanvas)}
  3546. return smalltalk.withContext(function($ctx1) {
  3547. self._value_(_st($HTMLCanvas())._onJQuery_(aJQuery));
  3548. return self}, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery},globals.BlockClosure)})},
  3549. args: ["aJQuery"],
  3550. source: "appendToJQuery: aJQuery\x0a\x09self value: (HTMLCanvas onJQuery: aJQuery)",
  3551. messageSends: ["value:", "onJQuery:"],
  3552. referencedClasses: ["HTMLCanvas"]
  3553. }),
  3554. globals.BlockClosure);
  3555. smalltalk.addMethod(
  3556. smalltalk.method({
  3557. selector: "asSnippet",
  3558. protocol: '*Canvas',
  3559. fn: function (){
  3560. var self=this;
  3561. function $HTMLSnippet(){return globals.HTMLSnippet||(typeof HTMLSnippet=="undefined"?nil:HTMLSnippet)}
  3562. return smalltalk.withContext(function($ctx1) {
  3563. var $1;
  3564. $1=_st(_st($HTMLSnippet())._current())._snippetAt_(self._asString());
  3565. return $1;
  3566. }, function($ctx1) {$ctx1.fill(self,"asSnippet",{},globals.CharacterArray)})},
  3567. args: [],
  3568. source: "asSnippet\x0a\x09^ HTMLSnippet current snippetAt: self asString",
  3569. messageSends: ["snippetAt:", "current", "asString"],
  3570. referencedClasses: ["HTMLSnippet"]
  3571. }),
  3572. globals.CharacterArray);
  3573. smalltalk.addMethod(
  3574. smalltalk.method({
  3575. selector: "appendToBrush:",
  3576. protocol: '*Canvas',
  3577. fn: function (aTagBrush){
  3578. var self=this;
  3579. return smalltalk.withContext(function($ctx1) {
  3580. _st(aTagBrush)._appendString_(self);
  3581. return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},globals.String)})},
  3582. args: ["aTagBrush"],
  3583. source: "appendToBrush: aTagBrush\x0a\x09aTagBrush appendString: self",
  3584. messageSends: ["appendString:"],
  3585. referencedClasses: []
  3586. }),
  3587. globals.String);
  3588. smalltalk.addMethod(
  3589. smalltalk.method({
  3590. selector: "appendToJQuery:",
  3591. protocol: '*Canvas',
  3592. fn: function (aJQuery){
  3593. var self=this;
  3594. return smalltalk.withContext(function($ctx1) {
  3595. _st(aJQuery)._append_(self);
  3596. return self}, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery},globals.String)})},
  3597. args: ["aJQuery"],
  3598. source: "appendToJQuery: aJQuery\x0a\x09aJQuery append: self",
  3599. messageSends: ["append:"],
  3600. referencedClasses: []
  3601. }),
  3602. globals.String);
  3603. smalltalk.addMethod(
  3604. smalltalk.method({
  3605. selector: "asJQuery",
  3606. protocol: '*Canvas',
  3607. fn: function (){
  3608. var self=this;
  3609. return jQuery(String(self));
  3610. return self},
  3611. args: [],
  3612. source: "asJQuery\x0a\x09<return jQuery(String(self))>",
  3613. messageSends: [],
  3614. referencedClasses: []
  3615. }),
  3616. globals.String);
  3617. smalltalk.addMethod(
  3618. smalltalk.method({
  3619. selector: "asJQuery",
  3620. protocol: '*Canvas',
  3621. fn: function (){
  3622. var self=this;
  3623. return jQuery(self['@jsObject']);
  3624. return self},
  3625. args: [],
  3626. source: "asJQuery\x0a\x09<return jQuery(self['@jsObject'])>",
  3627. messageSends: [],
  3628. referencedClasses: []
  3629. }),
  3630. globals.JSObjectProxy);
  3631. });