2
0

Canvas.js 107 KB

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