Web.js 161 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667
  1. define("amber_core/Web", ["amber/boot", "amber_core/Kernel-Objects", "amber_core/Kernel-Infrastructure", "amber_core/Kernel-Methods", "amber_core/Kernel-Collections"], function($boot){
  2. var $vm=$boot.vm,nil=$boot.nil,$recv=$boot.asReceiver,$globals=$boot.globals;
  3. var smalltalk=$vm,_st=$recv,globals=$globals;
  4. smalltalk.addPackage('Web');
  5. smalltalk.packages["Web"].transport = {"type":"amd","amdNamespace":"amber_core"};
  6. smalltalk.addClass('BrowserInterface', globals.Object, [], 'Web');
  7. //>>excludeStart("ide", pragmas.excludeIdeData);
  8. globals.BrowserInterface.comment="I am platform interface class that tries to use window and jQuery; that is, one for browser environment.\x0a\x0a## API\x0a\x0a self isAvailable. \x22true if window and jQuery exist\x22.\x0a\x0a self alert: 'Hey, there is a problem'.\x0a self confirm: 'Affirmative?'.\x0a self prompt: 'Your name:'.\x0a\x0a self ajax: #{\x0a 'url' -> '/patch.js'. 'type' -> 'GET'. dataType->'script'\x0a }.";
  9. //>>excludeEnd("ide");
  10. smalltalk.addMethod(
  11. smalltalk.method({
  12. selector: "ajax:",
  13. protocol: 'actions',
  14. fn: function (anObject){
  15. var self=this;
  16. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  17. return smalltalk.withContext(function($ctx1) {
  18. //>>excludeEnd("ctx");
  19. var $1;
  20. $1=_st(jQuery)._ajax_(anObject);
  21. return $1;
  22. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  23. }, function($ctx1) {$ctx1.fill(self,"ajax:",{anObject:anObject},globals.BrowserInterface)});
  24. //>>excludeEnd("ctx");
  25. },
  26. //>>excludeStart("ide", pragmas.excludeIdeData);
  27. args: ["anObject"],
  28. source: "ajax: anObject\x0a\x09^ jQuery ajax: anObject",
  29. referencedClasses: [],
  30. //>>excludeEnd("ide");
  31. messageSends: ["ajax:"]
  32. }),
  33. globals.BrowserInterface);
  34. smalltalk.addMethod(
  35. smalltalk.method({
  36. selector: "alert:",
  37. protocol: 'actions',
  38. fn: function (aString){
  39. var self=this;
  40. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  41. return smalltalk.withContext(function($ctx1) {
  42. //>>excludeEnd("ctx");
  43. var $1;
  44. $1=_st(window)._alert_(aString);
  45. return $1;
  46. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  47. }, function($ctx1) {$ctx1.fill(self,"alert:",{aString:aString},globals.BrowserInterface)});
  48. //>>excludeEnd("ctx");
  49. },
  50. //>>excludeStart("ide", pragmas.excludeIdeData);
  51. args: ["aString"],
  52. source: "alert: aString\x0a\x09^ window alert: aString",
  53. referencedClasses: [],
  54. //>>excludeEnd("ide");
  55. messageSends: ["alert:"]
  56. }),
  57. globals.BrowserInterface);
  58. smalltalk.addMethod(
  59. smalltalk.method({
  60. selector: "confirm:",
  61. protocol: 'actions',
  62. fn: function (aString){
  63. var self=this;
  64. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  65. return smalltalk.withContext(function($ctx1) {
  66. //>>excludeEnd("ctx");
  67. var $1;
  68. $1=_st(window)._confirm_(aString);
  69. return $1;
  70. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  71. }, function($ctx1) {$ctx1.fill(self,"confirm:",{aString:aString},globals.BrowserInterface)});
  72. //>>excludeEnd("ctx");
  73. },
  74. //>>excludeStart("ide", pragmas.excludeIdeData);
  75. args: ["aString"],
  76. source: "confirm: aString\x0a\x09^ window confirm: aString",
  77. referencedClasses: [],
  78. //>>excludeEnd("ide");
  79. messageSends: ["confirm:"]
  80. }),
  81. globals.BrowserInterface);
  82. smalltalk.addMethod(
  83. smalltalk.method({
  84. selector: "isAvailable",
  85. protocol: 'testing',
  86. fn: function (){
  87. var self=this;
  88. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  89. return smalltalk.withContext(function($ctx1) {
  90. //>>excludeEnd("ctx");
  91. return typeof window !== "undefined" && typeof jQuery !== "undefined";
  92. return self;
  93. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  94. }, function($ctx1) {$ctx1.fill(self,"isAvailable",{},globals.BrowserInterface)});
  95. //>>excludeEnd("ctx");
  96. },
  97. //>>excludeStart("ide", pragmas.excludeIdeData);
  98. args: [],
  99. source: "isAvailable\x0a<return typeof window !== \x22undefined\x22 && typeof jQuery !== \x22undefined\x22>",
  100. referencedClasses: [],
  101. //>>excludeEnd("ide");
  102. messageSends: []
  103. }),
  104. globals.BrowserInterface);
  105. smalltalk.addMethod(
  106. smalltalk.method({
  107. selector: "prompt:",
  108. protocol: 'actions',
  109. fn: function (aString){
  110. var self=this;
  111. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  112. return smalltalk.withContext(function($ctx1) {
  113. //>>excludeEnd("ctx");
  114. var $1;
  115. $1=_st(window)._prompt_(aString);
  116. return $1;
  117. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  118. }, function($ctx1) {$ctx1.fill(self,"prompt:",{aString:aString},globals.BrowserInterface)});
  119. //>>excludeEnd("ctx");
  120. },
  121. //>>excludeStart("ide", pragmas.excludeIdeData);
  122. args: ["aString"],
  123. source: "prompt: aString\x0a\x09^ window prompt: aString",
  124. referencedClasses: [],
  125. //>>excludeEnd("ide");
  126. messageSends: ["prompt:"]
  127. }),
  128. globals.BrowserInterface);
  129. smalltalk.addMethod(
  130. smalltalk.method({
  131. selector: "prompt:default:",
  132. protocol: 'actions',
  133. fn: function (aString,defaultString){
  134. var self=this;
  135. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  136. return smalltalk.withContext(function($ctx1) {
  137. //>>excludeEnd("ctx");
  138. var $1;
  139. $1=_st(window)._prompt_default_(aString,defaultString);
  140. return $1;
  141. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  142. }, function($ctx1) {$ctx1.fill(self,"prompt:default:",{aString:aString,defaultString:defaultString},globals.BrowserInterface)});
  143. //>>excludeEnd("ctx");
  144. },
  145. //>>excludeStart("ide", pragmas.excludeIdeData);
  146. args: ["aString", "defaultString"],
  147. source: "prompt: aString default: defaultString\x0a\x09^ window prompt: aString default: defaultString",
  148. referencedClasses: [],
  149. //>>excludeEnd("ide");
  150. messageSends: ["prompt:default:"]
  151. }),
  152. globals.BrowserInterface);
  153. smalltalk.addClass('HTMLCanvas', globals.Object, ['root'], 'Web');
  154. //>>excludeStart("ide", pragmas.excludeIdeData);
  155. globals.HTMLCanvas.comment="I am a canvas for building HTML.\x0a\x0aI provide the `#tag:` method to create a `TagBrush` (wrapping a DOM element) and convenience methods in the `tags` protocol.\x0a\x0a## API\x0a\x0aMy instances are used as the argument of the `#renderOn:` method of `Widget` objects.\x0a\x0aThe `#with:` method is used to compose HTML, nesting tags. `#with:` can take a `TagBrush`, a `String`, a `BlockClosure` or a `Widget` as argument.\x0a\x0a## Usage example:\x0a\x0a aCanvas a \x0a with: [ aCanvas span with: 'click me' ];\x0a onClick: [ window alert: 'clicked!' ]";
  156. //>>excludeEnd("ide");
  157. smalltalk.addMethod(
  158. smalltalk.method({
  159. selector: "a",
  160. protocol: 'tags',
  161. fn: function (){
  162. var self=this;
  163. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  164. return smalltalk.withContext(function($ctx1) {
  165. //>>excludeEnd("ctx");
  166. var $1;
  167. $1=self._tag_("a");
  168. return $1;
  169. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  170. }, function($ctx1) {$ctx1.fill(self,"a",{},globals.HTMLCanvas)});
  171. //>>excludeEnd("ctx");
  172. },
  173. //>>excludeStart("ide", pragmas.excludeIdeData);
  174. args: [],
  175. source: "a\x0a\x09^ self tag: 'a'",
  176. referencedClasses: [],
  177. //>>excludeEnd("ide");
  178. messageSends: ["tag:"]
  179. }),
  180. globals.HTMLCanvas);
  181. smalltalk.addMethod(
  182. smalltalk.method({
  183. selector: "abbr",
  184. protocol: 'tags',
  185. fn: function (){
  186. var self=this;
  187. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  188. return smalltalk.withContext(function($ctx1) {
  189. //>>excludeEnd("ctx");
  190. var $1;
  191. $1=self._tag_("abbr");
  192. return $1;
  193. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  194. }, function($ctx1) {$ctx1.fill(self,"abbr",{},globals.HTMLCanvas)});
  195. //>>excludeEnd("ctx");
  196. },
  197. //>>excludeStart("ide", pragmas.excludeIdeData);
  198. args: [],
  199. source: "abbr\x0a\x09^ self tag: 'abbr'",
  200. referencedClasses: [],
  201. //>>excludeEnd("ide");
  202. messageSends: ["tag:"]
  203. }),
  204. globals.HTMLCanvas);
  205. smalltalk.addMethod(
  206. smalltalk.method({
  207. selector: "address",
  208. protocol: 'tags',
  209. fn: function (){
  210. var self=this;
  211. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  212. return smalltalk.withContext(function($ctx1) {
  213. //>>excludeEnd("ctx");
  214. var $1;
  215. $1=self._tag_("address");
  216. return $1;
  217. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  218. }, function($ctx1) {$ctx1.fill(self,"address",{},globals.HTMLCanvas)});
  219. //>>excludeEnd("ctx");
  220. },
  221. //>>excludeStart("ide", pragmas.excludeIdeData);
  222. args: [],
  223. source: "address\x0a\x09^ self tag: 'address'",
  224. referencedClasses: [],
  225. //>>excludeEnd("ide");
  226. messageSends: ["tag:"]
  227. }),
  228. globals.HTMLCanvas);
  229. smalltalk.addMethod(
  230. smalltalk.method({
  231. selector: "area",
  232. protocol: 'tags',
  233. fn: function (){
  234. var self=this;
  235. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  236. return smalltalk.withContext(function($ctx1) {
  237. //>>excludeEnd("ctx");
  238. var $1;
  239. $1=self._tag_("area");
  240. return $1;
  241. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  242. }, function($ctx1) {$ctx1.fill(self,"area",{},globals.HTMLCanvas)});
  243. //>>excludeEnd("ctx");
  244. },
  245. //>>excludeStart("ide", pragmas.excludeIdeData);
  246. args: [],
  247. source: "area\x0a\x09^ self tag: 'area'",
  248. referencedClasses: [],
  249. //>>excludeEnd("ide");
  250. messageSends: ["tag:"]
  251. }),
  252. globals.HTMLCanvas);
  253. smalltalk.addMethod(
  254. smalltalk.method({
  255. selector: "article",
  256. protocol: 'tags',
  257. fn: function (){
  258. var self=this;
  259. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  260. return smalltalk.withContext(function($ctx1) {
  261. //>>excludeEnd("ctx");
  262. var $1;
  263. $1=self._tag_("article");
  264. return $1;
  265. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  266. }, function($ctx1) {$ctx1.fill(self,"article",{},globals.HTMLCanvas)});
  267. //>>excludeEnd("ctx");
  268. },
  269. //>>excludeStart("ide", pragmas.excludeIdeData);
  270. args: [],
  271. source: "article\x0a\x09^ self tag: 'article'",
  272. referencedClasses: [],
  273. //>>excludeEnd("ide");
  274. messageSends: ["tag:"]
  275. }),
  276. globals.HTMLCanvas);
  277. smalltalk.addMethod(
  278. smalltalk.method({
  279. selector: "aside",
  280. protocol: 'tags',
  281. fn: function (){
  282. var self=this;
  283. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  284. return smalltalk.withContext(function($ctx1) {
  285. //>>excludeEnd("ctx");
  286. var $1;
  287. $1=self._tag_("aside");
  288. return $1;
  289. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  290. }, function($ctx1) {$ctx1.fill(self,"aside",{},globals.HTMLCanvas)});
  291. //>>excludeEnd("ctx");
  292. },
  293. //>>excludeStart("ide", pragmas.excludeIdeData);
  294. args: [],
  295. source: "aside\x0a\x09^ self tag: 'aside'",
  296. referencedClasses: [],
  297. //>>excludeEnd("ide");
  298. messageSends: ["tag:"]
  299. }),
  300. globals.HTMLCanvas);
  301. smalltalk.addMethod(
  302. smalltalk.method({
  303. selector: "audio",
  304. protocol: 'tags',
  305. fn: function (){
  306. var self=this;
  307. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  308. return smalltalk.withContext(function($ctx1) {
  309. //>>excludeEnd("ctx");
  310. var $1;
  311. $1=self._tag_("audio");
  312. return $1;
  313. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  314. }, function($ctx1) {$ctx1.fill(self,"audio",{},globals.HTMLCanvas)});
  315. //>>excludeEnd("ctx");
  316. },
  317. //>>excludeStart("ide", pragmas.excludeIdeData);
  318. args: [],
  319. source: "audio\x0a\x09^ self tag: 'audio'",
  320. referencedClasses: [],
  321. //>>excludeEnd("ide");
  322. messageSends: ["tag:"]
  323. }),
  324. globals.HTMLCanvas);
  325. smalltalk.addMethod(
  326. smalltalk.method({
  327. selector: "base",
  328. protocol: 'tags',
  329. fn: function (){
  330. var self=this;
  331. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  332. return smalltalk.withContext(function($ctx1) {
  333. //>>excludeEnd("ctx");
  334. var $1;
  335. $1=self._tag_("base");
  336. return $1;
  337. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  338. }, function($ctx1) {$ctx1.fill(self,"base",{},globals.HTMLCanvas)});
  339. //>>excludeEnd("ctx");
  340. },
  341. //>>excludeStart("ide", pragmas.excludeIdeData);
  342. args: [],
  343. source: "base\x0a\x09^ self tag: 'base'",
  344. referencedClasses: [],
  345. //>>excludeEnd("ide");
  346. messageSends: ["tag:"]
  347. }),
  348. globals.HTMLCanvas);
  349. smalltalk.addMethod(
  350. smalltalk.method({
  351. selector: "blockquote",
  352. protocol: 'tags',
  353. fn: function (){
  354. var self=this;
  355. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  356. return smalltalk.withContext(function($ctx1) {
  357. //>>excludeEnd("ctx");
  358. var $1;
  359. $1=self._tag_("blockquote");
  360. return $1;
  361. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  362. }, function($ctx1) {$ctx1.fill(self,"blockquote",{},globals.HTMLCanvas)});
  363. //>>excludeEnd("ctx");
  364. },
  365. //>>excludeStart("ide", pragmas.excludeIdeData);
  366. args: [],
  367. source: "blockquote\x0a\x09^ self tag: 'blockquote'",
  368. referencedClasses: [],
  369. //>>excludeEnd("ide");
  370. messageSends: ["tag:"]
  371. }),
  372. globals.HTMLCanvas);
  373. smalltalk.addMethod(
  374. smalltalk.method({
  375. selector: "body",
  376. protocol: 'tags',
  377. fn: function (){
  378. var self=this;
  379. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  380. return smalltalk.withContext(function($ctx1) {
  381. //>>excludeEnd("ctx");
  382. var $1;
  383. $1=self._tag_("body");
  384. return $1;
  385. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  386. }, function($ctx1) {$ctx1.fill(self,"body",{},globals.HTMLCanvas)});
  387. //>>excludeEnd("ctx");
  388. },
  389. //>>excludeStart("ide", pragmas.excludeIdeData);
  390. args: [],
  391. source: "body\x0a\x09^ self tag: 'body'",
  392. referencedClasses: [],
  393. //>>excludeEnd("ide");
  394. messageSends: ["tag:"]
  395. }),
  396. globals.HTMLCanvas);
  397. smalltalk.addMethod(
  398. smalltalk.method({
  399. selector: "br",
  400. protocol: 'tags',
  401. fn: function (){
  402. var self=this;
  403. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  404. return smalltalk.withContext(function($ctx1) {
  405. //>>excludeEnd("ctx");
  406. var $1;
  407. $1=self._tag_("br");
  408. return $1;
  409. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  410. }, function($ctx1) {$ctx1.fill(self,"br",{},globals.HTMLCanvas)});
  411. //>>excludeEnd("ctx");
  412. },
  413. //>>excludeStart("ide", pragmas.excludeIdeData);
  414. args: [],
  415. source: "br\x0a\x09^ self tag: 'br'",
  416. referencedClasses: [],
  417. //>>excludeEnd("ide");
  418. messageSends: ["tag:"]
  419. }),
  420. globals.HTMLCanvas);
  421. smalltalk.addMethod(
  422. smalltalk.method({
  423. selector: "button",
  424. protocol: 'tags',
  425. fn: function (){
  426. var self=this;
  427. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  428. return smalltalk.withContext(function($ctx1) {
  429. //>>excludeEnd("ctx");
  430. var $1;
  431. $1=self._tag_("button");
  432. return $1;
  433. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  434. }, function($ctx1) {$ctx1.fill(self,"button",{},globals.HTMLCanvas)});
  435. //>>excludeEnd("ctx");
  436. },
  437. //>>excludeStart("ide", pragmas.excludeIdeData);
  438. args: [],
  439. source: "button\x0a\x09^ self tag: 'button'",
  440. referencedClasses: [],
  441. //>>excludeEnd("ide");
  442. messageSends: ["tag:"]
  443. }),
  444. globals.HTMLCanvas);
  445. smalltalk.addMethod(
  446. smalltalk.method({
  447. selector: "canvas",
  448. protocol: 'tags',
  449. fn: function (){
  450. var self=this;
  451. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  452. return smalltalk.withContext(function($ctx1) {
  453. //>>excludeEnd("ctx");
  454. var $1;
  455. $1=self._tag_("canvas");
  456. return $1;
  457. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  458. }, function($ctx1) {$ctx1.fill(self,"canvas",{},globals.HTMLCanvas)});
  459. //>>excludeEnd("ctx");
  460. },
  461. //>>excludeStart("ide", pragmas.excludeIdeData);
  462. args: [],
  463. source: "canvas\x0a\x09^ self tag: 'canvas'",
  464. referencedClasses: [],
  465. //>>excludeEnd("ide");
  466. messageSends: ["tag:"]
  467. }),
  468. globals.HTMLCanvas);
  469. smalltalk.addMethod(
  470. smalltalk.method({
  471. selector: "caption",
  472. protocol: 'tags',
  473. fn: function (){
  474. var self=this;
  475. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  476. return smalltalk.withContext(function($ctx1) {
  477. //>>excludeEnd("ctx");
  478. var $1;
  479. $1=self._tag_("caption");
  480. return $1;
  481. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  482. }, function($ctx1) {$ctx1.fill(self,"caption",{},globals.HTMLCanvas)});
  483. //>>excludeEnd("ctx");
  484. },
  485. //>>excludeStart("ide", pragmas.excludeIdeData);
  486. args: [],
  487. source: "caption\x0a\x09^ self tag: 'caption'",
  488. referencedClasses: [],
  489. //>>excludeEnd("ide");
  490. messageSends: ["tag:"]
  491. }),
  492. globals.HTMLCanvas);
  493. smalltalk.addMethod(
  494. smalltalk.method({
  495. selector: "cite",
  496. protocol: 'tags',
  497. fn: function (){
  498. var self=this;
  499. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  500. return smalltalk.withContext(function($ctx1) {
  501. //>>excludeEnd("ctx");
  502. var $1;
  503. $1=self._tag_("cite");
  504. return $1;
  505. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  506. }, function($ctx1) {$ctx1.fill(self,"cite",{},globals.HTMLCanvas)});
  507. //>>excludeEnd("ctx");
  508. },
  509. //>>excludeStart("ide", pragmas.excludeIdeData);
  510. args: [],
  511. source: "cite\x0a\x09^ self tag: 'cite'",
  512. referencedClasses: [],
  513. //>>excludeEnd("ide");
  514. messageSends: ["tag:"]
  515. }),
  516. globals.HTMLCanvas);
  517. smalltalk.addMethod(
  518. smalltalk.method({
  519. selector: "code",
  520. protocol: 'tags',
  521. fn: function (){
  522. var self=this;
  523. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  524. return smalltalk.withContext(function($ctx1) {
  525. //>>excludeEnd("ctx");
  526. var $1;
  527. $1=self._tag_("code");
  528. return $1;
  529. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  530. }, function($ctx1) {$ctx1.fill(self,"code",{},globals.HTMLCanvas)});
  531. //>>excludeEnd("ctx");
  532. },
  533. //>>excludeStart("ide", pragmas.excludeIdeData);
  534. args: [],
  535. source: "code\x0a\x09^ self tag: 'code'",
  536. referencedClasses: [],
  537. //>>excludeEnd("ide");
  538. messageSends: ["tag:"]
  539. }),
  540. globals.HTMLCanvas);
  541. smalltalk.addMethod(
  542. smalltalk.method({
  543. selector: "col",
  544. protocol: 'tags',
  545. fn: function (){
  546. var self=this;
  547. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  548. return smalltalk.withContext(function($ctx1) {
  549. //>>excludeEnd("ctx");
  550. var $1;
  551. $1=self._tag_("col");
  552. return $1;
  553. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  554. }, function($ctx1) {$ctx1.fill(self,"col",{},globals.HTMLCanvas)});
  555. //>>excludeEnd("ctx");
  556. },
  557. //>>excludeStart("ide", pragmas.excludeIdeData);
  558. args: [],
  559. source: "col\x0a\x09^ self tag: 'col'",
  560. referencedClasses: [],
  561. //>>excludeEnd("ide");
  562. messageSends: ["tag:"]
  563. }),
  564. globals.HTMLCanvas);
  565. smalltalk.addMethod(
  566. smalltalk.method({
  567. selector: "colgroup",
  568. protocol: 'tags',
  569. fn: function (){
  570. var self=this;
  571. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  572. return smalltalk.withContext(function($ctx1) {
  573. //>>excludeEnd("ctx");
  574. var $1;
  575. $1=self._tag_("colgroup");
  576. return $1;
  577. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  578. }, function($ctx1) {$ctx1.fill(self,"colgroup",{},globals.HTMLCanvas)});
  579. //>>excludeEnd("ctx");
  580. },
  581. //>>excludeStart("ide", pragmas.excludeIdeData);
  582. args: [],
  583. source: "colgroup\x0a\x09^ self tag: 'colgroup'",
  584. referencedClasses: [],
  585. //>>excludeEnd("ide");
  586. messageSends: ["tag:"]
  587. }),
  588. globals.HTMLCanvas);
  589. smalltalk.addMethod(
  590. smalltalk.method({
  591. selector: "command",
  592. protocol: 'tags',
  593. fn: function (){
  594. var self=this;
  595. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  596. return smalltalk.withContext(function($ctx1) {
  597. //>>excludeEnd("ctx");
  598. var $1;
  599. $1=self._tag_("command");
  600. return $1;
  601. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  602. }, function($ctx1) {$ctx1.fill(self,"command",{},globals.HTMLCanvas)});
  603. //>>excludeEnd("ctx");
  604. },
  605. //>>excludeStart("ide", pragmas.excludeIdeData);
  606. args: [],
  607. source: "command\x0a\x09^ self tag: 'command'",
  608. referencedClasses: [],
  609. //>>excludeEnd("ide");
  610. messageSends: ["tag:"]
  611. }),
  612. globals.HTMLCanvas);
  613. smalltalk.addMethod(
  614. smalltalk.method({
  615. selector: "datalist",
  616. protocol: 'tags',
  617. fn: function (){
  618. var self=this;
  619. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  620. return smalltalk.withContext(function($ctx1) {
  621. //>>excludeEnd("ctx");
  622. var $1;
  623. $1=self._tag_("datalist");
  624. return $1;
  625. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  626. }, function($ctx1) {$ctx1.fill(self,"datalist",{},globals.HTMLCanvas)});
  627. //>>excludeEnd("ctx");
  628. },
  629. //>>excludeStart("ide", pragmas.excludeIdeData);
  630. args: [],
  631. source: "datalist\x0a\x09^ self tag: 'datalist'",
  632. referencedClasses: [],
  633. //>>excludeEnd("ide");
  634. messageSends: ["tag:"]
  635. }),
  636. globals.HTMLCanvas);
  637. smalltalk.addMethod(
  638. smalltalk.method({
  639. selector: "dd",
  640. protocol: 'tags',
  641. fn: function (){
  642. var self=this;
  643. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  644. return smalltalk.withContext(function($ctx1) {
  645. //>>excludeEnd("ctx");
  646. var $1;
  647. $1=self._tag_("dd");
  648. return $1;
  649. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  650. }, function($ctx1) {$ctx1.fill(self,"dd",{},globals.HTMLCanvas)});
  651. //>>excludeEnd("ctx");
  652. },
  653. //>>excludeStart("ide", pragmas.excludeIdeData);
  654. args: [],
  655. source: "dd\x0a\x09^ self tag: 'dd'",
  656. referencedClasses: [],
  657. //>>excludeEnd("ide");
  658. messageSends: ["tag:"]
  659. }),
  660. globals.HTMLCanvas);
  661. smalltalk.addMethod(
  662. smalltalk.method({
  663. selector: "del",
  664. protocol: 'tags',
  665. fn: function (){
  666. var self=this;
  667. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  668. return smalltalk.withContext(function($ctx1) {
  669. //>>excludeEnd("ctx");
  670. var $1;
  671. $1=self._tag_("del");
  672. return $1;
  673. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  674. }, function($ctx1) {$ctx1.fill(self,"del",{},globals.HTMLCanvas)});
  675. //>>excludeEnd("ctx");
  676. },
  677. //>>excludeStart("ide", pragmas.excludeIdeData);
  678. args: [],
  679. source: "del\x0a\x09^ self tag: 'del'",
  680. referencedClasses: [],
  681. //>>excludeEnd("ide");
  682. messageSends: ["tag:"]
  683. }),
  684. globals.HTMLCanvas);
  685. smalltalk.addMethod(
  686. smalltalk.method({
  687. selector: "details",
  688. protocol: 'tags',
  689. fn: function (){
  690. var self=this;
  691. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  692. return smalltalk.withContext(function($ctx1) {
  693. //>>excludeEnd("ctx");
  694. var $1;
  695. $1=self._tag_("details");
  696. return $1;
  697. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  698. }, function($ctx1) {$ctx1.fill(self,"details",{},globals.HTMLCanvas)});
  699. //>>excludeEnd("ctx");
  700. },
  701. //>>excludeStart("ide", pragmas.excludeIdeData);
  702. args: [],
  703. source: "details\x0a\x09^ self tag: 'details'",
  704. referencedClasses: [],
  705. //>>excludeEnd("ide");
  706. messageSends: ["tag:"]
  707. }),
  708. globals.HTMLCanvas);
  709. smalltalk.addMethod(
  710. smalltalk.method({
  711. selector: "div",
  712. protocol: 'tags',
  713. fn: function (){
  714. var self=this;
  715. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  716. return smalltalk.withContext(function($ctx1) {
  717. //>>excludeEnd("ctx");
  718. var $1;
  719. $1=self._tag_("div");
  720. return $1;
  721. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  722. }, function($ctx1) {$ctx1.fill(self,"div",{},globals.HTMLCanvas)});
  723. //>>excludeEnd("ctx");
  724. },
  725. //>>excludeStart("ide", pragmas.excludeIdeData);
  726. args: [],
  727. source: "div\x0a\x09^ self tag: 'div'",
  728. referencedClasses: [],
  729. //>>excludeEnd("ide");
  730. messageSends: ["tag:"]
  731. }),
  732. globals.HTMLCanvas);
  733. smalltalk.addMethod(
  734. smalltalk.method({
  735. selector: "div:",
  736. protocol: 'tags',
  737. fn: function (aBlock){
  738. var self=this;
  739. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  740. return smalltalk.withContext(function($ctx1) {
  741. //>>excludeEnd("ctx");
  742. var $1;
  743. $1=_st(self._div())._with_(aBlock);
  744. return $1;
  745. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  746. }, function($ctx1) {$ctx1.fill(self,"div:",{aBlock:aBlock},globals.HTMLCanvas)});
  747. //>>excludeEnd("ctx");
  748. },
  749. //>>excludeStart("ide", pragmas.excludeIdeData);
  750. args: ["aBlock"],
  751. source: "div: aBlock\x0a\x09^ self div with: aBlock",
  752. referencedClasses: [],
  753. //>>excludeEnd("ide");
  754. messageSends: ["with:", "div"]
  755. }),
  756. globals.HTMLCanvas);
  757. smalltalk.addMethod(
  758. smalltalk.method({
  759. selector: "dl",
  760. protocol: 'tags',
  761. fn: function (){
  762. var self=this;
  763. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  764. return smalltalk.withContext(function($ctx1) {
  765. //>>excludeEnd("ctx");
  766. var $1;
  767. $1=self._tag_("dl");
  768. return $1;
  769. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  770. }, function($ctx1) {$ctx1.fill(self,"dl",{},globals.HTMLCanvas)});
  771. //>>excludeEnd("ctx");
  772. },
  773. //>>excludeStart("ide", pragmas.excludeIdeData);
  774. args: [],
  775. source: "dl\x0a\x09^ self tag: 'dl'",
  776. referencedClasses: [],
  777. //>>excludeEnd("ide");
  778. messageSends: ["tag:"]
  779. }),
  780. globals.HTMLCanvas);
  781. smalltalk.addMethod(
  782. smalltalk.method({
  783. selector: "dt",
  784. protocol: 'tags',
  785. fn: function (){
  786. var self=this;
  787. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  788. return smalltalk.withContext(function($ctx1) {
  789. //>>excludeEnd("ctx");
  790. var $1;
  791. $1=self._tag_("dt");
  792. return $1;
  793. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  794. }, function($ctx1) {$ctx1.fill(self,"dt",{},globals.HTMLCanvas)});
  795. //>>excludeEnd("ctx");
  796. },
  797. //>>excludeStart("ide", pragmas.excludeIdeData);
  798. args: [],
  799. source: "dt\x0a\x09^ self tag: 'dt'",
  800. referencedClasses: [],
  801. //>>excludeEnd("ide");
  802. messageSends: ["tag:"]
  803. }),
  804. globals.HTMLCanvas);
  805. smalltalk.addMethod(
  806. smalltalk.method({
  807. selector: "em",
  808. protocol: 'tags',
  809. fn: function (){
  810. var self=this;
  811. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  812. return smalltalk.withContext(function($ctx1) {
  813. //>>excludeEnd("ctx");
  814. var $1;
  815. $1=self._tag_("em");
  816. return $1;
  817. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  818. }, function($ctx1) {$ctx1.fill(self,"em",{},globals.HTMLCanvas)});
  819. //>>excludeEnd("ctx");
  820. },
  821. //>>excludeStart("ide", pragmas.excludeIdeData);
  822. args: [],
  823. source: "em\x0a\x09^ self tag: 'em'",
  824. referencedClasses: [],
  825. //>>excludeEnd("ide");
  826. messageSends: ["tag:"]
  827. }),
  828. globals.HTMLCanvas);
  829. smalltalk.addMethod(
  830. smalltalk.method({
  831. selector: "embed",
  832. protocol: 'tags',
  833. fn: function (){
  834. var self=this;
  835. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  836. return smalltalk.withContext(function($ctx1) {
  837. //>>excludeEnd("ctx");
  838. var $1;
  839. $1=self._tag_("embed");
  840. return $1;
  841. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  842. }, function($ctx1) {$ctx1.fill(self,"embed",{},globals.HTMLCanvas)});
  843. //>>excludeEnd("ctx");
  844. },
  845. //>>excludeStart("ide", pragmas.excludeIdeData);
  846. args: [],
  847. source: "embed\x0a\x09^ self tag: 'embed'",
  848. referencedClasses: [],
  849. //>>excludeEnd("ide");
  850. messageSends: ["tag:"]
  851. }),
  852. globals.HTMLCanvas);
  853. smalltalk.addMethod(
  854. smalltalk.method({
  855. selector: "entity:",
  856. protocol: 'adding',
  857. fn: function (aString){
  858. var self=this;
  859. var result;
  860. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  861. return smalltalk.withContext(function($ctx1) {
  862. //>>excludeEnd("ctx");
  863. var $2,$4,$3,$1,$5;
  864. $2="<span />"._asJQuery();
  865. $4="&".__comma(aString);
  866. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  867. $ctx1.sendIdx[","]=2;
  868. //>>excludeEnd("ctx");
  869. $3=_st($4).__comma(";");
  870. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  871. $ctx1.sendIdx[","]=1;
  872. //>>excludeEnd("ctx");
  873. $1=_st($2)._html_($3);
  874. result=_st($1)._text();
  875. $5=_st(_st(result)._size()).__eq((1));
  876. if(! smalltalk.assert($5)){
  877. self._error_("Not an HTML entity: ".__comma(aString));
  878. };
  879. self._with_(result);
  880. return self;
  881. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  882. }, function($ctx1) {$ctx1.fill(self,"entity:",{aString:aString,result:result},globals.HTMLCanvas)});
  883. //>>excludeEnd("ctx");
  884. },
  885. //>>excludeStart("ide", pragmas.excludeIdeData);
  886. args: ["aString"],
  887. 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",
  888. referencedClasses: [],
  889. //>>excludeEnd("ide");
  890. messageSends: ["text", "html:", "asJQuery", ",", "ifFalse:", "=", "size", "error:", "with:"]
  891. }),
  892. globals.HTMLCanvas);
  893. smalltalk.addMethod(
  894. smalltalk.method({
  895. selector: "fieldset",
  896. protocol: 'tags',
  897. fn: function (){
  898. var self=this;
  899. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  900. return smalltalk.withContext(function($ctx1) {
  901. //>>excludeEnd("ctx");
  902. var $1;
  903. $1=self._tag_("fieldset");
  904. return $1;
  905. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  906. }, function($ctx1) {$ctx1.fill(self,"fieldset",{},globals.HTMLCanvas)});
  907. //>>excludeEnd("ctx");
  908. },
  909. //>>excludeStart("ide", pragmas.excludeIdeData);
  910. args: [],
  911. source: "fieldset\x0a\x09^ self tag: 'fieldset'",
  912. referencedClasses: [],
  913. //>>excludeEnd("ide");
  914. messageSends: ["tag:"]
  915. }),
  916. globals.HTMLCanvas);
  917. smalltalk.addMethod(
  918. smalltalk.method({
  919. selector: "figcaption",
  920. protocol: 'tags',
  921. fn: function (){
  922. var self=this;
  923. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  924. return smalltalk.withContext(function($ctx1) {
  925. //>>excludeEnd("ctx");
  926. var $1;
  927. $1=self._tag_("figcaption");
  928. return $1;
  929. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  930. }, function($ctx1) {$ctx1.fill(self,"figcaption",{},globals.HTMLCanvas)});
  931. //>>excludeEnd("ctx");
  932. },
  933. //>>excludeStart("ide", pragmas.excludeIdeData);
  934. args: [],
  935. source: "figcaption\x0a\x09^ self tag: 'figcaption'",
  936. referencedClasses: [],
  937. //>>excludeEnd("ide");
  938. messageSends: ["tag:"]
  939. }),
  940. globals.HTMLCanvas);
  941. smalltalk.addMethod(
  942. smalltalk.method({
  943. selector: "figure",
  944. protocol: 'tags',
  945. fn: function (){
  946. var self=this;
  947. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  948. return smalltalk.withContext(function($ctx1) {
  949. //>>excludeEnd("ctx");
  950. var $1;
  951. $1=self._tag_("figure");
  952. return $1;
  953. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  954. }, function($ctx1) {$ctx1.fill(self,"figure",{},globals.HTMLCanvas)});
  955. //>>excludeEnd("ctx");
  956. },
  957. //>>excludeStart("ide", pragmas.excludeIdeData);
  958. args: [],
  959. source: "figure\x0a\x09^ self tag: 'figure'",
  960. referencedClasses: [],
  961. //>>excludeEnd("ide");
  962. messageSends: ["tag:"]
  963. }),
  964. globals.HTMLCanvas);
  965. smalltalk.addMethod(
  966. smalltalk.method({
  967. selector: "footer",
  968. protocol: 'tags',
  969. fn: function (){
  970. var self=this;
  971. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  972. return smalltalk.withContext(function($ctx1) {
  973. //>>excludeEnd("ctx");
  974. var $1;
  975. $1=self._tag_("footer");
  976. return $1;
  977. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  978. }, function($ctx1) {$ctx1.fill(self,"footer",{},globals.HTMLCanvas)});
  979. //>>excludeEnd("ctx");
  980. },
  981. //>>excludeStart("ide", pragmas.excludeIdeData);
  982. args: [],
  983. source: "footer\x0a\x09^ self tag: 'footer'",
  984. referencedClasses: [],
  985. //>>excludeEnd("ide");
  986. messageSends: ["tag:"]
  987. }),
  988. globals.HTMLCanvas);
  989. smalltalk.addMethod(
  990. smalltalk.method({
  991. selector: "form",
  992. protocol: 'tags',
  993. fn: function (){
  994. var self=this;
  995. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  996. return smalltalk.withContext(function($ctx1) {
  997. //>>excludeEnd("ctx");
  998. var $1;
  999. $1=self._tag_("form");
  1000. return $1;
  1001. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1002. }, function($ctx1) {$ctx1.fill(self,"form",{},globals.HTMLCanvas)});
  1003. //>>excludeEnd("ctx");
  1004. },
  1005. //>>excludeStart("ide", pragmas.excludeIdeData);
  1006. args: [],
  1007. source: "form\x0a\x09^ self tag: 'form'",
  1008. referencedClasses: [],
  1009. //>>excludeEnd("ide");
  1010. messageSends: ["tag:"]
  1011. }),
  1012. globals.HTMLCanvas);
  1013. smalltalk.addMethod(
  1014. smalltalk.method({
  1015. selector: "h1",
  1016. protocol: 'tags',
  1017. fn: function (){
  1018. var self=this;
  1019. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1020. return smalltalk.withContext(function($ctx1) {
  1021. //>>excludeEnd("ctx");
  1022. var $1;
  1023. $1=self._tag_("h1");
  1024. return $1;
  1025. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1026. }, function($ctx1) {$ctx1.fill(self,"h1",{},globals.HTMLCanvas)});
  1027. //>>excludeEnd("ctx");
  1028. },
  1029. //>>excludeStart("ide", pragmas.excludeIdeData);
  1030. args: [],
  1031. source: "h1\x0a\x09^ self tag: 'h1'",
  1032. referencedClasses: [],
  1033. //>>excludeEnd("ide");
  1034. messageSends: ["tag:"]
  1035. }),
  1036. globals.HTMLCanvas);
  1037. smalltalk.addMethod(
  1038. smalltalk.method({
  1039. selector: "h1:",
  1040. protocol: 'tags',
  1041. fn: function (anObject){
  1042. var self=this;
  1043. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1044. return smalltalk.withContext(function($ctx1) {
  1045. //>>excludeEnd("ctx");
  1046. var $1;
  1047. $1=_st(self._h1())._with_(anObject);
  1048. return $1;
  1049. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1050. }, function($ctx1) {$ctx1.fill(self,"h1:",{anObject:anObject},globals.HTMLCanvas)});
  1051. //>>excludeEnd("ctx");
  1052. },
  1053. //>>excludeStart("ide", pragmas.excludeIdeData);
  1054. args: ["anObject"],
  1055. source: "h1: anObject\x0a\x09^ self h1 with: anObject",
  1056. referencedClasses: [],
  1057. //>>excludeEnd("ide");
  1058. messageSends: ["with:", "h1"]
  1059. }),
  1060. globals.HTMLCanvas);
  1061. smalltalk.addMethod(
  1062. smalltalk.method({
  1063. selector: "h2",
  1064. protocol: 'tags',
  1065. fn: function (){
  1066. var self=this;
  1067. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1068. return smalltalk.withContext(function($ctx1) {
  1069. //>>excludeEnd("ctx");
  1070. var $1;
  1071. $1=self._tag_("h2");
  1072. return $1;
  1073. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1074. }, function($ctx1) {$ctx1.fill(self,"h2",{},globals.HTMLCanvas)});
  1075. //>>excludeEnd("ctx");
  1076. },
  1077. //>>excludeStart("ide", pragmas.excludeIdeData);
  1078. args: [],
  1079. source: "h2\x0a\x09^ self tag: 'h2'",
  1080. referencedClasses: [],
  1081. //>>excludeEnd("ide");
  1082. messageSends: ["tag:"]
  1083. }),
  1084. globals.HTMLCanvas);
  1085. smalltalk.addMethod(
  1086. smalltalk.method({
  1087. selector: "h2:",
  1088. protocol: 'tags',
  1089. fn: function (anObject){
  1090. var self=this;
  1091. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1092. return smalltalk.withContext(function($ctx1) {
  1093. //>>excludeEnd("ctx");
  1094. var $1;
  1095. $1=_st(self._h2())._with_(anObject);
  1096. return $1;
  1097. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1098. }, function($ctx1) {$ctx1.fill(self,"h2:",{anObject:anObject},globals.HTMLCanvas)});
  1099. //>>excludeEnd("ctx");
  1100. },
  1101. //>>excludeStart("ide", pragmas.excludeIdeData);
  1102. args: ["anObject"],
  1103. source: "h2: anObject\x0a\x09^ self h2 with: anObject",
  1104. referencedClasses: [],
  1105. //>>excludeEnd("ide");
  1106. messageSends: ["with:", "h2"]
  1107. }),
  1108. globals.HTMLCanvas);
  1109. smalltalk.addMethod(
  1110. smalltalk.method({
  1111. selector: "h3",
  1112. protocol: 'tags',
  1113. fn: function (){
  1114. var self=this;
  1115. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1116. return smalltalk.withContext(function($ctx1) {
  1117. //>>excludeEnd("ctx");
  1118. var $1;
  1119. $1=self._tag_("h3");
  1120. return $1;
  1121. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1122. }, function($ctx1) {$ctx1.fill(self,"h3",{},globals.HTMLCanvas)});
  1123. //>>excludeEnd("ctx");
  1124. },
  1125. //>>excludeStart("ide", pragmas.excludeIdeData);
  1126. args: [],
  1127. source: "h3\x0a\x09^ self tag: 'h3'",
  1128. referencedClasses: [],
  1129. //>>excludeEnd("ide");
  1130. messageSends: ["tag:"]
  1131. }),
  1132. globals.HTMLCanvas);
  1133. smalltalk.addMethod(
  1134. smalltalk.method({
  1135. selector: "h3:",
  1136. protocol: 'tags',
  1137. fn: function (anObject){
  1138. var self=this;
  1139. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1140. return smalltalk.withContext(function($ctx1) {
  1141. //>>excludeEnd("ctx");
  1142. var $1;
  1143. $1=_st(self._h3())._with_(anObject);
  1144. return $1;
  1145. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1146. }, function($ctx1) {$ctx1.fill(self,"h3:",{anObject:anObject},globals.HTMLCanvas)});
  1147. //>>excludeEnd("ctx");
  1148. },
  1149. //>>excludeStart("ide", pragmas.excludeIdeData);
  1150. args: ["anObject"],
  1151. source: "h3: anObject\x0a\x09^ self h3 with: anObject",
  1152. referencedClasses: [],
  1153. //>>excludeEnd("ide");
  1154. messageSends: ["with:", "h3"]
  1155. }),
  1156. globals.HTMLCanvas);
  1157. smalltalk.addMethod(
  1158. smalltalk.method({
  1159. selector: "h4",
  1160. protocol: 'tags',
  1161. fn: function (){
  1162. var self=this;
  1163. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1164. return smalltalk.withContext(function($ctx1) {
  1165. //>>excludeEnd("ctx");
  1166. var $1;
  1167. $1=self._tag_("h4");
  1168. return $1;
  1169. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1170. }, function($ctx1) {$ctx1.fill(self,"h4",{},globals.HTMLCanvas)});
  1171. //>>excludeEnd("ctx");
  1172. },
  1173. //>>excludeStart("ide", pragmas.excludeIdeData);
  1174. args: [],
  1175. source: "h4\x0a\x09^ self tag: 'h4'",
  1176. referencedClasses: [],
  1177. //>>excludeEnd("ide");
  1178. messageSends: ["tag:"]
  1179. }),
  1180. globals.HTMLCanvas);
  1181. smalltalk.addMethod(
  1182. smalltalk.method({
  1183. selector: "h4:",
  1184. protocol: 'tags',
  1185. fn: function (anObject){
  1186. var self=this;
  1187. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1188. return smalltalk.withContext(function($ctx1) {
  1189. //>>excludeEnd("ctx");
  1190. var $1;
  1191. $1=_st(self._h4())._with_(anObject);
  1192. return $1;
  1193. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1194. }, function($ctx1) {$ctx1.fill(self,"h4:",{anObject:anObject},globals.HTMLCanvas)});
  1195. //>>excludeEnd("ctx");
  1196. },
  1197. //>>excludeStart("ide", pragmas.excludeIdeData);
  1198. args: ["anObject"],
  1199. source: "h4: anObject\x0a\x09^ self h4 with: anObject",
  1200. referencedClasses: [],
  1201. //>>excludeEnd("ide");
  1202. messageSends: ["with:", "h4"]
  1203. }),
  1204. globals.HTMLCanvas);
  1205. smalltalk.addMethod(
  1206. smalltalk.method({
  1207. selector: "h5",
  1208. protocol: 'tags',
  1209. fn: function (){
  1210. var self=this;
  1211. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1212. return smalltalk.withContext(function($ctx1) {
  1213. //>>excludeEnd("ctx");
  1214. var $1;
  1215. $1=self._tag_("h5");
  1216. return $1;
  1217. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1218. }, function($ctx1) {$ctx1.fill(self,"h5",{},globals.HTMLCanvas)});
  1219. //>>excludeEnd("ctx");
  1220. },
  1221. //>>excludeStart("ide", pragmas.excludeIdeData);
  1222. args: [],
  1223. source: "h5\x0a\x09^ self tag: 'h5'",
  1224. referencedClasses: [],
  1225. //>>excludeEnd("ide");
  1226. messageSends: ["tag:"]
  1227. }),
  1228. globals.HTMLCanvas);
  1229. smalltalk.addMethod(
  1230. smalltalk.method({
  1231. selector: "h5:",
  1232. protocol: 'tags',
  1233. fn: function (anObject){
  1234. var self=this;
  1235. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1236. return smalltalk.withContext(function($ctx1) {
  1237. //>>excludeEnd("ctx");
  1238. var $1;
  1239. $1=_st(self._h5())._with_(anObject);
  1240. return $1;
  1241. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1242. }, function($ctx1) {$ctx1.fill(self,"h5:",{anObject:anObject},globals.HTMLCanvas)});
  1243. //>>excludeEnd("ctx");
  1244. },
  1245. //>>excludeStart("ide", pragmas.excludeIdeData);
  1246. args: ["anObject"],
  1247. source: "h5: anObject\x0a\x09^ self h5 with: anObject",
  1248. referencedClasses: [],
  1249. //>>excludeEnd("ide");
  1250. messageSends: ["with:", "h5"]
  1251. }),
  1252. globals.HTMLCanvas);
  1253. smalltalk.addMethod(
  1254. smalltalk.method({
  1255. selector: "h6",
  1256. protocol: 'tags',
  1257. fn: function (){
  1258. var self=this;
  1259. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1260. return smalltalk.withContext(function($ctx1) {
  1261. //>>excludeEnd("ctx");
  1262. var $1;
  1263. $1=self._tag_("h6");
  1264. return $1;
  1265. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1266. }, function($ctx1) {$ctx1.fill(self,"h6",{},globals.HTMLCanvas)});
  1267. //>>excludeEnd("ctx");
  1268. },
  1269. //>>excludeStart("ide", pragmas.excludeIdeData);
  1270. args: [],
  1271. source: "h6\x0a\x09^ self tag: 'h6'",
  1272. referencedClasses: [],
  1273. //>>excludeEnd("ide");
  1274. messageSends: ["tag:"]
  1275. }),
  1276. globals.HTMLCanvas);
  1277. smalltalk.addMethod(
  1278. smalltalk.method({
  1279. selector: "h6:",
  1280. protocol: 'tags',
  1281. fn: function (anObject){
  1282. var self=this;
  1283. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1284. return smalltalk.withContext(function($ctx1) {
  1285. //>>excludeEnd("ctx");
  1286. var $1;
  1287. $1=_st(self._h6())._with_(anObject);
  1288. return $1;
  1289. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1290. }, function($ctx1) {$ctx1.fill(self,"h6:",{anObject:anObject},globals.HTMLCanvas)});
  1291. //>>excludeEnd("ctx");
  1292. },
  1293. //>>excludeStart("ide", pragmas.excludeIdeData);
  1294. args: ["anObject"],
  1295. source: "h6: anObject\x0a\x09^ self h6 with: anObject",
  1296. referencedClasses: [],
  1297. //>>excludeEnd("ide");
  1298. messageSends: ["with:", "h6"]
  1299. }),
  1300. globals.HTMLCanvas);
  1301. smalltalk.addMethod(
  1302. smalltalk.method({
  1303. selector: "head",
  1304. protocol: 'tags',
  1305. fn: function (){
  1306. var self=this;
  1307. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1308. return smalltalk.withContext(function($ctx1) {
  1309. //>>excludeEnd("ctx");
  1310. var $1;
  1311. $1=self._tag_("head");
  1312. return $1;
  1313. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1314. }, function($ctx1) {$ctx1.fill(self,"head",{},globals.HTMLCanvas)});
  1315. //>>excludeEnd("ctx");
  1316. },
  1317. //>>excludeStart("ide", pragmas.excludeIdeData);
  1318. args: [],
  1319. source: "head\x0a\x09^ self tag: 'head'",
  1320. referencedClasses: [],
  1321. //>>excludeEnd("ide");
  1322. messageSends: ["tag:"]
  1323. }),
  1324. globals.HTMLCanvas);
  1325. smalltalk.addMethod(
  1326. smalltalk.method({
  1327. selector: "header",
  1328. protocol: 'tags',
  1329. fn: function (){
  1330. var self=this;
  1331. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1332. return smalltalk.withContext(function($ctx1) {
  1333. //>>excludeEnd("ctx");
  1334. var $1;
  1335. $1=self._tag_("header");
  1336. return $1;
  1337. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1338. }, function($ctx1) {$ctx1.fill(self,"header",{},globals.HTMLCanvas)});
  1339. //>>excludeEnd("ctx");
  1340. },
  1341. //>>excludeStart("ide", pragmas.excludeIdeData);
  1342. args: [],
  1343. source: "header\x0a\x09^ self tag: 'header'",
  1344. referencedClasses: [],
  1345. //>>excludeEnd("ide");
  1346. messageSends: ["tag:"]
  1347. }),
  1348. globals.HTMLCanvas);
  1349. smalltalk.addMethod(
  1350. smalltalk.method({
  1351. selector: "hgroup",
  1352. protocol: 'tags',
  1353. fn: function (){
  1354. var self=this;
  1355. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1356. return smalltalk.withContext(function($ctx1) {
  1357. //>>excludeEnd("ctx");
  1358. var $1;
  1359. $1=self._tag_("hgroup");
  1360. return $1;
  1361. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1362. }, function($ctx1) {$ctx1.fill(self,"hgroup",{},globals.HTMLCanvas)});
  1363. //>>excludeEnd("ctx");
  1364. },
  1365. //>>excludeStart("ide", pragmas.excludeIdeData);
  1366. args: [],
  1367. source: "hgroup\x0a\x09^ self tag: 'hgroup'",
  1368. referencedClasses: [],
  1369. //>>excludeEnd("ide");
  1370. messageSends: ["tag:"]
  1371. }),
  1372. globals.HTMLCanvas);
  1373. smalltalk.addMethod(
  1374. smalltalk.method({
  1375. selector: "hr",
  1376. protocol: 'tags',
  1377. fn: function (){
  1378. var self=this;
  1379. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1380. return smalltalk.withContext(function($ctx1) {
  1381. //>>excludeEnd("ctx");
  1382. var $1;
  1383. $1=self._tag_("hr");
  1384. return $1;
  1385. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1386. }, function($ctx1) {$ctx1.fill(self,"hr",{},globals.HTMLCanvas)});
  1387. //>>excludeEnd("ctx");
  1388. },
  1389. //>>excludeStart("ide", pragmas.excludeIdeData);
  1390. args: [],
  1391. source: "hr\x0a\x09^ self tag: 'hr'",
  1392. referencedClasses: [],
  1393. //>>excludeEnd("ide");
  1394. messageSends: ["tag:"]
  1395. }),
  1396. globals.HTMLCanvas);
  1397. smalltalk.addMethod(
  1398. smalltalk.method({
  1399. selector: "html",
  1400. protocol: 'tags',
  1401. fn: function (){
  1402. var self=this;
  1403. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1404. return smalltalk.withContext(function($ctx1) {
  1405. //>>excludeEnd("ctx");
  1406. var $1;
  1407. $1=self._tag_("html");
  1408. return $1;
  1409. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1410. }, function($ctx1) {$ctx1.fill(self,"html",{},globals.HTMLCanvas)});
  1411. //>>excludeEnd("ctx");
  1412. },
  1413. //>>excludeStart("ide", pragmas.excludeIdeData);
  1414. args: [],
  1415. source: "html\x0a\x09^ self tag: 'html'",
  1416. referencedClasses: [],
  1417. //>>excludeEnd("ide");
  1418. messageSends: ["tag:"]
  1419. }),
  1420. globals.HTMLCanvas);
  1421. smalltalk.addMethod(
  1422. smalltalk.method({
  1423. selector: "iframe",
  1424. protocol: 'tags',
  1425. fn: function (){
  1426. var self=this;
  1427. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1428. return smalltalk.withContext(function($ctx1) {
  1429. //>>excludeEnd("ctx");
  1430. var $1;
  1431. $1=self._tag_("iframe");
  1432. return $1;
  1433. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1434. }, function($ctx1) {$ctx1.fill(self,"iframe",{},globals.HTMLCanvas)});
  1435. //>>excludeEnd("ctx");
  1436. },
  1437. //>>excludeStart("ide", pragmas.excludeIdeData);
  1438. args: [],
  1439. source: "iframe\x0a\x09^ self tag: 'iframe'",
  1440. referencedClasses: [],
  1441. //>>excludeEnd("ide");
  1442. messageSends: ["tag:"]
  1443. }),
  1444. globals.HTMLCanvas);
  1445. smalltalk.addMethod(
  1446. smalltalk.method({
  1447. selector: "iframe:",
  1448. protocol: 'tags',
  1449. fn: function (aString){
  1450. var self=this;
  1451. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1452. return smalltalk.withContext(function($ctx1) {
  1453. //>>excludeEnd("ctx");
  1454. var $1;
  1455. $1=_st(self._iframe())._src_(aString);
  1456. return $1;
  1457. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1458. }, function($ctx1) {$ctx1.fill(self,"iframe:",{aString:aString},globals.HTMLCanvas)});
  1459. //>>excludeEnd("ctx");
  1460. },
  1461. //>>excludeStart("ide", pragmas.excludeIdeData);
  1462. args: ["aString"],
  1463. source: "iframe: aString\x0a\x09^ self iframe src: aString",
  1464. referencedClasses: [],
  1465. //>>excludeEnd("ide");
  1466. messageSends: ["src:", "iframe"]
  1467. }),
  1468. globals.HTMLCanvas);
  1469. smalltalk.addMethod(
  1470. smalltalk.method({
  1471. selector: "img",
  1472. protocol: 'tags',
  1473. fn: function (){
  1474. var self=this;
  1475. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1476. return smalltalk.withContext(function($ctx1) {
  1477. //>>excludeEnd("ctx");
  1478. var $1;
  1479. $1=self._tag_("img");
  1480. return $1;
  1481. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1482. }, function($ctx1) {$ctx1.fill(self,"img",{},globals.HTMLCanvas)});
  1483. //>>excludeEnd("ctx");
  1484. },
  1485. //>>excludeStart("ide", pragmas.excludeIdeData);
  1486. args: [],
  1487. source: "img\x0a\x09^ self tag: 'img'",
  1488. referencedClasses: [],
  1489. //>>excludeEnd("ide");
  1490. messageSends: ["tag:"]
  1491. }),
  1492. globals.HTMLCanvas);
  1493. smalltalk.addMethod(
  1494. smalltalk.method({
  1495. selector: "img:",
  1496. protocol: 'tags',
  1497. fn: function (aString){
  1498. var self=this;
  1499. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1500. return smalltalk.withContext(function($ctx1) {
  1501. //>>excludeEnd("ctx");
  1502. var $1;
  1503. $1=_st(self._img())._src_(aString);
  1504. return $1;
  1505. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1506. }, function($ctx1) {$ctx1.fill(self,"img:",{aString:aString},globals.HTMLCanvas)});
  1507. //>>excludeEnd("ctx");
  1508. },
  1509. //>>excludeStart("ide", pragmas.excludeIdeData);
  1510. args: ["aString"],
  1511. source: "img: aString\x0a\x09^ self img src: aString",
  1512. referencedClasses: [],
  1513. //>>excludeEnd("ide");
  1514. messageSends: ["src:", "img"]
  1515. }),
  1516. globals.HTMLCanvas);
  1517. smalltalk.addMethod(
  1518. smalltalk.method({
  1519. selector: "initialize",
  1520. protocol: 'initialization',
  1521. fn: function (){
  1522. var self=this;
  1523. function $TagBrush(){return globals.TagBrush||(typeof TagBrush=="undefined"?nil:TagBrush)}
  1524. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1525. return smalltalk.withContext(function($ctx1) {
  1526. //>>excludeEnd("ctx");
  1527. var $1,$receiver;
  1528. (
  1529. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1530. $ctx1.supercall = true,
  1531. //>>excludeEnd("ctx");
  1532. globals.HTMLCanvas.superclass.fn.prototype._initialize.apply(_st(self), []));
  1533. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1534. $ctx1.supercall = false;
  1535. //>>excludeEnd("ctx");;
  1536. $1=self["@root"];
  1537. if(($receiver = $1) == null || $receiver.isNil){
  1538. self["@root"]=_st($TagBrush())._fromString_canvas_("div",self);
  1539. self["@root"];
  1540. } else {
  1541. $1;
  1542. };
  1543. return self;
  1544. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1545. }, function($ctx1) {$ctx1.fill(self,"initialize",{},globals.HTMLCanvas)});
  1546. //>>excludeEnd("ctx");
  1547. },
  1548. //>>excludeStart("ide", pragmas.excludeIdeData);
  1549. args: [],
  1550. source: "initialize\x0a\x09super initialize.\x0a\x09root ifNil: [ root := TagBrush fromString: 'div' canvas: self ]",
  1551. referencedClasses: ["TagBrush"],
  1552. //>>excludeEnd("ide");
  1553. messageSends: ["initialize", "ifNil:", "fromString:canvas:"]
  1554. }),
  1555. globals.HTMLCanvas);
  1556. smalltalk.addMethod(
  1557. smalltalk.method({
  1558. selector: "initializeFromJQuery:",
  1559. protocol: 'initialization',
  1560. fn: function (aJQuery){
  1561. var self=this;
  1562. function $TagBrush(){return globals.TagBrush||(typeof TagBrush=="undefined"?nil:TagBrush)}
  1563. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1564. return smalltalk.withContext(function($ctx1) {
  1565. //>>excludeEnd("ctx");
  1566. self["@root"]=_st($TagBrush())._fromJQuery_canvas_(aJQuery,self);
  1567. return self;
  1568. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1569. }, function($ctx1) {$ctx1.fill(self,"initializeFromJQuery:",{aJQuery:aJQuery},globals.HTMLCanvas)});
  1570. //>>excludeEnd("ctx");
  1571. },
  1572. //>>excludeStart("ide", pragmas.excludeIdeData);
  1573. args: ["aJQuery"],
  1574. source: "initializeFromJQuery: aJQuery\x0a\x09root := TagBrush fromJQuery: aJQuery canvas: self",
  1575. referencedClasses: ["TagBrush"],
  1576. //>>excludeEnd("ide");
  1577. messageSends: ["fromJQuery:canvas:"]
  1578. }),
  1579. globals.HTMLCanvas);
  1580. smalltalk.addMethod(
  1581. smalltalk.method({
  1582. selector: "input",
  1583. protocol: 'tags',
  1584. fn: function (){
  1585. var self=this;
  1586. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1587. return smalltalk.withContext(function($ctx1) {
  1588. //>>excludeEnd("ctx");
  1589. var $1;
  1590. $1=self._tag_("input");
  1591. return $1;
  1592. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1593. }, function($ctx1) {$ctx1.fill(self,"input",{},globals.HTMLCanvas)});
  1594. //>>excludeEnd("ctx");
  1595. },
  1596. //>>excludeStart("ide", pragmas.excludeIdeData);
  1597. args: [],
  1598. source: "input\x0a\x09^ self tag: 'input'",
  1599. referencedClasses: [],
  1600. //>>excludeEnd("ide");
  1601. messageSends: ["tag:"]
  1602. }),
  1603. globals.HTMLCanvas);
  1604. smalltalk.addMethod(
  1605. smalltalk.method({
  1606. selector: "label",
  1607. protocol: 'tags',
  1608. fn: function (){
  1609. var self=this;
  1610. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1611. return smalltalk.withContext(function($ctx1) {
  1612. //>>excludeEnd("ctx");
  1613. var $1;
  1614. $1=self._tag_("label");
  1615. return $1;
  1616. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1617. }, function($ctx1) {$ctx1.fill(self,"label",{},globals.HTMLCanvas)});
  1618. //>>excludeEnd("ctx");
  1619. },
  1620. //>>excludeStart("ide", pragmas.excludeIdeData);
  1621. args: [],
  1622. source: "label\x0a\x09^ self tag: 'label'",
  1623. referencedClasses: [],
  1624. //>>excludeEnd("ide");
  1625. messageSends: ["tag:"]
  1626. }),
  1627. globals.HTMLCanvas);
  1628. smalltalk.addMethod(
  1629. smalltalk.method({
  1630. selector: "legend",
  1631. protocol: 'tags',
  1632. fn: function (){
  1633. var self=this;
  1634. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1635. return smalltalk.withContext(function($ctx1) {
  1636. //>>excludeEnd("ctx");
  1637. var $1;
  1638. $1=self._tag_("legend");
  1639. return $1;
  1640. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1641. }, function($ctx1) {$ctx1.fill(self,"legend",{},globals.HTMLCanvas)});
  1642. //>>excludeEnd("ctx");
  1643. },
  1644. //>>excludeStart("ide", pragmas.excludeIdeData);
  1645. args: [],
  1646. source: "legend\x0a\x09^ self tag: 'legend'",
  1647. referencedClasses: [],
  1648. //>>excludeEnd("ide");
  1649. messageSends: ["tag:"]
  1650. }),
  1651. globals.HTMLCanvas);
  1652. smalltalk.addMethod(
  1653. smalltalk.method({
  1654. selector: "li",
  1655. protocol: 'tags',
  1656. fn: function (){
  1657. var self=this;
  1658. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1659. return smalltalk.withContext(function($ctx1) {
  1660. //>>excludeEnd("ctx");
  1661. var $1;
  1662. $1=self._tag_("li");
  1663. return $1;
  1664. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1665. }, function($ctx1) {$ctx1.fill(self,"li",{},globals.HTMLCanvas)});
  1666. //>>excludeEnd("ctx");
  1667. },
  1668. //>>excludeStart("ide", pragmas.excludeIdeData);
  1669. args: [],
  1670. source: "li\x0a\x09^ self tag: 'li'",
  1671. referencedClasses: [],
  1672. //>>excludeEnd("ide");
  1673. messageSends: ["tag:"]
  1674. }),
  1675. globals.HTMLCanvas);
  1676. smalltalk.addMethod(
  1677. smalltalk.method({
  1678. selector: "li:",
  1679. protocol: 'tags',
  1680. fn: function (anObject){
  1681. var self=this;
  1682. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1683. return smalltalk.withContext(function($ctx1) {
  1684. //>>excludeEnd("ctx");
  1685. var $1;
  1686. $1=_st(self._li())._with_(anObject);
  1687. return $1;
  1688. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1689. }, function($ctx1) {$ctx1.fill(self,"li:",{anObject:anObject},globals.HTMLCanvas)});
  1690. //>>excludeEnd("ctx");
  1691. },
  1692. //>>excludeStart("ide", pragmas.excludeIdeData);
  1693. args: ["anObject"],
  1694. source: "li: anObject\x0a\x09^ self li with: anObject",
  1695. referencedClasses: [],
  1696. //>>excludeEnd("ide");
  1697. messageSends: ["with:", "li"]
  1698. }),
  1699. globals.HTMLCanvas);
  1700. smalltalk.addMethod(
  1701. smalltalk.method({
  1702. selector: "link",
  1703. protocol: 'tags',
  1704. fn: function (){
  1705. var self=this;
  1706. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1707. return smalltalk.withContext(function($ctx1) {
  1708. //>>excludeEnd("ctx");
  1709. var $1;
  1710. $1=self._tag_("link");
  1711. return $1;
  1712. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1713. }, function($ctx1) {$ctx1.fill(self,"link",{},globals.HTMLCanvas)});
  1714. //>>excludeEnd("ctx");
  1715. },
  1716. //>>excludeStart("ide", pragmas.excludeIdeData);
  1717. args: [],
  1718. source: "link\x0a\x09^ self tag: 'link'",
  1719. referencedClasses: [],
  1720. //>>excludeEnd("ide");
  1721. messageSends: ["tag:"]
  1722. }),
  1723. globals.HTMLCanvas);
  1724. smalltalk.addMethod(
  1725. smalltalk.method({
  1726. selector: "map",
  1727. protocol: 'tags',
  1728. fn: function (){
  1729. var self=this;
  1730. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1731. return smalltalk.withContext(function($ctx1) {
  1732. //>>excludeEnd("ctx");
  1733. var $1;
  1734. $1=self._tag_("map");
  1735. return $1;
  1736. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1737. }, function($ctx1) {$ctx1.fill(self,"map",{},globals.HTMLCanvas)});
  1738. //>>excludeEnd("ctx");
  1739. },
  1740. //>>excludeStart("ide", pragmas.excludeIdeData);
  1741. args: [],
  1742. source: "map\x0a\x09^ self tag: 'map'",
  1743. referencedClasses: [],
  1744. //>>excludeEnd("ide");
  1745. messageSends: ["tag:"]
  1746. }),
  1747. globals.HTMLCanvas);
  1748. smalltalk.addMethod(
  1749. smalltalk.method({
  1750. selector: "mark",
  1751. protocol: 'tags',
  1752. fn: function (){
  1753. var self=this;
  1754. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1755. return smalltalk.withContext(function($ctx1) {
  1756. //>>excludeEnd("ctx");
  1757. var $1;
  1758. $1=self._tag_("mark");
  1759. return $1;
  1760. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1761. }, function($ctx1) {$ctx1.fill(self,"mark",{},globals.HTMLCanvas)});
  1762. //>>excludeEnd("ctx");
  1763. },
  1764. //>>excludeStart("ide", pragmas.excludeIdeData);
  1765. args: [],
  1766. source: "mark\x0a\x09^ self tag: 'mark'",
  1767. referencedClasses: [],
  1768. //>>excludeEnd("ide");
  1769. messageSends: ["tag:"]
  1770. }),
  1771. globals.HTMLCanvas);
  1772. smalltalk.addMethod(
  1773. smalltalk.method({
  1774. selector: "menu",
  1775. protocol: 'tags',
  1776. fn: function (){
  1777. var self=this;
  1778. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1779. return smalltalk.withContext(function($ctx1) {
  1780. //>>excludeEnd("ctx");
  1781. var $1;
  1782. $1=self._tag_("menu");
  1783. return $1;
  1784. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1785. }, function($ctx1) {$ctx1.fill(self,"menu",{},globals.HTMLCanvas)});
  1786. //>>excludeEnd("ctx");
  1787. },
  1788. //>>excludeStart("ide", pragmas.excludeIdeData);
  1789. args: [],
  1790. source: "menu\x0a\x09^ self tag: 'menu'",
  1791. referencedClasses: [],
  1792. //>>excludeEnd("ide");
  1793. messageSends: ["tag:"]
  1794. }),
  1795. globals.HTMLCanvas);
  1796. smalltalk.addMethod(
  1797. smalltalk.method({
  1798. selector: "meta",
  1799. protocol: 'tags',
  1800. fn: function (){
  1801. var self=this;
  1802. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1803. return smalltalk.withContext(function($ctx1) {
  1804. //>>excludeEnd("ctx");
  1805. var $1;
  1806. $1=self._tag_("meta");
  1807. return $1;
  1808. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1809. }, function($ctx1) {$ctx1.fill(self,"meta",{},globals.HTMLCanvas)});
  1810. //>>excludeEnd("ctx");
  1811. },
  1812. //>>excludeStart("ide", pragmas.excludeIdeData);
  1813. args: [],
  1814. source: "meta\x0a\x09^ self tag: 'meta'",
  1815. referencedClasses: [],
  1816. //>>excludeEnd("ide");
  1817. messageSends: ["tag:"]
  1818. }),
  1819. globals.HTMLCanvas);
  1820. smalltalk.addMethod(
  1821. smalltalk.method({
  1822. selector: "nav",
  1823. protocol: 'tags',
  1824. fn: function (){
  1825. var self=this;
  1826. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1827. return smalltalk.withContext(function($ctx1) {
  1828. //>>excludeEnd("ctx");
  1829. var $1;
  1830. $1=self._tag_("nav");
  1831. return $1;
  1832. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1833. }, function($ctx1) {$ctx1.fill(self,"nav",{},globals.HTMLCanvas)});
  1834. //>>excludeEnd("ctx");
  1835. },
  1836. //>>excludeStart("ide", pragmas.excludeIdeData);
  1837. args: [],
  1838. source: "nav\x0a\x09^ self tag: 'nav'",
  1839. referencedClasses: [],
  1840. //>>excludeEnd("ide");
  1841. messageSends: ["tag:"]
  1842. }),
  1843. globals.HTMLCanvas);
  1844. smalltalk.addMethod(
  1845. smalltalk.method({
  1846. selector: "newTag:",
  1847. protocol: 'tags',
  1848. fn: function (aString){
  1849. var self=this;
  1850. function $TagBrush(){return globals.TagBrush||(typeof TagBrush=="undefined"?nil:TagBrush)}
  1851. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1852. return smalltalk.withContext(function($ctx1) {
  1853. //>>excludeEnd("ctx");
  1854. var $1;
  1855. $1=_st($TagBrush())._fromString_canvas_(aString,self);
  1856. return $1;
  1857. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1858. }, function($ctx1) {$ctx1.fill(self,"newTag:",{aString:aString},globals.HTMLCanvas)});
  1859. //>>excludeEnd("ctx");
  1860. },
  1861. //>>excludeStart("ide", pragmas.excludeIdeData);
  1862. args: ["aString"],
  1863. source: "newTag: aString\x0a\x09^ TagBrush fromString: aString canvas: self",
  1864. referencedClasses: ["TagBrush"],
  1865. //>>excludeEnd("ide");
  1866. messageSends: ["fromString:canvas:"]
  1867. }),
  1868. globals.HTMLCanvas);
  1869. smalltalk.addMethod(
  1870. smalltalk.method({
  1871. selector: "noscript",
  1872. protocol: 'tags',
  1873. fn: function (){
  1874. var self=this;
  1875. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1876. return smalltalk.withContext(function($ctx1) {
  1877. //>>excludeEnd("ctx");
  1878. var $1;
  1879. $1=self._tag_("noscript");
  1880. return $1;
  1881. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1882. }, function($ctx1) {$ctx1.fill(self,"noscript",{},globals.HTMLCanvas)});
  1883. //>>excludeEnd("ctx");
  1884. },
  1885. //>>excludeStart("ide", pragmas.excludeIdeData);
  1886. args: [],
  1887. source: "noscript\x0a\x09^ self tag: 'noscript'",
  1888. referencedClasses: [],
  1889. //>>excludeEnd("ide");
  1890. messageSends: ["tag:"]
  1891. }),
  1892. globals.HTMLCanvas);
  1893. smalltalk.addMethod(
  1894. smalltalk.method({
  1895. selector: "object",
  1896. protocol: 'tags',
  1897. fn: function (){
  1898. var self=this;
  1899. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1900. return smalltalk.withContext(function($ctx1) {
  1901. //>>excludeEnd("ctx");
  1902. var $1;
  1903. $1=self._tag_("object");
  1904. return $1;
  1905. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1906. }, function($ctx1) {$ctx1.fill(self,"object",{},globals.HTMLCanvas)});
  1907. //>>excludeEnd("ctx");
  1908. },
  1909. //>>excludeStart("ide", pragmas.excludeIdeData);
  1910. args: [],
  1911. source: "object\x0a\x09^ self tag: 'object'",
  1912. referencedClasses: [],
  1913. //>>excludeEnd("ide");
  1914. messageSends: ["tag:"]
  1915. }),
  1916. globals.HTMLCanvas);
  1917. smalltalk.addMethod(
  1918. smalltalk.method({
  1919. selector: "ol",
  1920. protocol: 'tags',
  1921. fn: function (){
  1922. var self=this;
  1923. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1924. return smalltalk.withContext(function($ctx1) {
  1925. //>>excludeEnd("ctx");
  1926. var $1;
  1927. $1=self._tag_("ol");
  1928. return $1;
  1929. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1930. }, function($ctx1) {$ctx1.fill(self,"ol",{},globals.HTMLCanvas)});
  1931. //>>excludeEnd("ctx");
  1932. },
  1933. //>>excludeStart("ide", pragmas.excludeIdeData);
  1934. args: [],
  1935. source: "ol\x0a\x09^ self tag: 'ol'",
  1936. referencedClasses: [],
  1937. //>>excludeEnd("ide");
  1938. messageSends: ["tag:"]
  1939. }),
  1940. globals.HTMLCanvas);
  1941. smalltalk.addMethod(
  1942. smalltalk.method({
  1943. selector: "ol:",
  1944. protocol: 'tags',
  1945. fn: function (anObject){
  1946. var self=this;
  1947. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1948. return smalltalk.withContext(function($ctx1) {
  1949. //>>excludeEnd("ctx");
  1950. var $1;
  1951. $1=_st(self._ol())._with_(anObject);
  1952. return $1;
  1953. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1954. }, function($ctx1) {$ctx1.fill(self,"ol:",{anObject:anObject},globals.HTMLCanvas)});
  1955. //>>excludeEnd("ctx");
  1956. },
  1957. //>>excludeStart("ide", pragmas.excludeIdeData);
  1958. args: ["anObject"],
  1959. source: "ol: anObject\x0a\x09^ self ol with: anObject",
  1960. referencedClasses: [],
  1961. //>>excludeEnd("ide");
  1962. messageSends: ["with:", "ol"]
  1963. }),
  1964. globals.HTMLCanvas);
  1965. smalltalk.addMethod(
  1966. smalltalk.method({
  1967. selector: "optgroup",
  1968. protocol: 'tags',
  1969. fn: function (){
  1970. var self=this;
  1971. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1972. return smalltalk.withContext(function($ctx1) {
  1973. //>>excludeEnd("ctx");
  1974. var $1;
  1975. $1=self._tag_("optgroup");
  1976. return $1;
  1977. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1978. }, function($ctx1) {$ctx1.fill(self,"optgroup",{},globals.HTMLCanvas)});
  1979. //>>excludeEnd("ctx");
  1980. },
  1981. //>>excludeStart("ide", pragmas.excludeIdeData);
  1982. args: [],
  1983. source: "optgroup\x0a\x09^ self tag: 'optgroup'",
  1984. referencedClasses: [],
  1985. //>>excludeEnd("ide");
  1986. messageSends: ["tag:"]
  1987. }),
  1988. globals.HTMLCanvas);
  1989. smalltalk.addMethod(
  1990. smalltalk.method({
  1991. selector: "option",
  1992. protocol: 'tags',
  1993. fn: function (){
  1994. var self=this;
  1995. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1996. return smalltalk.withContext(function($ctx1) {
  1997. //>>excludeEnd("ctx");
  1998. var $1;
  1999. $1=self._tag_("option");
  2000. return $1;
  2001. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2002. }, function($ctx1) {$ctx1.fill(self,"option",{},globals.HTMLCanvas)});
  2003. //>>excludeEnd("ctx");
  2004. },
  2005. //>>excludeStart("ide", pragmas.excludeIdeData);
  2006. args: [],
  2007. source: "option\x0a\x09^ self tag: 'option'",
  2008. referencedClasses: [],
  2009. //>>excludeEnd("ide");
  2010. messageSends: ["tag:"]
  2011. }),
  2012. globals.HTMLCanvas);
  2013. smalltalk.addMethod(
  2014. smalltalk.method({
  2015. selector: "output",
  2016. protocol: 'tags',
  2017. fn: function (){
  2018. var self=this;
  2019. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2020. return smalltalk.withContext(function($ctx1) {
  2021. //>>excludeEnd("ctx");
  2022. var $1;
  2023. $1=self._tag_("output");
  2024. return $1;
  2025. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2026. }, function($ctx1) {$ctx1.fill(self,"output",{},globals.HTMLCanvas)});
  2027. //>>excludeEnd("ctx");
  2028. },
  2029. //>>excludeStart("ide", pragmas.excludeIdeData);
  2030. args: [],
  2031. source: "output\x0a\x09^ self tag: 'output'",
  2032. referencedClasses: [],
  2033. //>>excludeEnd("ide");
  2034. messageSends: ["tag:"]
  2035. }),
  2036. globals.HTMLCanvas);
  2037. smalltalk.addMethod(
  2038. smalltalk.method({
  2039. selector: "p",
  2040. protocol: 'tags',
  2041. fn: function (){
  2042. var self=this;
  2043. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2044. return smalltalk.withContext(function($ctx1) {
  2045. //>>excludeEnd("ctx");
  2046. var $1;
  2047. $1=self._tag_("p");
  2048. return $1;
  2049. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2050. }, function($ctx1) {$ctx1.fill(self,"p",{},globals.HTMLCanvas)});
  2051. //>>excludeEnd("ctx");
  2052. },
  2053. //>>excludeStart("ide", pragmas.excludeIdeData);
  2054. args: [],
  2055. source: "p\x0a\x09^ self tag: 'p'",
  2056. referencedClasses: [],
  2057. //>>excludeEnd("ide");
  2058. messageSends: ["tag:"]
  2059. }),
  2060. globals.HTMLCanvas);
  2061. smalltalk.addMethod(
  2062. smalltalk.method({
  2063. selector: "p:",
  2064. protocol: 'tags',
  2065. fn: function (anObject){
  2066. var self=this;
  2067. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2068. return smalltalk.withContext(function($ctx1) {
  2069. //>>excludeEnd("ctx");
  2070. var $1;
  2071. $1=_st(self._p())._with_(anObject);
  2072. return $1;
  2073. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2074. }, function($ctx1) {$ctx1.fill(self,"p:",{anObject:anObject},globals.HTMLCanvas)});
  2075. //>>excludeEnd("ctx");
  2076. },
  2077. //>>excludeStart("ide", pragmas.excludeIdeData);
  2078. args: ["anObject"],
  2079. source: "p: anObject\x0a\x09^ self p with: anObject",
  2080. referencedClasses: [],
  2081. //>>excludeEnd("ide");
  2082. messageSends: ["with:", "p"]
  2083. }),
  2084. globals.HTMLCanvas);
  2085. smalltalk.addMethod(
  2086. smalltalk.method({
  2087. selector: "param",
  2088. protocol: 'tags',
  2089. fn: function (){
  2090. var self=this;
  2091. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2092. return smalltalk.withContext(function($ctx1) {
  2093. //>>excludeEnd("ctx");
  2094. var $1;
  2095. $1=self._tag_("param");
  2096. return $1;
  2097. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2098. }, function($ctx1) {$ctx1.fill(self,"param",{},globals.HTMLCanvas)});
  2099. //>>excludeEnd("ctx");
  2100. },
  2101. //>>excludeStart("ide", pragmas.excludeIdeData);
  2102. args: [],
  2103. source: "param\x0a\x09^ self tag: 'param'",
  2104. referencedClasses: [],
  2105. //>>excludeEnd("ide");
  2106. messageSends: ["tag:"]
  2107. }),
  2108. globals.HTMLCanvas);
  2109. smalltalk.addMethod(
  2110. smalltalk.method({
  2111. selector: "pre",
  2112. protocol: 'tags',
  2113. fn: function (){
  2114. var self=this;
  2115. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2116. return smalltalk.withContext(function($ctx1) {
  2117. //>>excludeEnd("ctx");
  2118. var $1;
  2119. $1=self._tag_("pre");
  2120. return $1;
  2121. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2122. }, function($ctx1) {$ctx1.fill(self,"pre",{},globals.HTMLCanvas)});
  2123. //>>excludeEnd("ctx");
  2124. },
  2125. //>>excludeStart("ide", pragmas.excludeIdeData);
  2126. args: [],
  2127. source: "pre\x0a\x09^ self tag: 'pre'",
  2128. referencedClasses: [],
  2129. //>>excludeEnd("ide");
  2130. messageSends: ["tag:"]
  2131. }),
  2132. globals.HTMLCanvas);
  2133. smalltalk.addMethod(
  2134. smalltalk.method({
  2135. selector: "progress",
  2136. protocol: 'tags',
  2137. fn: function (){
  2138. var self=this;
  2139. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2140. return smalltalk.withContext(function($ctx1) {
  2141. //>>excludeEnd("ctx");
  2142. var $1;
  2143. $1=self._tag_("progress");
  2144. return $1;
  2145. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2146. }, function($ctx1) {$ctx1.fill(self,"progress",{},globals.HTMLCanvas)});
  2147. //>>excludeEnd("ctx");
  2148. },
  2149. //>>excludeStart("ide", pragmas.excludeIdeData);
  2150. args: [],
  2151. source: "progress\x0a\x09^ self tag: 'progress'",
  2152. referencedClasses: [],
  2153. //>>excludeEnd("ide");
  2154. messageSends: ["tag:"]
  2155. }),
  2156. globals.HTMLCanvas);
  2157. smalltalk.addMethod(
  2158. smalltalk.method({
  2159. selector: "root",
  2160. protocol: 'accessing',
  2161. fn: function (){
  2162. var self=this;
  2163. var $1;
  2164. $1=self["@root"];
  2165. return $1;
  2166. },
  2167. //>>excludeStart("ide", pragmas.excludeIdeData);
  2168. args: [],
  2169. source: "root\x0a\x09^ root",
  2170. referencedClasses: [],
  2171. //>>excludeEnd("ide");
  2172. messageSends: []
  2173. }),
  2174. globals.HTMLCanvas);
  2175. smalltalk.addMethod(
  2176. smalltalk.method({
  2177. selector: "root:",
  2178. protocol: 'accessing',
  2179. fn: function (aTagBrush){
  2180. var self=this;
  2181. self["@root"]=aTagBrush;
  2182. return self;
  2183. },
  2184. //>>excludeStart("ide", pragmas.excludeIdeData);
  2185. args: ["aTagBrush"],
  2186. source: "root: aTagBrush\x0a\x09root := aTagBrush",
  2187. referencedClasses: [],
  2188. //>>excludeEnd("ide");
  2189. messageSends: []
  2190. }),
  2191. globals.HTMLCanvas);
  2192. smalltalk.addMethod(
  2193. smalltalk.method({
  2194. selector: "script",
  2195. protocol: 'tags',
  2196. fn: function (){
  2197. var self=this;
  2198. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2199. return smalltalk.withContext(function($ctx1) {
  2200. //>>excludeEnd("ctx");
  2201. var $1;
  2202. $1=self._tag_("script");
  2203. return $1;
  2204. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2205. }, function($ctx1) {$ctx1.fill(self,"script",{},globals.HTMLCanvas)});
  2206. //>>excludeEnd("ctx");
  2207. },
  2208. //>>excludeStart("ide", pragmas.excludeIdeData);
  2209. args: [],
  2210. source: "script\x0a\x09^ self tag: 'script'",
  2211. referencedClasses: [],
  2212. //>>excludeEnd("ide");
  2213. messageSends: ["tag:"]
  2214. }),
  2215. globals.HTMLCanvas);
  2216. smalltalk.addMethod(
  2217. smalltalk.method({
  2218. selector: "section",
  2219. protocol: 'tags',
  2220. fn: function (){
  2221. var self=this;
  2222. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2223. return smalltalk.withContext(function($ctx1) {
  2224. //>>excludeEnd("ctx");
  2225. var $1;
  2226. $1=self._tag_("section");
  2227. return $1;
  2228. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2229. }, function($ctx1) {$ctx1.fill(self,"section",{},globals.HTMLCanvas)});
  2230. //>>excludeEnd("ctx");
  2231. },
  2232. //>>excludeStart("ide", pragmas.excludeIdeData);
  2233. args: [],
  2234. source: "section\x0a\x09^ self tag: 'section'",
  2235. referencedClasses: [],
  2236. //>>excludeEnd("ide");
  2237. messageSends: ["tag:"]
  2238. }),
  2239. globals.HTMLCanvas);
  2240. smalltalk.addMethod(
  2241. smalltalk.method({
  2242. selector: "select",
  2243. protocol: 'tags',
  2244. fn: function (){
  2245. var self=this;
  2246. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2247. return smalltalk.withContext(function($ctx1) {
  2248. //>>excludeEnd("ctx");
  2249. var $1;
  2250. $1=self._tag_("select");
  2251. return $1;
  2252. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2253. }, function($ctx1) {$ctx1.fill(self,"select",{},globals.HTMLCanvas)});
  2254. //>>excludeEnd("ctx");
  2255. },
  2256. //>>excludeStart("ide", pragmas.excludeIdeData);
  2257. args: [],
  2258. source: "select\x0a\x09^ self tag: 'select'",
  2259. referencedClasses: [],
  2260. //>>excludeEnd("ide");
  2261. messageSends: ["tag:"]
  2262. }),
  2263. globals.HTMLCanvas);
  2264. smalltalk.addMethod(
  2265. smalltalk.method({
  2266. selector: "small",
  2267. protocol: 'tags',
  2268. fn: function (){
  2269. var self=this;
  2270. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2271. return smalltalk.withContext(function($ctx1) {
  2272. //>>excludeEnd("ctx");
  2273. var $1;
  2274. $1=self._tag_("small");
  2275. return $1;
  2276. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2277. }, function($ctx1) {$ctx1.fill(self,"small",{},globals.HTMLCanvas)});
  2278. //>>excludeEnd("ctx");
  2279. },
  2280. //>>excludeStart("ide", pragmas.excludeIdeData);
  2281. args: [],
  2282. source: "small\x0a\x09^ self tag: 'small'",
  2283. referencedClasses: [],
  2284. //>>excludeEnd("ide");
  2285. messageSends: ["tag:"]
  2286. }),
  2287. globals.HTMLCanvas);
  2288. smalltalk.addMethod(
  2289. smalltalk.method({
  2290. selector: "snippet:",
  2291. protocol: 'accessing',
  2292. fn: function (anElement){
  2293. var self=this;
  2294. var clone,caret;
  2295. function $TagBrush(){return globals.TagBrush||(typeof TagBrush=="undefined"?nil:TagBrush)}
  2296. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2297. return smalltalk.withContext(function($ctx1) {
  2298. //>>excludeEnd("ctx");
  2299. var $1,$2,$3;
  2300. clone=_st(_st(anElement)._asJQuery())._clone();
  2301. $1=_st($TagBrush())._fromJQuery_canvas_(clone,self);
  2302. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2303. $ctx1.sendIdx["fromJQuery:canvas:"]=1;
  2304. //>>excludeEnd("ctx");
  2305. self._with_($1);
  2306. caret=_st(clone)._find_("[data-snippet=\x22*\x22]");
  2307. $2=_st(_st(caret)._toArray())._isEmpty();
  2308. if(smalltalk.assert($2)){
  2309. caret=clone;
  2310. caret;
  2311. };
  2312. $3=_st($TagBrush())._fromJQuery_canvas_(_st(caret)._removeAttr_("data-snippet"),self);
  2313. return $3;
  2314. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2315. }, function($ctx1) {$ctx1.fill(self,"snippet:",{anElement:anElement,clone:clone,caret:caret},globals.HTMLCanvas)});
  2316. //>>excludeEnd("ctx");
  2317. },
  2318. //>>excludeStart("ide", pragmas.excludeIdeData);
  2319. args: ["anElement"],
  2320. 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",
  2321. referencedClasses: ["TagBrush"],
  2322. //>>excludeEnd("ide");
  2323. messageSends: ["clone", "asJQuery", "with:", "fromJQuery:canvas:", "find:", "ifTrue:", "isEmpty", "toArray", "removeAttr:"]
  2324. }),
  2325. globals.HTMLCanvas);
  2326. smalltalk.addMethod(
  2327. smalltalk.method({
  2328. selector: "source",
  2329. protocol: 'tags',
  2330. fn: function (){
  2331. var self=this;
  2332. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2333. return smalltalk.withContext(function($ctx1) {
  2334. //>>excludeEnd("ctx");
  2335. var $1;
  2336. $1=self._tag_("source");
  2337. return $1;
  2338. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2339. }, function($ctx1) {$ctx1.fill(self,"source",{},globals.HTMLCanvas)});
  2340. //>>excludeEnd("ctx");
  2341. },
  2342. //>>excludeStart("ide", pragmas.excludeIdeData);
  2343. args: [],
  2344. source: "source\x0a\x09^ self tag: 'source'",
  2345. referencedClasses: [],
  2346. //>>excludeEnd("ide");
  2347. messageSends: ["tag:"]
  2348. }),
  2349. globals.HTMLCanvas);
  2350. smalltalk.addMethod(
  2351. smalltalk.method({
  2352. selector: "span",
  2353. protocol: 'tags',
  2354. fn: function (){
  2355. var self=this;
  2356. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2357. return smalltalk.withContext(function($ctx1) {
  2358. //>>excludeEnd("ctx");
  2359. var $1;
  2360. $1=self._tag_("span");
  2361. return $1;
  2362. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2363. }, function($ctx1) {$ctx1.fill(self,"span",{},globals.HTMLCanvas)});
  2364. //>>excludeEnd("ctx");
  2365. },
  2366. //>>excludeStart("ide", pragmas.excludeIdeData);
  2367. args: [],
  2368. source: "span\x0a\x09^ self tag: 'span'",
  2369. referencedClasses: [],
  2370. //>>excludeEnd("ide");
  2371. messageSends: ["tag:"]
  2372. }),
  2373. globals.HTMLCanvas);
  2374. smalltalk.addMethod(
  2375. smalltalk.method({
  2376. selector: "span:",
  2377. protocol: 'tags',
  2378. fn: function (anObject){
  2379. var self=this;
  2380. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2381. return smalltalk.withContext(function($ctx1) {
  2382. //>>excludeEnd("ctx");
  2383. var $1;
  2384. $1=_st(self._span())._with_(anObject);
  2385. return $1;
  2386. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2387. }, function($ctx1) {$ctx1.fill(self,"span:",{anObject:anObject},globals.HTMLCanvas)});
  2388. //>>excludeEnd("ctx");
  2389. },
  2390. //>>excludeStart("ide", pragmas.excludeIdeData);
  2391. args: ["anObject"],
  2392. source: "span: anObject\x0a\x09^ self span with: anObject",
  2393. referencedClasses: [],
  2394. //>>excludeEnd("ide");
  2395. messageSends: ["with:", "span"]
  2396. }),
  2397. globals.HTMLCanvas);
  2398. smalltalk.addMethod(
  2399. smalltalk.method({
  2400. selector: "strong",
  2401. protocol: 'tags',
  2402. fn: function (){
  2403. var self=this;
  2404. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2405. return smalltalk.withContext(function($ctx1) {
  2406. //>>excludeEnd("ctx");
  2407. var $1;
  2408. $1=self._tag_("strong");
  2409. return $1;
  2410. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2411. }, function($ctx1) {$ctx1.fill(self,"strong",{},globals.HTMLCanvas)});
  2412. //>>excludeEnd("ctx");
  2413. },
  2414. //>>excludeStart("ide", pragmas.excludeIdeData);
  2415. args: [],
  2416. source: "strong\x0a\x09^ self tag: 'strong'",
  2417. referencedClasses: [],
  2418. //>>excludeEnd("ide");
  2419. messageSends: ["tag:"]
  2420. }),
  2421. globals.HTMLCanvas);
  2422. smalltalk.addMethod(
  2423. smalltalk.method({
  2424. selector: "strong:",
  2425. protocol: 'tags',
  2426. fn: function (anObject){
  2427. var self=this;
  2428. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2429. return smalltalk.withContext(function($ctx1) {
  2430. //>>excludeEnd("ctx");
  2431. var $1;
  2432. $1=_st(self._strong())._with_(anObject);
  2433. return $1;
  2434. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2435. }, function($ctx1) {$ctx1.fill(self,"strong:",{anObject:anObject},globals.HTMLCanvas)});
  2436. //>>excludeEnd("ctx");
  2437. },
  2438. //>>excludeStart("ide", pragmas.excludeIdeData);
  2439. args: ["anObject"],
  2440. source: "strong: anObject\x0a\x09^ self strong with: anObject",
  2441. referencedClasses: [],
  2442. //>>excludeEnd("ide");
  2443. messageSends: ["with:", "strong"]
  2444. }),
  2445. globals.HTMLCanvas);
  2446. smalltalk.addMethod(
  2447. smalltalk.method({
  2448. selector: "style",
  2449. protocol: 'tags',
  2450. fn: function (){
  2451. var self=this;
  2452. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2453. return smalltalk.withContext(function($ctx1) {
  2454. //>>excludeEnd("ctx");
  2455. var $1;
  2456. $1=self._tag_("style");
  2457. return $1;
  2458. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2459. }, function($ctx1) {$ctx1.fill(self,"style",{},globals.HTMLCanvas)});
  2460. //>>excludeEnd("ctx");
  2461. },
  2462. //>>excludeStart("ide", pragmas.excludeIdeData);
  2463. args: [],
  2464. source: "style\x0a\x09^ self tag: 'style'",
  2465. referencedClasses: [],
  2466. //>>excludeEnd("ide");
  2467. messageSends: ["tag:"]
  2468. }),
  2469. globals.HTMLCanvas);
  2470. smalltalk.addMethod(
  2471. smalltalk.method({
  2472. selector: "style:",
  2473. protocol: 'tags',
  2474. fn: function (aString){
  2475. var self=this;
  2476. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2477. return smalltalk.withContext(function($ctx1) {
  2478. //>>excludeEnd("ctx");
  2479. var $2,$3,$1;
  2480. $2=self._style();
  2481. _st($2)._with_(aString);
  2482. $3=_st($2)._yourself();
  2483. $1=$3;
  2484. return $1;
  2485. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2486. }, function($ctx1) {$ctx1.fill(self,"style:",{aString:aString},globals.HTMLCanvas)});
  2487. //>>excludeEnd("ctx");
  2488. },
  2489. //>>excludeStart("ide", pragmas.excludeIdeData);
  2490. args: ["aString"],
  2491. source: "style: aString\x0a\x09^ self style with: aString; yourself",
  2492. referencedClasses: [],
  2493. //>>excludeEnd("ide");
  2494. messageSends: ["with:", "style", "yourself"]
  2495. }),
  2496. globals.HTMLCanvas);
  2497. smalltalk.addMethod(
  2498. smalltalk.method({
  2499. selector: "sub",
  2500. protocol: 'tags',
  2501. fn: function (){
  2502. var self=this;
  2503. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2504. return smalltalk.withContext(function($ctx1) {
  2505. //>>excludeEnd("ctx");
  2506. var $1;
  2507. $1=self._tag_("sub");
  2508. return $1;
  2509. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2510. }, function($ctx1) {$ctx1.fill(self,"sub",{},globals.HTMLCanvas)});
  2511. //>>excludeEnd("ctx");
  2512. },
  2513. //>>excludeStart("ide", pragmas.excludeIdeData);
  2514. args: [],
  2515. source: "sub\x0a\x09^ self tag: 'sub'",
  2516. referencedClasses: [],
  2517. //>>excludeEnd("ide");
  2518. messageSends: ["tag:"]
  2519. }),
  2520. globals.HTMLCanvas);
  2521. smalltalk.addMethod(
  2522. smalltalk.method({
  2523. selector: "summary",
  2524. protocol: 'tags',
  2525. fn: function (){
  2526. var self=this;
  2527. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2528. return smalltalk.withContext(function($ctx1) {
  2529. //>>excludeEnd("ctx");
  2530. var $1;
  2531. $1=self._tag_("summary");
  2532. return $1;
  2533. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2534. }, function($ctx1) {$ctx1.fill(self,"summary",{},globals.HTMLCanvas)});
  2535. //>>excludeEnd("ctx");
  2536. },
  2537. //>>excludeStart("ide", pragmas.excludeIdeData);
  2538. args: [],
  2539. source: "summary\x0a\x09^ self tag: 'summary'",
  2540. referencedClasses: [],
  2541. //>>excludeEnd("ide");
  2542. messageSends: ["tag:"]
  2543. }),
  2544. globals.HTMLCanvas);
  2545. smalltalk.addMethod(
  2546. smalltalk.method({
  2547. selector: "sup",
  2548. protocol: 'tags',
  2549. fn: function (){
  2550. var self=this;
  2551. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2552. return smalltalk.withContext(function($ctx1) {
  2553. //>>excludeEnd("ctx");
  2554. var $1;
  2555. $1=self._tag_("sup");
  2556. return $1;
  2557. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2558. }, function($ctx1) {$ctx1.fill(self,"sup",{},globals.HTMLCanvas)});
  2559. //>>excludeEnd("ctx");
  2560. },
  2561. //>>excludeStart("ide", pragmas.excludeIdeData);
  2562. args: [],
  2563. source: "sup\x0a\x09^ self tag: 'sup'",
  2564. referencedClasses: [],
  2565. //>>excludeEnd("ide");
  2566. messageSends: ["tag:"]
  2567. }),
  2568. globals.HTMLCanvas);
  2569. smalltalk.addMethod(
  2570. smalltalk.method({
  2571. selector: "table",
  2572. protocol: 'tags',
  2573. fn: function (){
  2574. var self=this;
  2575. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2576. return smalltalk.withContext(function($ctx1) {
  2577. //>>excludeEnd("ctx");
  2578. var $1;
  2579. $1=self._tag_("table");
  2580. return $1;
  2581. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2582. }, function($ctx1) {$ctx1.fill(self,"table",{},globals.HTMLCanvas)});
  2583. //>>excludeEnd("ctx");
  2584. },
  2585. //>>excludeStart("ide", pragmas.excludeIdeData);
  2586. args: [],
  2587. source: "table\x0a\x09^ self tag: 'table'",
  2588. referencedClasses: [],
  2589. //>>excludeEnd("ide");
  2590. messageSends: ["tag:"]
  2591. }),
  2592. globals.HTMLCanvas);
  2593. smalltalk.addMethod(
  2594. smalltalk.method({
  2595. selector: "tag:",
  2596. protocol: 'tags',
  2597. fn: function (aString){
  2598. var self=this;
  2599. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2600. return smalltalk.withContext(function($ctx1) {
  2601. //>>excludeEnd("ctx");
  2602. var $1;
  2603. $1=_st(self["@root"])._addBrush_(self._newTag_(aString));
  2604. return $1;
  2605. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2606. }, function($ctx1) {$ctx1.fill(self,"tag:",{aString:aString},globals.HTMLCanvas)});
  2607. //>>excludeEnd("ctx");
  2608. },
  2609. //>>excludeStart("ide", pragmas.excludeIdeData);
  2610. args: ["aString"],
  2611. source: "tag: aString\x0a\x09^ root addBrush: (self newTag: aString)",
  2612. referencedClasses: [],
  2613. //>>excludeEnd("ide");
  2614. messageSends: ["addBrush:", "newTag:"]
  2615. }),
  2616. globals.HTMLCanvas);
  2617. smalltalk.addMethod(
  2618. smalltalk.method({
  2619. selector: "tbody",
  2620. protocol: 'tags',
  2621. fn: function (){
  2622. var self=this;
  2623. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2624. return smalltalk.withContext(function($ctx1) {
  2625. //>>excludeEnd("ctx");
  2626. var $1;
  2627. $1=self._tag_("tbody");
  2628. return $1;
  2629. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2630. }, function($ctx1) {$ctx1.fill(self,"tbody",{},globals.HTMLCanvas)});
  2631. //>>excludeEnd("ctx");
  2632. },
  2633. //>>excludeStart("ide", pragmas.excludeIdeData);
  2634. args: [],
  2635. source: "tbody\x0a\x09^ self tag: 'tbody'",
  2636. referencedClasses: [],
  2637. //>>excludeEnd("ide");
  2638. messageSends: ["tag:"]
  2639. }),
  2640. globals.HTMLCanvas);
  2641. smalltalk.addMethod(
  2642. smalltalk.method({
  2643. selector: "td",
  2644. protocol: 'tags',
  2645. fn: function (){
  2646. var self=this;
  2647. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2648. return smalltalk.withContext(function($ctx1) {
  2649. //>>excludeEnd("ctx");
  2650. var $1;
  2651. $1=self._tag_("td");
  2652. return $1;
  2653. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2654. }, function($ctx1) {$ctx1.fill(self,"td",{},globals.HTMLCanvas)});
  2655. //>>excludeEnd("ctx");
  2656. },
  2657. //>>excludeStart("ide", pragmas.excludeIdeData);
  2658. args: [],
  2659. source: "td\x0a\x09^ self tag: 'td'",
  2660. referencedClasses: [],
  2661. //>>excludeEnd("ide");
  2662. messageSends: ["tag:"]
  2663. }),
  2664. globals.HTMLCanvas);
  2665. smalltalk.addMethod(
  2666. smalltalk.method({
  2667. selector: "textarea",
  2668. protocol: 'tags',
  2669. fn: function (){
  2670. var self=this;
  2671. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2672. return smalltalk.withContext(function($ctx1) {
  2673. //>>excludeEnd("ctx");
  2674. var $1;
  2675. $1=self._tag_("textarea");
  2676. return $1;
  2677. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2678. }, function($ctx1) {$ctx1.fill(self,"textarea",{},globals.HTMLCanvas)});
  2679. //>>excludeEnd("ctx");
  2680. },
  2681. //>>excludeStart("ide", pragmas.excludeIdeData);
  2682. args: [],
  2683. source: "textarea\x0a\x09^ self tag: 'textarea'",
  2684. referencedClasses: [],
  2685. //>>excludeEnd("ide");
  2686. messageSends: ["tag:"]
  2687. }),
  2688. globals.HTMLCanvas);
  2689. smalltalk.addMethod(
  2690. smalltalk.method({
  2691. selector: "tfoot",
  2692. protocol: 'tags',
  2693. fn: function (){
  2694. var self=this;
  2695. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2696. return smalltalk.withContext(function($ctx1) {
  2697. //>>excludeEnd("ctx");
  2698. var $1;
  2699. $1=self._tag_("tfoot");
  2700. return $1;
  2701. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2702. }, function($ctx1) {$ctx1.fill(self,"tfoot",{},globals.HTMLCanvas)});
  2703. //>>excludeEnd("ctx");
  2704. },
  2705. //>>excludeStart("ide", pragmas.excludeIdeData);
  2706. args: [],
  2707. source: "tfoot\x0a\x09^ self tag: 'tfoot'",
  2708. referencedClasses: [],
  2709. //>>excludeEnd("ide");
  2710. messageSends: ["tag:"]
  2711. }),
  2712. globals.HTMLCanvas);
  2713. smalltalk.addMethod(
  2714. smalltalk.method({
  2715. selector: "th",
  2716. protocol: 'tags',
  2717. fn: function (){
  2718. var self=this;
  2719. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2720. return smalltalk.withContext(function($ctx1) {
  2721. //>>excludeEnd("ctx");
  2722. var $1;
  2723. $1=self._tag_("th");
  2724. return $1;
  2725. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2726. }, function($ctx1) {$ctx1.fill(self,"th",{},globals.HTMLCanvas)});
  2727. //>>excludeEnd("ctx");
  2728. },
  2729. //>>excludeStart("ide", pragmas.excludeIdeData);
  2730. args: [],
  2731. source: "th\x0a\x09^ self tag: 'th'",
  2732. referencedClasses: [],
  2733. //>>excludeEnd("ide");
  2734. messageSends: ["tag:"]
  2735. }),
  2736. globals.HTMLCanvas);
  2737. smalltalk.addMethod(
  2738. smalltalk.method({
  2739. selector: "thead",
  2740. protocol: 'tags',
  2741. fn: function (){
  2742. var self=this;
  2743. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2744. return smalltalk.withContext(function($ctx1) {
  2745. //>>excludeEnd("ctx");
  2746. var $1;
  2747. $1=self._tag_("thead");
  2748. return $1;
  2749. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2750. }, function($ctx1) {$ctx1.fill(self,"thead",{},globals.HTMLCanvas)});
  2751. //>>excludeEnd("ctx");
  2752. },
  2753. //>>excludeStart("ide", pragmas.excludeIdeData);
  2754. args: [],
  2755. source: "thead\x0a\x09^ self tag: 'thead'",
  2756. referencedClasses: [],
  2757. //>>excludeEnd("ide");
  2758. messageSends: ["tag:"]
  2759. }),
  2760. globals.HTMLCanvas);
  2761. smalltalk.addMethod(
  2762. smalltalk.method({
  2763. selector: "time",
  2764. protocol: 'tags',
  2765. fn: function (){
  2766. var self=this;
  2767. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2768. return smalltalk.withContext(function($ctx1) {
  2769. //>>excludeEnd("ctx");
  2770. var $1;
  2771. $1=self._tag_("time");
  2772. return $1;
  2773. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2774. }, function($ctx1) {$ctx1.fill(self,"time",{},globals.HTMLCanvas)});
  2775. //>>excludeEnd("ctx");
  2776. },
  2777. //>>excludeStart("ide", pragmas.excludeIdeData);
  2778. args: [],
  2779. source: "time\x0a\x09^ self tag: 'time'",
  2780. referencedClasses: [],
  2781. //>>excludeEnd("ide");
  2782. messageSends: ["tag:"]
  2783. }),
  2784. globals.HTMLCanvas);
  2785. smalltalk.addMethod(
  2786. smalltalk.method({
  2787. selector: "title",
  2788. protocol: 'tags',
  2789. fn: function (){
  2790. var self=this;
  2791. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2792. return smalltalk.withContext(function($ctx1) {
  2793. //>>excludeEnd("ctx");
  2794. var $1;
  2795. $1=self._tag_("title");
  2796. return $1;
  2797. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2798. }, function($ctx1) {$ctx1.fill(self,"title",{},globals.HTMLCanvas)});
  2799. //>>excludeEnd("ctx");
  2800. },
  2801. //>>excludeStart("ide", pragmas.excludeIdeData);
  2802. args: [],
  2803. source: "title\x0a\x09^ self tag: 'title'",
  2804. referencedClasses: [],
  2805. //>>excludeEnd("ide");
  2806. messageSends: ["tag:"]
  2807. }),
  2808. globals.HTMLCanvas);
  2809. smalltalk.addMethod(
  2810. smalltalk.method({
  2811. selector: "tr",
  2812. protocol: 'tags',
  2813. fn: function (){
  2814. var self=this;
  2815. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2816. return smalltalk.withContext(function($ctx1) {
  2817. //>>excludeEnd("ctx");
  2818. var $1;
  2819. $1=self._tag_("tr");
  2820. return $1;
  2821. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2822. }, function($ctx1) {$ctx1.fill(self,"tr",{},globals.HTMLCanvas)});
  2823. //>>excludeEnd("ctx");
  2824. },
  2825. //>>excludeStart("ide", pragmas.excludeIdeData);
  2826. args: [],
  2827. source: "tr\x0a\x09^ self tag: 'tr'",
  2828. referencedClasses: [],
  2829. //>>excludeEnd("ide");
  2830. messageSends: ["tag:"]
  2831. }),
  2832. globals.HTMLCanvas);
  2833. smalltalk.addMethod(
  2834. smalltalk.method({
  2835. selector: "ul",
  2836. protocol: 'tags',
  2837. fn: function (){
  2838. var self=this;
  2839. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2840. return smalltalk.withContext(function($ctx1) {
  2841. //>>excludeEnd("ctx");
  2842. var $1;
  2843. $1=self._tag_("ul");
  2844. return $1;
  2845. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2846. }, function($ctx1) {$ctx1.fill(self,"ul",{},globals.HTMLCanvas)});
  2847. //>>excludeEnd("ctx");
  2848. },
  2849. //>>excludeStart("ide", pragmas.excludeIdeData);
  2850. args: [],
  2851. source: "ul\x0a\x09^ self tag: 'ul'",
  2852. referencedClasses: [],
  2853. //>>excludeEnd("ide");
  2854. messageSends: ["tag:"]
  2855. }),
  2856. globals.HTMLCanvas);
  2857. smalltalk.addMethod(
  2858. smalltalk.method({
  2859. selector: "ul:",
  2860. protocol: 'tags',
  2861. fn: function (anObject){
  2862. var self=this;
  2863. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2864. return smalltalk.withContext(function($ctx1) {
  2865. //>>excludeEnd("ctx");
  2866. var $1;
  2867. $1=_st(self._ul())._with_(anObject);
  2868. return $1;
  2869. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2870. }, function($ctx1) {$ctx1.fill(self,"ul:",{anObject:anObject},globals.HTMLCanvas)});
  2871. //>>excludeEnd("ctx");
  2872. },
  2873. //>>excludeStart("ide", pragmas.excludeIdeData);
  2874. args: ["anObject"],
  2875. source: "ul: anObject\x0a\x09^ self ul with: anObject",
  2876. referencedClasses: [],
  2877. //>>excludeEnd("ide");
  2878. messageSends: ["with:", "ul"]
  2879. }),
  2880. globals.HTMLCanvas);
  2881. smalltalk.addMethod(
  2882. smalltalk.method({
  2883. selector: "video",
  2884. protocol: 'tags',
  2885. fn: function (){
  2886. var self=this;
  2887. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2888. return smalltalk.withContext(function($ctx1) {
  2889. //>>excludeEnd("ctx");
  2890. var $1;
  2891. $1=self._tag_("video");
  2892. return $1;
  2893. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2894. }, function($ctx1) {$ctx1.fill(self,"video",{},globals.HTMLCanvas)});
  2895. //>>excludeEnd("ctx");
  2896. },
  2897. //>>excludeStart("ide", pragmas.excludeIdeData);
  2898. args: [],
  2899. source: "video\x0a\x09^ self tag: 'video'",
  2900. referencedClasses: [],
  2901. //>>excludeEnd("ide");
  2902. messageSends: ["tag:"]
  2903. }),
  2904. globals.HTMLCanvas);
  2905. smalltalk.addMethod(
  2906. smalltalk.method({
  2907. selector: "with:",
  2908. protocol: 'adding',
  2909. fn: function (anObject){
  2910. var self=this;
  2911. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2912. return smalltalk.withContext(function($ctx1) {
  2913. //>>excludeEnd("ctx");
  2914. var $1;
  2915. $1=_st(self._root())._with_(anObject);
  2916. return $1;
  2917. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2918. }, function($ctx1) {$ctx1.fill(self,"with:",{anObject:anObject},globals.HTMLCanvas)});
  2919. //>>excludeEnd("ctx");
  2920. },
  2921. //>>excludeStart("ide", pragmas.excludeIdeData);
  2922. args: ["anObject"],
  2923. source: "with: anObject\x0a\x09^ self root with: anObject",
  2924. referencedClasses: [],
  2925. //>>excludeEnd("ide");
  2926. messageSends: ["with:", "root"]
  2927. }),
  2928. globals.HTMLCanvas);
  2929. smalltalk.addMethod(
  2930. smalltalk.method({
  2931. selector: "initialize",
  2932. protocol: 'initialization',
  2933. fn: function (){
  2934. var self=this;
  2935. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2936. return smalltalk.withContext(function($ctx1) {
  2937. //>>excludeEnd("ctx");
  2938. _st(jQuery)._basicAt_put_("allowJavaScriptCalls",true);
  2939. return self;
  2940. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2941. }, function($ctx1) {$ctx1.fill(self,"initialize",{},globals.HTMLCanvas.klass)});
  2942. //>>excludeEnd("ctx");
  2943. },
  2944. //>>excludeStart("ide", pragmas.excludeIdeData);
  2945. args: [],
  2946. source: "initialize\x0a\x09\x22Allow JS method calls for the jQuery object.\x0a\x09See boot.js DNU handling.\x22\x0a\x09\x0a\x09jQuery basicAt: 'allowJavaScriptCalls' put: true",
  2947. referencedClasses: [],
  2948. //>>excludeEnd("ide");
  2949. messageSends: ["basicAt:put:"]
  2950. }),
  2951. globals.HTMLCanvas.klass);
  2952. smalltalk.addMethod(
  2953. smalltalk.method({
  2954. selector: "onJQuery:",
  2955. protocol: 'instance creation',
  2956. fn: function (aJQuery){
  2957. var self=this;
  2958. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2959. return smalltalk.withContext(function($ctx1) {
  2960. //>>excludeEnd("ctx");
  2961. var $2,$3,$1;
  2962. $2=self._basicNew();
  2963. _st($2)._initializeFromJQuery_(aJQuery);
  2964. _st($2)._initialize();
  2965. $3=_st($2)._yourself();
  2966. $1=$3;
  2967. return $1;
  2968. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2969. }, function($ctx1) {$ctx1.fill(self,"onJQuery:",{aJQuery:aJQuery},globals.HTMLCanvas.klass)});
  2970. //>>excludeEnd("ctx");
  2971. },
  2972. //>>excludeStart("ide", pragmas.excludeIdeData);
  2973. args: ["aJQuery"],
  2974. source: "onJQuery: aJQuery\x0a\x09^ self basicNew\x0a\x09\x09initializeFromJQuery: aJQuery;\x0a\x09\x09initialize;\x0a\x09\x09yourself",
  2975. referencedClasses: [],
  2976. //>>excludeEnd("ide");
  2977. messageSends: ["initializeFromJQuery:", "basicNew", "initialize", "yourself"]
  2978. }),
  2979. globals.HTMLCanvas.klass);
  2980. smalltalk.addClass('HTMLSnippet', globals.Object, ['snippets'], 'Web');
  2981. //>>excludeStart("ide", pragmas.excludeIdeData);
  2982. globals.HTMLSnippet.comment="My sole instance is the registry of html snippets.\x0a`HTMLSnippet current` is the public singleton instance.\x0a\x0aOn startup, it scans the document for any html elements\x0awith `'data-snippet=\x22foo\x22'` attribute and takes them off the document,\x0aremembering them in the store under the specified name.\x0aIt also install method #foo into HTMLCanvas dynamically.\x0a\x0aEvery html snippet should mark a 'caret', a place where contents\x0acan be inserted, by 'data-snippet=\x22*\x22' (a special name for caret).\x0aFor example:\x0a\x0a`<li data-snippet='menuelement' class='...'><a data-snippet='*'></a></li>`\x0a\x0adefines a list element with a link inside; the link itself is marked as a caret.\x0a\x0aYou can later issue\x0a\x0a`html menuelement href: '/foo'; with: 'A foo'`\x0a\x0ato insert the whole snippet and directly manipulate the caret, so it renders:\x0a\x0a`<li class='...'><a href='/foo'>A foo</a></li>`\x0a\x0aFor a self-careting tags (not very useful, but you do not need to fill class etc.\x0ayou can use\x0a\x0a`<div class='lots of classes' attr1='one' attr2='two' data-snippet='*bar'></div>`\x0a\x0aand in code later do:\x0a\x0a`html bar with: [ xxx ]`\x0a\x0ato render\x0a\x0a`<div class='lots of classes' attr1='one' attr2='two'>...added by xxx...</div>`";
  2983. //>>excludeEnd("ide");
  2984. smalltalk.addMethod(
  2985. smalltalk.method({
  2986. selector: "initializeFromJQuery:",
  2987. protocol: 'initialization',
  2988. fn: function (aJQuery){
  2989. var self=this;
  2990. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2991. return smalltalk.withContext(function($ctx1) {
  2992. //>>excludeEnd("ctx");
  2993. _st(self._snippetsFromJQuery_(aJQuery))._do_((function(each){
  2994. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2995. return smalltalk.withContext(function($ctx2) {
  2996. //>>excludeEnd("ctx");
  2997. return self._installSnippetFromJQuery_(_st(each)._asJQuery());
  2998. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2999. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1,1)});
  3000. //>>excludeEnd("ctx");
  3001. }));
  3002. return self;
  3003. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3004. }, function($ctx1) {$ctx1.fill(self,"initializeFromJQuery:",{aJQuery:aJQuery},globals.HTMLSnippet)});
  3005. //>>excludeEnd("ctx");
  3006. },
  3007. //>>excludeStart("ide", pragmas.excludeIdeData);
  3008. args: ["aJQuery"],
  3009. 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 ]",
  3010. referencedClasses: [],
  3011. //>>excludeEnd("ide");
  3012. messageSends: ["do:", "snippetsFromJQuery:", "installSnippetFromJQuery:", "asJQuery"]
  3013. }),
  3014. globals.HTMLSnippet);
  3015. smalltalk.addMethod(
  3016. smalltalk.method({
  3017. selector: "installSnippetFromJQuery:",
  3018. protocol: 'snippet installation',
  3019. fn: function (element){
  3020. var self=this;
  3021. var name;
  3022. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3023. return smalltalk.withContext(function($ctx1) {
  3024. //>>excludeEnd("ctx");
  3025. var $1,$2;
  3026. name=_st(element)._attr_("data-snippet");
  3027. $1=_st(name).__eq("*");
  3028. if(! smalltalk.assert($1)){
  3029. $2=_st("^\x5c*"._asRegexp())._test_(name);
  3030. if(smalltalk.assert($2)){
  3031. name=_st(name)._allButFirst();
  3032. name;
  3033. _st(element)._attr_put_("data-snippet","*");
  3034. } else {
  3035. _st(element)._removeAttr_("data-snippet");
  3036. };
  3037. self._snippetAt_install_(name,_st(_st(element)._detach())._get_((0)));
  3038. };
  3039. return self;
  3040. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3041. }, function($ctx1) {$ctx1.fill(self,"installSnippetFromJQuery:",{element:element,name:name},globals.HTMLSnippet)});
  3042. //>>excludeEnd("ctx");
  3043. },
  3044. //>>excludeStart("ide", pragmas.excludeIdeData);
  3045. args: ["element"],
  3046. 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) ]",
  3047. referencedClasses: [],
  3048. //>>excludeEnd("ide");
  3049. messageSends: ["attr:", "ifFalse:", "=", "ifTrue:ifFalse:", "test:", "asRegexp", "allButFirst", "attr:put:", "removeAttr:", "snippetAt:install:", "get:", "detach"]
  3050. }),
  3051. globals.HTMLSnippet);
  3052. smalltalk.addMethod(
  3053. smalltalk.method({
  3054. selector: "snippetAt:",
  3055. protocol: 'accessing',
  3056. fn: function (aString){
  3057. var self=this;
  3058. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3059. return smalltalk.withContext(function($ctx1) {
  3060. //>>excludeEnd("ctx");
  3061. var $1;
  3062. $1=_st(self._snippets())._at_(aString);
  3063. return $1;
  3064. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3065. }, function($ctx1) {$ctx1.fill(self,"snippetAt:",{aString:aString},globals.HTMLSnippet)});
  3066. //>>excludeEnd("ctx");
  3067. },
  3068. //>>excludeStart("ide", pragmas.excludeIdeData);
  3069. args: ["aString"],
  3070. source: "snippetAt: aString\x0a\x09^ self snippets at: aString",
  3071. referencedClasses: [],
  3072. //>>excludeEnd("ide");
  3073. messageSends: ["at:", "snippets"]
  3074. }),
  3075. globals.HTMLSnippet);
  3076. smalltalk.addMethod(
  3077. smalltalk.method({
  3078. selector: "snippetAt:compile:",
  3079. protocol: 'method generation',
  3080. fn: function (aString,anElement){
  3081. var self=this;
  3082. function $ClassBuilder(){return globals.ClassBuilder||(typeof ClassBuilder=="undefined"?nil:ClassBuilder)}
  3083. function $HTMLCanvas(){return globals.HTMLCanvas||(typeof HTMLCanvas=="undefined"?nil:HTMLCanvas)}
  3084. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3085. return smalltalk.withContext(function($ctx1) {
  3086. //>>excludeEnd("ctx");
  3087. _st(_st($ClassBuilder())._new())._installMethod_forClass_protocol_(_st(_st((function(htmlReceiver){
  3088. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3089. return smalltalk.withContext(function($ctx2) {
  3090. //>>excludeEnd("ctx");
  3091. return _st(htmlReceiver)._snippet_(anElement);
  3092. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3093. }, function($ctx2) {$ctx2.fillBlock({htmlReceiver:htmlReceiver},$ctx1,1)});
  3094. //>>excludeEnd("ctx");
  3095. }))._currySelf())._asCompiledMethod_(aString),$HTMLCanvas(),"**snippets");
  3096. return self;
  3097. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3098. }, function($ctx1) {$ctx1.fill(self,"snippetAt:compile:",{aString:aString,anElement:anElement},globals.HTMLSnippet)});
  3099. //>>excludeEnd("ctx");
  3100. },
  3101. //>>excludeStart("ide", pragmas.excludeIdeData);
  3102. args: ["aString", "anElement"],
  3103. source: "snippetAt: aString compile: anElement\x0a\x09\x22Method generation for the snippet.\x0a\x09The selector is aString, the method block uses anElement\x22\x0a\x09\x0a\x09ClassBuilder new\x0a\x09\x09installMethod: ([ :htmlReceiver | htmlReceiver snippet: anElement ]\x0a\x09\x09\x09currySelf asCompiledMethod: aString)\x0a\x09\x09forClass: HTMLCanvas\x0a\x09\x09protocol: '**snippets'",
  3104. referencedClasses: ["ClassBuilder", "HTMLCanvas"],
  3105. //>>excludeEnd("ide");
  3106. messageSends: ["installMethod:forClass:protocol:", "new", "asCompiledMethod:", "currySelf", "snippet:"]
  3107. }),
  3108. globals.HTMLSnippet);
  3109. smalltalk.addMethod(
  3110. smalltalk.method({
  3111. selector: "snippetAt:install:",
  3112. protocol: 'snippet installation',
  3113. fn: function (aString,anElement){
  3114. var self=this;
  3115. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3116. return smalltalk.withContext(function($ctx1) {
  3117. //>>excludeEnd("ctx");
  3118. _st(self._snippets())._at_put_(aString,anElement);
  3119. self._snippetAt_compile_(aString,anElement);
  3120. return self;
  3121. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3122. }, function($ctx1) {$ctx1.fill(self,"snippetAt:install:",{aString:aString,anElement:anElement},globals.HTMLSnippet)});
  3123. //>>excludeEnd("ctx");
  3124. },
  3125. //>>excludeStart("ide", pragmas.excludeIdeData);
  3126. args: ["aString", "anElement"],
  3127. source: "snippetAt: aString install: anElement\x0a\x09self snippets at: aString put: anElement.\x0a\x09self snippetAt: aString compile: anElement",
  3128. referencedClasses: [],
  3129. //>>excludeEnd("ide");
  3130. messageSends: ["at:put:", "snippets", "snippetAt:compile:"]
  3131. }),
  3132. globals.HTMLSnippet);
  3133. smalltalk.addMethod(
  3134. smalltalk.method({
  3135. selector: "snippets",
  3136. protocol: 'accessing',
  3137. fn: function (){
  3138. var self=this;
  3139. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3140. return smalltalk.withContext(function($ctx1) {
  3141. //>>excludeEnd("ctx");
  3142. var $2,$1,$receiver;
  3143. $2=self["@snippets"];
  3144. if(($receiver = $2) == null || $receiver.isNil){
  3145. self["@snippets"]=globals.HashedCollection._newFromPairs_([]);
  3146. $1=self["@snippets"];
  3147. } else {
  3148. $1=$2;
  3149. };
  3150. return $1;
  3151. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3152. }, function($ctx1) {$ctx1.fill(self,"snippets",{},globals.HTMLSnippet)});
  3153. //>>excludeEnd("ctx");
  3154. },
  3155. //>>excludeStart("ide", pragmas.excludeIdeData);
  3156. args: [],
  3157. source: "snippets\x0a\x09^ snippets ifNil: [ snippets := #{} ]",
  3158. referencedClasses: [],
  3159. //>>excludeEnd("ide");
  3160. messageSends: ["ifNil:"]
  3161. }),
  3162. globals.HTMLSnippet);
  3163. smalltalk.addMethod(
  3164. smalltalk.method({
  3165. selector: "snippetsFromJQuery:",
  3166. protocol: 'private',
  3167. fn: function (aJQuery){
  3168. var self=this;
  3169. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3170. return smalltalk.withContext(function($ctx1) {
  3171. //>>excludeEnd("ctx");
  3172. var $1;
  3173. $1=_st(_st(aJQuery)._find_("[data-snippet]"))._toArray();
  3174. return $1;
  3175. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3176. }, function($ctx1) {$ctx1.fill(self,"snippetsFromJQuery:",{aJQuery:aJQuery},globals.HTMLSnippet)});
  3177. //>>excludeEnd("ctx");
  3178. },
  3179. //>>excludeStart("ide", pragmas.excludeIdeData);
  3180. args: ["aJQuery"],
  3181. source: "snippetsFromJQuery: aJQuery\x0a\x09^ (aJQuery find: '[data-snippet]') toArray",
  3182. referencedClasses: [],
  3183. //>>excludeEnd("ide");
  3184. messageSends: ["toArray", "find:"]
  3185. }),
  3186. globals.HTMLSnippet);
  3187. globals.HTMLSnippet.klass.iVarNames = ['current'];
  3188. smalltalk.addMethod(
  3189. smalltalk.method({
  3190. selector: "current",
  3191. protocol: 'instance creation',
  3192. fn: function (){
  3193. var self=this;
  3194. var $1;
  3195. $1=self["@current"];
  3196. return $1;
  3197. },
  3198. //>>excludeStart("ide", pragmas.excludeIdeData);
  3199. args: [],
  3200. source: "current\x0a\x09^ current",
  3201. referencedClasses: [],
  3202. //>>excludeEnd("ide");
  3203. messageSends: []
  3204. }),
  3205. globals.HTMLSnippet.klass);
  3206. smalltalk.addMethod(
  3207. smalltalk.method({
  3208. selector: "ensureCurrent",
  3209. protocol: 'initialization',
  3210. fn: function (){
  3211. var self=this;
  3212. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3213. return smalltalk.withContext(function($ctx1) {
  3214. //>>excludeEnd("ctx");
  3215. var $1,$2,$3,$receiver;
  3216. $1=self["@current"];
  3217. if(($receiver = $1) == null || $receiver.isNil){
  3218. $2=(
  3219. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3220. $ctx1.supercall = true,
  3221. //>>excludeEnd("ctx");
  3222. globals.HTMLSnippet.klass.superclass.fn.prototype._new.apply(_st(self), []));
  3223. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3224. $ctx1.supercall = false;
  3225. //>>excludeEnd("ctx");;
  3226. _st($2)._initializeFromJQuery_(_st(document)._asJQuery());
  3227. $3=_st($2)._yourself();
  3228. self["@current"]=$3;
  3229. self["@current"];
  3230. } else {
  3231. $1;
  3232. };
  3233. return self;
  3234. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3235. }, function($ctx1) {$ctx1.fill(self,"ensureCurrent",{},globals.HTMLSnippet.klass)});
  3236. //>>excludeEnd("ctx");
  3237. },
  3238. //>>excludeStart("ide", pragmas.excludeIdeData);
  3239. args: [],
  3240. source: "ensureCurrent\x0a\x09current ifNil: [\x0a\x09\x09current := super new\x0a\x09\x09\x09initializeFromJQuery: document asJQuery;\x0a\x09\x09\x09yourself ]",
  3241. referencedClasses: [],
  3242. //>>excludeEnd("ide");
  3243. messageSends: ["ifNil:", "initializeFromJQuery:", "new", "asJQuery", "yourself"]
  3244. }),
  3245. globals.HTMLSnippet.klass);
  3246. smalltalk.addMethod(
  3247. smalltalk.method({
  3248. selector: "initialize",
  3249. protocol: 'initialization',
  3250. fn: function (){
  3251. var self=this;
  3252. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3253. return smalltalk.withContext(function($ctx1) {
  3254. //>>excludeEnd("ctx");
  3255. var $1;
  3256. (
  3257. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3258. $ctx1.supercall = true,
  3259. //>>excludeEnd("ctx");
  3260. globals.HTMLSnippet.klass.superclass.fn.prototype._initialize.apply(_st(self), []));
  3261. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3262. $ctx1.supercall = false;
  3263. //>>excludeEnd("ctx");;
  3264. $1=self._isDOMAvailable();
  3265. if(smalltalk.assert($1)){
  3266. self._ensureCurrent();
  3267. };
  3268. return self;
  3269. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3270. }, function($ctx1) {$ctx1.fill(self,"initialize",{},globals.HTMLSnippet.klass)});
  3271. //>>excludeEnd("ctx");
  3272. },
  3273. //>>excludeStart("ide", pragmas.excludeIdeData);
  3274. args: [],
  3275. source: "initialize\x0a\x09super initialize.\x0a\x09self isDOMAvailable ifTrue: [\x0a\x09\x09self ensureCurrent ]",
  3276. referencedClasses: [],
  3277. //>>excludeEnd("ide");
  3278. messageSends: ["initialize", "ifTrue:", "isDOMAvailable", "ensureCurrent"]
  3279. }),
  3280. globals.HTMLSnippet.klass);
  3281. smalltalk.addMethod(
  3282. smalltalk.method({
  3283. selector: "isDOMAvailable",
  3284. protocol: 'instance creation',
  3285. fn: function (){
  3286. var self=this;
  3287. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3288. return smalltalk.withContext(function($ctx1) {
  3289. //>>excludeEnd("ctx");
  3290. return typeof document !== 'undefined' ;
  3291. return self;
  3292. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3293. }, function($ctx1) {$ctx1.fill(self,"isDOMAvailable",{},globals.HTMLSnippet.klass)});
  3294. //>>excludeEnd("ctx");
  3295. },
  3296. //>>excludeStart("ide", pragmas.excludeIdeData);
  3297. args: [],
  3298. source: "isDOMAvailable\x0a\x09< return typeof document !== 'undefined' >",
  3299. referencedClasses: [],
  3300. //>>excludeEnd("ide");
  3301. messageSends: []
  3302. }),
  3303. globals.HTMLSnippet.klass);
  3304. smalltalk.addMethod(
  3305. smalltalk.method({
  3306. selector: "new",
  3307. protocol: 'instance creation',
  3308. fn: function (){
  3309. var self=this;
  3310. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3311. return smalltalk.withContext(function($ctx1) {
  3312. //>>excludeEnd("ctx");
  3313. self._shouldNotImplement();
  3314. return self;
  3315. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3316. }, function($ctx1) {$ctx1.fill(self,"new",{},globals.HTMLSnippet.klass)});
  3317. //>>excludeEnd("ctx");
  3318. },
  3319. //>>excludeStart("ide", pragmas.excludeIdeData);
  3320. args: [],
  3321. source: "new\x0a\x09self shouldNotImplement",
  3322. referencedClasses: [],
  3323. //>>excludeEnd("ide");
  3324. messageSends: ["shouldNotImplement"]
  3325. }),
  3326. globals.HTMLSnippet.klass);
  3327. smalltalk.addClass('TagBrush', globals.Object, ['canvas', 'element'], 'Web');
  3328. //>>excludeStart("ide", pragmas.excludeIdeData);
  3329. globals.TagBrush.comment="I am a brush for building a single DOM element (which I hold onto).\x0a\x0aAll tags but `<style>` are instances of me (see the `StyleBrush` class).\x0a\x0a## API\x0a\x0a1. Nesting\x0a\x0a Use `#with:` to nest tags. `#with:` can take aString, `TagBrush` instance, a `Widget` or block closure as parameter.\x0a\x0a Example: `aTag with: aString with: aCanvas div`\x0a\x0a2. Events\x0a\x0a The `events` protocol contains all methods related to events (delegating event handling to jQuery).\x0a\x0a Example: `aTag onClick: [ window alert: 'clicked' ]`\x0a\x0a3. Attributes\x0a\x0a The `attribute` protocol contains methods for attribute manipulation (delegating to jQuery too).\x0a\x0a Example: `aTag at: 'value' put: 'hello world'`\x0a\x0a4. Raw access and jQuery\x0a\x0a The `#element` method can be used to access to JavaScript DOM element object.\x0a\x0a Example: `aTag element cssStyle`\x0a\x0a Use `#asJQuery` to access to the receiver converted into a jQuery object.\x0a\x0a Example: `aTag asJQuery css: 'color' value: 'red'`";
  3330. //>>excludeEnd("ide");
  3331. smalltalk.addMethod(
  3332. smalltalk.method({
  3333. selector: "accesskey:",
  3334. protocol: 'attributes',
  3335. fn: function (aString){
  3336. var self=this;
  3337. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3338. return smalltalk.withContext(function($ctx1) {
  3339. //>>excludeEnd("ctx");
  3340. self._at_put_("accesskey",aString);
  3341. return self;
  3342. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3343. }, function($ctx1) {$ctx1.fill(self,"accesskey:",{aString:aString},globals.TagBrush)});
  3344. //>>excludeEnd("ctx");
  3345. },
  3346. //>>excludeStart("ide", pragmas.excludeIdeData);
  3347. args: ["aString"],
  3348. source: "accesskey: aString\x0a\x09self at: 'accesskey' put: aString",
  3349. referencedClasses: [],
  3350. //>>excludeEnd("ide");
  3351. messageSends: ["at:put:"]
  3352. }),
  3353. globals.TagBrush);
  3354. smalltalk.addMethod(
  3355. smalltalk.method({
  3356. selector: "action:",
  3357. protocol: 'attributes',
  3358. fn: function (aString){
  3359. var self=this;
  3360. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3361. return smalltalk.withContext(function($ctx1) {
  3362. //>>excludeEnd("ctx");
  3363. self._at_put_("action",aString);
  3364. return self;
  3365. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3366. }, function($ctx1) {$ctx1.fill(self,"action:",{aString:aString},globals.TagBrush)});
  3367. //>>excludeEnd("ctx");
  3368. },
  3369. //>>excludeStart("ide", pragmas.excludeIdeData);
  3370. args: ["aString"],
  3371. source: "action: aString\x0a\x09self at: 'action' put: aString",
  3372. referencedClasses: [],
  3373. //>>excludeEnd("ide");
  3374. messageSends: ["at:put:"]
  3375. }),
  3376. globals.TagBrush);
  3377. smalltalk.addMethod(
  3378. smalltalk.method({
  3379. selector: "addBrush:",
  3380. protocol: 'adding',
  3381. fn: function (aTagBrush){
  3382. var self=this;
  3383. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3384. return smalltalk.withContext(function($ctx1) {
  3385. //>>excludeEnd("ctx");
  3386. self._appendChild_(_st(aTagBrush)._element());
  3387. return aTagBrush;
  3388. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3389. }, function($ctx1) {$ctx1.fill(self,"addBrush:",{aTagBrush:aTagBrush},globals.TagBrush)});
  3390. //>>excludeEnd("ctx");
  3391. },
  3392. //>>excludeStart("ide", pragmas.excludeIdeData);
  3393. args: ["aTagBrush"],
  3394. source: "addBrush: aTagBrush\x0a\x09self appendChild: aTagBrush element.\x0a\x09^ aTagBrush",
  3395. referencedClasses: [],
  3396. //>>excludeEnd("ide");
  3397. messageSends: ["appendChild:", "element"]
  3398. }),
  3399. globals.TagBrush);
  3400. smalltalk.addMethod(
  3401. smalltalk.method({
  3402. selector: "align:",
  3403. protocol: 'attributes',
  3404. fn: function (aString){
  3405. var self=this;
  3406. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3407. return smalltalk.withContext(function($ctx1) {
  3408. //>>excludeEnd("ctx");
  3409. self._at_put_("align",aString);
  3410. return self;
  3411. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3412. }, function($ctx1) {$ctx1.fill(self,"align:",{aString:aString},globals.TagBrush)});
  3413. //>>excludeEnd("ctx");
  3414. },
  3415. //>>excludeStart("ide", pragmas.excludeIdeData);
  3416. args: ["aString"],
  3417. source: "align: aString\x0a\x09self at: 'align' put: aString",
  3418. referencedClasses: [],
  3419. //>>excludeEnd("ide");
  3420. messageSends: ["at:put:"]
  3421. }),
  3422. globals.TagBrush);
  3423. smalltalk.addMethod(
  3424. smalltalk.method({
  3425. selector: "alt:",
  3426. protocol: 'attributes',
  3427. fn: function (aString){
  3428. var self=this;
  3429. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3430. return smalltalk.withContext(function($ctx1) {
  3431. //>>excludeEnd("ctx");
  3432. self._at_put_("alt",aString);
  3433. return self;
  3434. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3435. }, function($ctx1) {$ctx1.fill(self,"alt:",{aString:aString},globals.TagBrush)});
  3436. //>>excludeEnd("ctx");
  3437. },
  3438. //>>excludeStart("ide", pragmas.excludeIdeData);
  3439. args: ["aString"],
  3440. source: "alt: aString\x0a\x09self at: 'alt' put: aString",
  3441. referencedClasses: [],
  3442. //>>excludeEnd("ide");
  3443. messageSends: ["at:put:"]
  3444. }),
  3445. globals.TagBrush);
  3446. smalltalk.addMethod(
  3447. smalltalk.method({
  3448. selector: "append:",
  3449. protocol: 'adding',
  3450. fn: function (anObject){
  3451. var self=this;
  3452. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3453. return smalltalk.withContext(function($ctx1) {
  3454. //>>excludeEnd("ctx");
  3455. _st(anObject)._appendToBrush_(self);
  3456. return self;
  3457. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3458. }, function($ctx1) {$ctx1.fill(self,"append:",{anObject:anObject},globals.TagBrush)});
  3459. //>>excludeEnd("ctx");
  3460. },
  3461. //>>excludeStart("ide", pragmas.excludeIdeData);
  3462. args: ["anObject"],
  3463. source: "append: anObject\x0a\x09anObject appendToBrush: self",
  3464. referencedClasses: [],
  3465. //>>excludeEnd("ide");
  3466. messageSends: ["appendToBrush:"]
  3467. }),
  3468. globals.TagBrush);
  3469. smalltalk.addMethod(
  3470. smalltalk.method({
  3471. selector: "appendBlock:",
  3472. protocol: 'adding',
  3473. fn: function (aBlock){
  3474. var self=this;
  3475. var root;
  3476. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3477. return smalltalk.withContext(function($ctx1) {
  3478. //>>excludeEnd("ctx");
  3479. root=_st(self["@canvas"])._root();
  3480. _st(self["@canvas"])._root_(self);
  3481. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3482. $ctx1.sendIdx["root:"]=1;
  3483. //>>excludeEnd("ctx");
  3484. _st(aBlock)._value_(self["@canvas"]);
  3485. _st(self["@canvas"])._root_(root);
  3486. return self;
  3487. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3488. }, function($ctx1) {$ctx1.fill(self,"appendBlock:",{aBlock:aBlock,root:root},globals.TagBrush)});
  3489. //>>excludeEnd("ctx");
  3490. },
  3491. //>>excludeStart("ide", pragmas.excludeIdeData);
  3492. args: ["aBlock"],
  3493. source: "appendBlock: aBlock\x0a\x09| root |\x0a\x09root := canvas root.\x0a\x09canvas root: self.\x0a\x09aBlock value: canvas.\x0a\x09canvas root: root",
  3494. referencedClasses: [],
  3495. //>>excludeEnd("ide");
  3496. messageSends: ["root", "root:", "value:"]
  3497. }),
  3498. globals.TagBrush);
  3499. smalltalk.addMethod(
  3500. smalltalk.method({
  3501. selector: "appendChild:",
  3502. protocol: 'adding',
  3503. fn: function (anElement){
  3504. var self=this;
  3505. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3506. return smalltalk.withContext(function($ctx1) {
  3507. //>>excludeEnd("ctx");
  3508. var element=self['@element'];
  3509. if (null == element.canHaveChildren || element.canHaveChildren) {
  3510. element.appendChild(anElement);
  3511. } else {
  3512. element.text = String(element.text) + anElement.innerHTML;
  3513. } ;
  3514. return self;
  3515. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3516. }, function($ctx1) {$ctx1.fill(self,"appendChild:",{anElement:anElement},globals.TagBrush)});
  3517. //>>excludeEnd("ctx");
  3518. },
  3519. //>>excludeStart("ide", pragmas.excludeIdeData);
  3520. args: ["anElement"],
  3521. 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} >",
  3522. referencedClasses: [],
  3523. //>>excludeEnd("ide");
  3524. messageSends: []
  3525. }),
  3526. globals.TagBrush);
  3527. smalltalk.addMethod(
  3528. smalltalk.method({
  3529. selector: "appendDocumentFragment:",
  3530. protocol: 'private',
  3531. fn: function (anElement){
  3532. var self=this;
  3533. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3534. return smalltalk.withContext(function($ctx1) {
  3535. //>>excludeEnd("ctx");
  3536. var element=self['@element'].appendChild(anElement["@element"]);
  3537. return self;
  3538. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3539. }, function($ctx1) {$ctx1.fill(self,"appendDocumentFragment:",{anElement:anElement},globals.TagBrush)});
  3540. //>>excludeEnd("ctx");
  3541. },
  3542. //>>excludeStart("ide", pragmas.excludeIdeData);
  3543. args: ["anElement"],
  3544. source: "appendDocumentFragment: anElement\x0a\x09<var element=self['@element'].appendChild(anElement[\x22@element\x22])>",
  3545. referencedClasses: [],
  3546. //>>excludeEnd("ide");
  3547. messageSends: []
  3548. }),
  3549. globals.TagBrush);
  3550. smalltalk.addMethod(
  3551. smalltalk.method({
  3552. selector: "appendString:",
  3553. protocol: 'adding',
  3554. fn: function (aString){
  3555. var self=this;
  3556. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3557. return smalltalk.withContext(function($ctx1) {
  3558. //>>excludeEnd("ctx");
  3559. self._appendChild_(self._createTextNodeFor_(aString));
  3560. return self;
  3561. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3562. }, function($ctx1) {$ctx1.fill(self,"appendString:",{aString:aString},globals.TagBrush)});
  3563. //>>excludeEnd("ctx");
  3564. },
  3565. //>>excludeStart("ide", pragmas.excludeIdeData);
  3566. args: ["aString"],
  3567. source: "appendString: aString\x0a\x09self appendChild: (self createTextNodeFor: aString)",
  3568. referencedClasses: [],
  3569. //>>excludeEnd("ide");
  3570. messageSends: ["appendChild:", "createTextNodeFor:"]
  3571. }),
  3572. globals.TagBrush);
  3573. smalltalk.addMethod(
  3574. smalltalk.method({
  3575. selector: "appendToBrush:",
  3576. protocol: 'adding',
  3577. fn: function (aTagBrush){
  3578. var self=this;
  3579. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3580. return smalltalk.withContext(function($ctx1) {
  3581. //>>excludeEnd("ctx");
  3582. _st(aTagBrush)._addBrush_(self);
  3583. return self;
  3584. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3585. }, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},globals.TagBrush)});
  3586. //>>excludeEnd("ctx");
  3587. },
  3588. //>>excludeStart("ide", pragmas.excludeIdeData);
  3589. args: ["aTagBrush"],
  3590. source: "appendToBrush: aTagBrush\x0a\x09aTagBrush addBrush: self",
  3591. referencedClasses: [],
  3592. //>>excludeEnd("ide");
  3593. messageSends: ["addBrush:"]
  3594. }),
  3595. globals.TagBrush);
  3596. smalltalk.addMethod(
  3597. smalltalk.method({
  3598. selector: "asJQuery",
  3599. protocol: 'converting',
  3600. fn: function (){
  3601. var self=this;
  3602. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3603. return smalltalk.withContext(function($ctx1) {
  3604. //>>excludeEnd("ctx");
  3605. var $1;
  3606. $1=_st(self._element())._asJQuery();
  3607. return $1;
  3608. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3609. }, function($ctx1) {$ctx1.fill(self,"asJQuery",{},globals.TagBrush)});
  3610. //>>excludeEnd("ctx");
  3611. },
  3612. //>>excludeStart("ide", pragmas.excludeIdeData);
  3613. args: [],
  3614. source: "asJQuery\x0a\x09^ self element asJQuery",
  3615. referencedClasses: [],
  3616. //>>excludeEnd("ide");
  3617. messageSends: ["asJQuery", "element"]
  3618. }),
  3619. globals.TagBrush);
  3620. smalltalk.addMethod(
  3621. smalltalk.method({
  3622. selector: "asJQueryInContext:",
  3623. protocol: 'converting',
  3624. fn: function (aContext){
  3625. var self=this;
  3626. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3627. return smalltalk.withContext(function($ctx1) {
  3628. //>>excludeEnd("ctx");
  3629. var $1;
  3630. $1=_st(self._element())._asJQueryInContext_(aContext);
  3631. return $1;
  3632. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3633. }, function($ctx1) {$ctx1.fill(self,"asJQueryInContext:",{aContext:aContext},globals.TagBrush)});
  3634. //>>excludeEnd("ctx");
  3635. },
  3636. //>>excludeStart("ide", pragmas.excludeIdeData);
  3637. args: ["aContext"],
  3638. source: "asJQueryInContext: aContext\x0a\x09^ self element asJQueryInContext: aContext",
  3639. referencedClasses: [],
  3640. //>>excludeEnd("ide");
  3641. messageSends: ["asJQueryInContext:", "element"]
  3642. }),
  3643. globals.TagBrush);
  3644. smalltalk.addMethod(
  3645. smalltalk.method({
  3646. selector: "at:",
  3647. protocol: 'attributes',
  3648. fn: function (aString){
  3649. var self=this;
  3650. function $Collection(){return globals.Collection||(typeof Collection=="undefined"?nil:Collection)}
  3651. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3652. return smalltalk.withContext(function($ctx1) {
  3653. //>>excludeEnd("ctx");
  3654. var $1;
  3655. $1=self._at_ifAbsent_(aString,(function(){
  3656. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3657. return smalltalk.withContext(function($ctx2) {
  3658. //>>excludeEnd("ctx");
  3659. return _st(_st($Collection())._new())._errorNotFound();
  3660. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3661. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
  3662. //>>excludeEnd("ctx");
  3663. }));
  3664. return $1;
  3665. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3666. }, function($ctx1) {$ctx1.fill(self,"at:",{aString:aString},globals.TagBrush)});
  3667. //>>excludeEnd("ctx");
  3668. },
  3669. //>>excludeStart("ide", pragmas.excludeIdeData);
  3670. args: ["aString"],
  3671. source: "at: aString\x0a\x09^ self at: aString ifAbsent: [ Collection new errorNotFound ]",
  3672. referencedClasses: ["Collection"],
  3673. //>>excludeEnd("ide");
  3674. messageSends: ["at:ifAbsent:", "errorNotFound", "new"]
  3675. }),
  3676. globals.TagBrush);
  3677. smalltalk.addMethod(
  3678. smalltalk.method({
  3679. selector: "at:ifAbsent:",
  3680. protocol: 'attributes',
  3681. fn: function (aString,aBlock){
  3682. var self=this;
  3683. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3684. return smalltalk.withContext(function($ctx1) {
  3685. //>>excludeEnd("ctx");
  3686. return self['@element'].hasAttribute(aString) ? self['@element'].getAttribute(aString) : aBlock._value();
  3687. return self;
  3688. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3689. }, function($ctx1) {$ctx1.fill(self,"at:ifAbsent:",{aString:aString,aBlock:aBlock},globals.TagBrush)});
  3690. //>>excludeEnd("ctx");
  3691. },
  3692. //>>excludeStart("ide", pragmas.excludeIdeData);
  3693. args: ["aString", "aBlock"],
  3694. source: "at: aString ifAbsent: aBlock\x0a\x09<return self['@element'].hasAttribute(aString) ? self['@element'].getAttribute(aString) : aBlock._value()>",
  3695. referencedClasses: [],
  3696. //>>excludeEnd("ide");
  3697. messageSends: []
  3698. }),
  3699. globals.TagBrush);
  3700. smalltalk.addMethod(
  3701. smalltalk.method({
  3702. selector: "at:put:",
  3703. protocol: 'attributes',
  3704. fn: function (aString,aValue){
  3705. var self=this;
  3706. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3707. return smalltalk.withContext(function($ctx1) {
  3708. //>>excludeEnd("ctx");
  3709. self['@element'].setAttribute(aString, aValue); return aValue;
  3710. return self;
  3711. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3712. }, function($ctx1) {$ctx1.fill(self,"at:put:",{aString:aString,aValue:aValue},globals.TagBrush)});
  3713. //>>excludeEnd("ctx");
  3714. },
  3715. //>>excludeStart("ide", pragmas.excludeIdeData);
  3716. args: ["aString", "aValue"],
  3717. source: "at: aString put: aValue\x0a\x09<self['@element'].setAttribute(aString, aValue); return aValue>",
  3718. referencedClasses: [],
  3719. //>>excludeEnd("ide");
  3720. messageSends: []
  3721. }),
  3722. globals.TagBrush);
  3723. smalltalk.addMethod(
  3724. smalltalk.method({
  3725. selector: "class:",
  3726. protocol: 'attributes',
  3727. fn: function (aString){
  3728. var self=this;
  3729. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3730. return smalltalk.withContext(function($ctx1) {
  3731. //>>excludeEnd("ctx");
  3732. self['@element'].className = aString;
  3733. return self;
  3734. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3735. }, function($ctx1) {$ctx1.fill(self,"class:",{aString:aString},globals.TagBrush)});
  3736. //>>excludeEnd("ctx");
  3737. },
  3738. //>>excludeStart("ide", pragmas.excludeIdeData);
  3739. args: ["aString"],
  3740. source: "class: aString\x0a\x09<self['@element'].className = aString>",
  3741. referencedClasses: [],
  3742. //>>excludeEnd("ide");
  3743. messageSends: []
  3744. }),
  3745. globals.TagBrush);
  3746. smalltalk.addMethod(
  3747. smalltalk.method({
  3748. selector: "cols:",
  3749. protocol: 'attributes',
  3750. fn: function (aString){
  3751. var self=this;
  3752. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3753. return smalltalk.withContext(function($ctx1) {
  3754. //>>excludeEnd("ctx");
  3755. self._at_put_("cols",aString);
  3756. return self;
  3757. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3758. }, function($ctx1) {$ctx1.fill(self,"cols:",{aString:aString},globals.TagBrush)});
  3759. //>>excludeEnd("ctx");
  3760. },
  3761. //>>excludeStart("ide", pragmas.excludeIdeData);
  3762. args: ["aString"],
  3763. source: "cols: aString\x0a\x09self at: 'cols' put: aString",
  3764. referencedClasses: [],
  3765. //>>excludeEnd("ide");
  3766. messageSends: ["at:put:"]
  3767. }),
  3768. globals.TagBrush);
  3769. smalltalk.addMethod(
  3770. smalltalk.method({
  3771. selector: "contenteditable:",
  3772. protocol: 'attributes',
  3773. fn: function (aString){
  3774. var self=this;
  3775. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3776. return smalltalk.withContext(function($ctx1) {
  3777. //>>excludeEnd("ctx");
  3778. self._at_put_("contenteditable",aString);
  3779. return self;
  3780. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3781. }, function($ctx1) {$ctx1.fill(self,"contenteditable:",{aString:aString},globals.TagBrush)});
  3782. //>>excludeEnd("ctx");
  3783. },
  3784. //>>excludeStart("ide", pragmas.excludeIdeData);
  3785. args: ["aString"],
  3786. source: "contenteditable: aString\x0a\x09self at: 'contenteditable' put: aString",
  3787. referencedClasses: [],
  3788. //>>excludeEnd("ide");
  3789. messageSends: ["at:put:"]
  3790. }),
  3791. globals.TagBrush);
  3792. smalltalk.addMethod(
  3793. smalltalk.method({
  3794. selector: "contents:",
  3795. protocol: 'adding',
  3796. fn: function (anObject){
  3797. var self=this;
  3798. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3799. return smalltalk.withContext(function($ctx1) {
  3800. //>>excludeEnd("ctx");
  3801. var $1;
  3802. self._empty();
  3803. $1=self._append_(anObject);
  3804. return self;
  3805. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3806. }, function($ctx1) {$ctx1.fill(self,"contents:",{anObject:anObject},globals.TagBrush)});
  3807. //>>excludeEnd("ctx");
  3808. },
  3809. //>>excludeStart("ide", pragmas.excludeIdeData);
  3810. args: ["anObject"],
  3811. source: "contents: anObject\x0a\x09self\x0a\x09empty;\x0a\x09append: anObject",
  3812. referencedClasses: [],
  3813. //>>excludeEnd("ide");
  3814. messageSends: ["empty", "append:"]
  3815. }),
  3816. globals.TagBrush);
  3817. smalltalk.addMethod(
  3818. smalltalk.method({
  3819. selector: "contextmenu:",
  3820. protocol: 'attributes',
  3821. fn: function (aString){
  3822. var self=this;
  3823. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3824. return smalltalk.withContext(function($ctx1) {
  3825. //>>excludeEnd("ctx");
  3826. self._at_put_("contextmenu",aString);
  3827. return self;
  3828. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3829. }, function($ctx1) {$ctx1.fill(self,"contextmenu:",{aString:aString},globals.TagBrush)});
  3830. //>>excludeEnd("ctx");
  3831. },
  3832. //>>excludeStart("ide", pragmas.excludeIdeData);
  3833. args: ["aString"],
  3834. source: "contextmenu: aString\x0a\x09self at: 'contextmenu' put: aString",
  3835. referencedClasses: [],
  3836. //>>excludeEnd("ide");
  3837. messageSends: ["at:put:"]
  3838. }),
  3839. globals.TagBrush);
  3840. smalltalk.addMethod(
  3841. smalltalk.method({
  3842. selector: "createElementFor:",
  3843. protocol: 'private',
  3844. fn: function (aString){
  3845. var self=this;
  3846. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3847. return smalltalk.withContext(function($ctx1) {
  3848. //>>excludeEnd("ctx");
  3849. return document.createElement(String(aString));
  3850. return self;
  3851. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3852. }, function($ctx1) {$ctx1.fill(self,"createElementFor:",{aString:aString},globals.TagBrush)});
  3853. //>>excludeEnd("ctx");
  3854. },
  3855. //>>excludeStart("ide", pragmas.excludeIdeData);
  3856. args: ["aString"],
  3857. source: "createElementFor: aString\x0a\x09<return document.createElement(String(aString))>",
  3858. referencedClasses: [],
  3859. //>>excludeEnd("ide");
  3860. messageSends: []
  3861. }),
  3862. globals.TagBrush);
  3863. smalltalk.addMethod(
  3864. smalltalk.method({
  3865. selector: "createTextNodeFor:",
  3866. protocol: 'private',
  3867. fn: function (aString){
  3868. var self=this;
  3869. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3870. return smalltalk.withContext(function($ctx1) {
  3871. //>>excludeEnd("ctx");
  3872. return document.createTextNode(String(aString));
  3873. return self;
  3874. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3875. }, function($ctx1) {$ctx1.fill(self,"createTextNodeFor:",{aString:aString},globals.TagBrush)});
  3876. //>>excludeEnd("ctx");
  3877. },
  3878. //>>excludeStart("ide", pragmas.excludeIdeData);
  3879. args: ["aString"],
  3880. source: "createTextNodeFor: aString\x0a\x09<return document.createTextNode(String(aString))>",
  3881. referencedClasses: [],
  3882. //>>excludeEnd("ide");
  3883. messageSends: []
  3884. }),
  3885. globals.TagBrush);
  3886. smalltalk.addMethod(
  3887. smalltalk.method({
  3888. selector: "draggable:",
  3889. protocol: 'attributes',
  3890. fn: function (aString){
  3891. var self=this;
  3892. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3893. return smalltalk.withContext(function($ctx1) {
  3894. //>>excludeEnd("ctx");
  3895. self._at_put_("draggable",aString);
  3896. return self;
  3897. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3898. }, function($ctx1) {$ctx1.fill(self,"draggable:",{aString:aString},globals.TagBrush)});
  3899. //>>excludeEnd("ctx");
  3900. },
  3901. //>>excludeStart("ide", pragmas.excludeIdeData);
  3902. args: ["aString"],
  3903. source: "draggable: aString\x0a\x09self at: 'draggable' put: aString",
  3904. referencedClasses: [],
  3905. //>>excludeEnd("ide");
  3906. messageSends: ["at:put:"]
  3907. }),
  3908. globals.TagBrush);
  3909. smalltalk.addMethod(
  3910. smalltalk.method({
  3911. selector: "element",
  3912. protocol: 'accessing',
  3913. fn: function (){
  3914. var self=this;
  3915. var $1;
  3916. $1=self["@element"];
  3917. return $1;
  3918. },
  3919. //>>excludeStart("ide", pragmas.excludeIdeData);
  3920. args: [],
  3921. source: "element\x0a\x09^ element",
  3922. referencedClasses: [],
  3923. //>>excludeEnd("ide");
  3924. messageSends: []
  3925. }),
  3926. globals.TagBrush);
  3927. smalltalk.addMethod(
  3928. smalltalk.method({
  3929. selector: "empty",
  3930. protocol: 'adding',
  3931. fn: function (){
  3932. var self=this;
  3933. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3934. return smalltalk.withContext(function($ctx1) {
  3935. //>>excludeEnd("ctx");
  3936. _st(self._asJQuery())._empty();
  3937. return self;
  3938. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3939. }, function($ctx1) {$ctx1.fill(self,"empty",{},globals.TagBrush)});
  3940. //>>excludeEnd("ctx");
  3941. },
  3942. //>>excludeStart("ide", pragmas.excludeIdeData);
  3943. args: [],
  3944. source: "empty\x0a\x09self asJQuery empty",
  3945. referencedClasses: [],
  3946. //>>excludeEnd("ide");
  3947. messageSends: ["empty", "asJQuery"]
  3948. }),
  3949. globals.TagBrush);
  3950. smalltalk.addMethod(
  3951. smalltalk.method({
  3952. selector: "for:",
  3953. protocol: 'attributes',
  3954. fn: function (aString){
  3955. var self=this;
  3956. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3957. return smalltalk.withContext(function($ctx1) {
  3958. //>>excludeEnd("ctx");
  3959. self._at_put_("for",aString);
  3960. return self;
  3961. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3962. }, function($ctx1) {$ctx1.fill(self,"for:",{aString:aString},globals.TagBrush)});
  3963. //>>excludeEnd("ctx");
  3964. },
  3965. //>>excludeStart("ide", pragmas.excludeIdeData);
  3966. args: ["aString"],
  3967. source: "for: aString\x0a\x09self at: 'for' put: aString",
  3968. referencedClasses: [],
  3969. //>>excludeEnd("ide");
  3970. messageSends: ["at:put:"]
  3971. }),
  3972. globals.TagBrush);
  3973. smalltalk.addMethod(
  3974. smalltalk.method({
  3975. selector: "height:",
  3976. protocol: 'attributes',
  3977. fn: function (aString){
  3978. var self=this;
  3979. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3980. return smalltalk.withContext(function($ctx1) {
  3981. //>>excludeEnd("ctx");
  3982. self._at_put_("height",aString);
  3983. return self;
  3984. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3985. }, function($ctx1) {$ctx1.fill(self,"height:",{aString:aString},globals.TagBrush)});
  3986. //>>excludeEnd("ctx");
  3987. },
  3988. //>>excludeStart("ide", pragmas.excludeIdeData);
  3989. args: ["aString"],
  3990. source: "height: aString\x0a\x09self at: 'height' put: aString",
  3991. referencedClasses: [],
  3992. //>>excludeEnd("ide");
  3993. messageSends: ["at:put:"]
  3994. }),
  3995. globals.TagBrush);
  3996. smalltalk.addMethod(
  3997. smalltalk.method({
  3998. selector: "hidden",
  3999. protocol: 'attributes',
  4000. fn: function (){
  4001. var self=this;
  4002. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4003. return smalltalk.withContext(function($ctx1) {
  4004. //>>excludeEnd("ctx");
  4005. self._at_put_("hidden","hidden");
  4006. return self;
  4007. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4008. }, function($ctx1) {$ctx1.fill(self,"hidden",{},globals.TagBrush)});
  4009. //>>excludeEnd("ctx");
  4010. },
  4011. //>>excludeStart("ide", pragmas.excludeIdeData);
  4012. args: [],
  4013. source: "hidden\x0a\x09self at: 'hidden' put: 'hidden'",
  4014. referencedClasses: [],
  4015. //>>excludeEnd("ide");
  4016. messageSends: ["at:put:"]
  4017. }),
  4018. globals.TagBrush);
  4019. smalltalk.addMethod(
  4020. smalltalk.method({
  4021. selector: "href:",
  4022. protocol: 'attributes',
  4023. fn: function (aString){
  4024. var self=this;
  4025. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4026. return smalltalk.withContext(function($ctx1) {
  4027. //>>excludeEnd("ctx");
  4028. self._at_put_("href",aString);
  4029. return self;
  4030. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4031. }, function($ctx1) {$ctx1.fill(self,"href:",{aString:aString},globals.TagBrush)});
  4032. //>>excludeEnd("ctx");
  4033. },
  4034. //>>excludeStart("ide", pragmas.excludeIdeData);
  4035. args: ["aString"],
  4036. source: "href: aString\x0a\x09self at: 'href' put: aString",
  4037. referencedClasses: [],
  4038. //>>excludeEnd("ide");
  4039. messageSends: ["at:put:"]
  4040. }),
  4041. globals.TagBrush);
  4042. smalltalk.addMethod(
  4043. smalltalk.method({
  4044. selector: "id:",
  4045. protocol: 'attributes',
  4046. fn: function (aString){
  4047. var self=this;
  4048. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4049. return smalltalk.withContext(function($ctx1) {
  4050. //>>excludeEnd("ctx");
  4051. self._at_put_("id",aString);
  4052. return self;
  4053. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4054. }, function($ctx1) {$ctx1.fill(self,"id:",{aString:aString},globals.TagBrush)});
  4055. //>>excludeEnd("ctx");
  4056. },
  4057. //>>excludeStart("ide", pragmas.excludeIdeData);
  4058. args: ["aString"],
  4059. source: "id: aString\x0a\x09self at: 'id' put: aString",
  4060. referencedClasses: [],
  4061. //>>excludeEnd("ide");
  4062. messageSends: ["at:put:"]
  4063. }),
  4064. globals.TagBrush);
  4065. smalltalk.addMethod(
  4066. smalltalk.method({
  4067. selector: "initializeFromJQuery:canvas:",
  4068. protocol: 'initialization',
  4069. fn: function (aJQuery,aCanvas){
  4070. var self=this;
  4071. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4072. return smalltalk.withContext(function($ctx1) {
  4073. //>>excludeEnd("ctx");
  4074. self["@element"]=_st(aJQuery)._get_((0));
  4075. self["@canvas"]=aCanvas;
  4076. return self;
  4077. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4078. }, function($ctx1) {$ctx1.fill(self,"initializeFromJQuery:canvas:",{aJQuery:aJQuery,aCanvas:aCanvas},globals.TagBrush)});
  4079. //>>excludeEnd("ctx");
  4080. },
  4081. //>>excludeStart("ide", pragmas.excludeIdeData);
  4082. args: ["aJQuery", "aCanvas"],
  4083. source: "initializeFromJQuery: aJQuery canvas: aCanvas\x0a\x09element := aJQuery get: 0.\x0a\x09canvas := aCanvas",
  4084. referencedClasses: [],
  4085. //>>excludeEnd("ide");
  4086. messageSends: ["get:"]
  4087. }),
  4088. globals.TagBrush);
  4089. smalltalk.addMethod(
  4090. smalltalk.method({
  4091. selector: "initializeFromString:canvas:",
  4092. protocol: 'initialization',
  4093. fn: function (aString,aCanvas){
  4094. var self=this;
  4095. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4096. return smalltalk.withContext(function($ctx1) {
  4097. //>>excludeEnd("ctx");
  4098. self["@element"]=self._createElementFor_(aString);
  4099. self["@canvas"]=aCanvas;
  4100. return self;
  4101. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4102. }, function($ctx1) {$ctx1.fill(self,"initializeFromString:canvas:",{aString:aString,aCanvas:aCanvas},globals.TagBrush)});
  4103. //>>excludeEnd("ctx");
  4104. },
  4105. //>>excludeStart("ide", pragmas.excludeIdeData);
  4106. args: ["aString", "aCanvas"],
  4107. source: "initializeFromString: aString canvas: aCanvas\x0a\x09element := self createElementFor: aString.\x0a\x09canvas := aCanvas",
  4108. referencedClasses: [],
  4109. //>>excludeEnd("ide");
  4110. messageSends: ["createElementFor:"]
  4111. }),
  4112. globals.TagBrush);
  4113. smalltalk.addMethod(
  4114. smalltalk.method({
  4115. selector: "media:",
  4116. protocol: 'attributes',
  4117. fn: function (aString){
  4118. var self=this;
  4119. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4120. return smalltalk.withContext(function($ctx1) {
  4121. //>>excludeEnd("ctx");
  4122. self._at_put_("media",aString);
  4123. return self;
  4124. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4125. }, function($ctx1) {$ctx1.fill(self,"media:",{aString:aString},globals.TagBrush)});
  4126. //>>excludeEnd("ctx");
  4127. },
  4128. //>>excludeStart("ide", pragmas.excludeIdeData);
  4129. args: ["aString"],
  4130. source: "media: aString\x0a\x09self at: 'media' put: aString",
  4131. referencedClasses: [],
  4132. //>>excludeEnd("ide");
  4133. messageSends: ["at:put:"]
  4134. }),
  4135. globals.TagBrush);
  4136. smalltalk.addMethod(
  4137. smalltalk.method({
  4138. selector: "method:",
  4139. protocol: 'attributes',
  4140. fn: function (aString){
  4141. var self=this;
  4142. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4143. return smalltalk.withContext(function($ctx1) {
  4144. //>>excludeEnd("ctx");
  4145. self._at_put_("method",aString);
  4146. return self;
  4147. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4148. }, function($ctx1) {$ctx1.fill(self,"method:",{aString:aString},globals.TagBrush)});
  4149. //>>excludeEnd("ctx");
  4150. },
  4151. //>>excludeStart("ide", pragmas.excludeIdeData);
  4152. args: ["aString"],
  4153. source: "method: aString\x0a\x09self at: 'method' put: aString",
  4154. referencedClasses: [],
  4155. //>>excludeEnd("ide");
  4156. messageSends: ["at:put:"]
  4157. }),
  4158. globals.TagBrush);
  4159. smalltalk.addMethod(
  4160. smalltalk.method({
  4161. selector: "name:",
  4162. protocol: 'attributes',
  4163. fn: function (aString){
  4164. var self=this;
  4165. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4166. return smalltalk.withContext(function($ctx1) {
  4167. //>>excludeEnd("ctx");
  4168. self._at_put_("name",aString);
  4169. return self;
  4170. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4171. }, function($ctx1) {$ctx1.fill(self,"name:",{aString:aString},globals.TagBrush)});
  4172. //>>excludeEnd("ctx");
  4173. },
  4174. //>>excludeStart("ide", pragmas.excludeIdeData);
  4175. args: ["aString"],
  4176. source: "name: aString\x0a\x09self at: 'name' put: aString",
  4177. referencedClasses: [],
  4178. //>>excludeEnd("ide");
  4179. messageSends: ["at:put:"]
  4180. }),
  4181. globals.TagBrush);
  4182. smalltalk.addMethod(
  4183. smalltalk.method({
  4184. selector: "onBlur:",
  4185. protocol: 'events',
  4186. fn: function (aBlock){
  4187. var self=this;
  4188. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4189. return smalltalk.withContext(function($ctx1) {
  4190. //>>excludeEnd("ctx");
  4191. _st(self._asJQuery())._bind_do_("blur",aBlock);
  4192. return self;
  4193. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4194. }, function($ctx1) {$ctx1.fill(self,"onBlur:",{aBlock:aBlock},globals.TagBrush)});
  4195. //>>excludeEnd("ctx");
  4196. },
  4197. //>>excludeStart("ide", pragmas.excludeIdeData);
  4198. args: ["aBlock"],
  4199. source: "onBlur: aBlock\x0a\x09self asJQuery bind: 'blur' do: aBlock",
  4200. referencedClasses: [],
  4201. //>>excludeEnd("ide");
  4202. messageSends: ["bind:do:", "asJQuery"]
  4203. }),
  4204. globals.TagBrush);
  4205. smalltalk.addMethod(
  4206. smalltalk.method({
  4207. selector: "onChange:",
  4208. protocol: 'events',
  4209. fn: function (aBlock){
  4210. var self=this;
  4211. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4212. return smalltalk.withContext(function($ctx1) {
  4213. //>>excludeEnd("ctx");
  4214. _st(self._asJQuery())._bind_do_("change",aBlock);
  4215. return self;
  4216. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4217. }, function($ctx1) {$ctx1.fill(self,"onChange:",{aBlock:aBlock},globals.TagBrush)});
  4218. //>>excludeEnd("ctx");
  4219. },
  4220. //>>excludeStart("ide", pragmas.excludeIdeData);
  4221. args: ["aBlock"],
  4222. source: "onChange: aBlock\x0a\x09self asJQuery bind: 'change' do: aBlock",
  4223. referencedClasses: [],
  4224. //>>excludeEnd("ide");
  4225. messageSends: ["bind:do:", "asJQuery"]
  4226. }),
  4227. globals.TagBrush);
  4228. smalltalk.addMethod(
  4229. smalltalk.method({
  4230. selector: "onClick:",
  4231. protocol: 'events',
  4232. fn: function (aBlock){
  4233. var self=this;
  4234. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4235. return smalltalk.withContext(function($ctx1) {
  4236. //>>excludeEnd("ctx");
  4237. _st(self._asJQuery())._bind_do_("click",aBlock);
  4238. return self;
  4239. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4240. }, function($ctx1) {$ctx1.fill(self,"onClick:",{aBlock:aBlock},globals.TagBrush)});
  4241. //>>excludeEnd("ctx");
  4242. },
  4243. //>>excludeStart("ide", pragmas.excludeIdeData);
  4244. args: ["aBlock"],
  4245. source: "onClick: aBlock\x0a\x09self asJQuery bind: 'click' do: aBlock",
  4246. referencedClasses: [],
  4247. //>>excludeEnd("ide");
  4248. messageSends: ["bind:do:", "asJQuery"]
  4249. }),
  4250. globals.TagBrush);
  4251. smalltalk.addMethod(
  4252. smalltalk.method({
  4253. selector: "onDblClick:",
  4254. protocol: 'events',
  4255. fn: function (aBlock){
  4256. var self=this;
  4257. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4258. return smalltalk.withContext(function($ctx1) {
  4259. //>>excludeEnd("ctx");
  4260. _st(self._asJQuery())._bind_do_("dblclick",aBlock);
  4261. return self;
  4262. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4263. }, function($ctx1) {$ctx1.fill(self,"onDblClick:",{aBlock:aBlock},globals.TagBrush)});
  4264. //>>excludeEnd("ctx");
  4265. },
  4266. //>>excludeStart("ide", pragmas.excludeIdeData);
  4267. args: ["aBlock"],
  4268. source: "onDblClick: aBlock\x0a\x09self asJQuery bind: 'dblclick' do: aBlock",
  4269. referencedClasses: [],
  4270. //>>excludeEnd("ide");
  4271. messageSends: ["bind:do:", "asJQuery"]
  4272. }),
  4273. globals.TagBrush);
  4274. smalltalk.addMethod(
  4275. smalltalk.method({
  4276. selector: "onFocus:",
  4277. protocol: 'events',
  4278. fn: function (aBlock){
  4279. var self=this;
  4280. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4281. return smalltalk.withContext(function($ctx1) {
  4282. //>>excludeEnd("ctx");
  4283. _st(self._asJQuery())._bind_do_("focus",aBlock);
  4284. return self;
  4285. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4286. }, function($ctx1) {$ctx1.fill(self,"onFocus:",{aBlock:aBlock},globals.TagBrush)});
  4287. //>>excludeEnd("ctx");
  4288. },
  4289. //>>excludeStart("ide", pragmas.excludeIdeData);
  4290. args: ["aBlock"],
  4291. source: "onFocus: aBlock\x0a\x09self asJQuery bind: 'focus' do: aBlock",
  4292. referencedClasses: [],
  4293. //>>excludeEnd("ide");
  4294. messageSends: ["bind:do:", "asJQuery"]
  4295. }),
  4296. globals.TagBrush);
  4297. smalltalk.addMethod(
  4298. smalltalk.method({
  4299. selector: "onFocusIn:",
  4300. protocol: 'events',
  4301. fn: function (aBlock){
  4302. var self=this;
  4303. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4304. return smalltalk.withContext(function($ctx1) {
  4305. //>>excludeEnd("ctx");
  4306. _st(self._asJQuery())._bind_do_("focusin",aBlock);
  4307. return self;
  4308. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4309. }, function($ctx1) {$ctx1.fill(self,"onFocusIn:",{aBlock:aBlock},globals.TagBrush)});
  4310. //>>excludeEnd("ctx");
  4311. },
  4312. //>>excludeStart("ide", pragmas.excludeIdeData);
  4313. args: ["aBlock"],
  4314. source: "onFocusIn: aBlock\x0a\x09self asJQuery bind: 'focusin' do: aBlock",
  4315. referencedClasses: [],
  4316. //>>excludeEnd("ide");
  4317. messageSends: ["bind:do:", "asJQuery"]
  4318. }),
  4319. globals.TagBrush);
  4320. smalltalk.addMethod(
  4321. smalltalk.method({
  4322. selector: "onFocusOut:",
  4323. protocol: 'events',
  4324. fn: function (aBlock){
  4325. var self=this;
  4326. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4327. return smalltalk.withContext(function($ctx1) {
  4328. //>>excludeEnd("ctx");
  4329. _st(self._asJQuery())._bind_do_("focusout",aBlock);
  4330. return self;
  4331. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4332. }, function($ctx1) {$ctx1.fill(self,"onFocusOut:",{aBlock:aBlock},globals.TagBrush)});
  4333. //>>excludeEnd("ctx");
  4334. },
  4335. //>>excludeStart("ide", pragmas.excludeIdeData);
  4336. args: ["aBlock"],
  4337. source: "onFocusOut: aBlock\x0a\x09self asJQuery bind: 'focusout' do: aBlock",
  4338. referencedClasses: [],
  4339. //>>excludeEnd("ide");
  4340. messageSends: ["bind:do:", "asJQuery"]
  4341. }),
  4342. globals.TagBrush);
  4343. smalltalk.addMethod(
  4344. smalltalk.method({
  4345. selector: "onHover:",
  4346. protocol: 'events',
  4347. fn: function (aBlock){
  4348. var self=this;
  4349. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4350. return smalltalk.withContext(function($ctx1) {
  4351. //>>excludeEnd("ctx");
  4352. _st(self._asJQuery())._bind_do_("hover",aBlock);
  4353. return self;
  4354. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4355. }, function($ctx1) {$ctx1.fill(self,"onHover:",{aBlock:aBlock},globals.TagBrush)});
  4356. //>>excludeEnd("ctx");
  4357. },
  4358. //>>excludeStart("ide", pragmas.excludeIdeData);
  4359. args: ["aBlock"],
  4360. source: "onHover: aBlock\x0a\x09self asJQuery bind: 'hover' do: aBlock",
  4361. referencedClasses: [],
  4362. //>>excludeEnd("ide");
  4363. messageSends: ["bind:do:", "asJQuery"]
  4364. }),
  4365. globals.TagBrush);
  4366. smalltalk.addMethod(
  4367. smalltalk.method({
  4368. selector: "onKeyDown:",
  4369. protocol: 'events',
  4370. fn: function (aBlock){
  4371. var self=this;
  4372. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4373. return smalltalk.withContext(function($ctx1) {
  4374. //>>excludeEnd("ctx");
  4375. _st(self._asJQuery())._bind_do_("keydown",aBlock);
  4376. return self;
  4377. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4378. }, function($ctx1) {$ctx1.fill(self,"onKeyDown:",{aBlock:aBlock},globals.TagBrush)});
  4379. //>>excludeEnd("ctx");
  4380. },
  4381. //>>excludeStart("ide", pragmas.excludeIdeData);
  4382. args: ["aBlock"],
  4383. source: "onKeyDown: aBlock\x0a\x09self asJQuery bind: 'keydown' do: aBlock",
  4384. referencedClasses: [],
  4385. //>>excludeEnd("ide");
  4386. messageSends: ["bind:do:", "asJQuery"]
  4387. }),
  4388. globals.TagBrush);
  4389. smalltalk.addMethod(
  4390. smalltalk.method({
  4391. selector: "onKeyPress:",
  4392. protocol: 'events',
  4393. fn: function (aBlock){
  4394. var self=this;
  4395. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4396. return smalltalk.withContext(function($ctx1) {
  4397. //>>excludeEnd("ctx");
  4398. _st(self._asJQuery())._bind_do_("keypress",aBlock);
  4399. return self;
  4400. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4401. }, function($ctx1) {$ctx1.fill(self,"onKeyPress:",{aBlock:aBlock},globals.TagBrush)});
  4402. //>>excludeEnd("ctx");
  4403. },
  4404. //>>excludeStart("ide", pragmas.excludeIdeData);
  4405. args: ["aBlock"],
  4406. source: "onKeyPress: aBlock\x0a\x09self asJQuery bind: 'keypress' do: aBlock",
  4407. referencedClasses: [],
  4408. //>>excludeEnd("ide");
  4409. messageSends: ["bind:do:", "asJQuery"]
  4410. }),
  4411. globals.TagBrush);
  4412. smalltalk.addMethod(
  4413. smalltalk.method({
  4414. selector: "onKeyUp:",
  4415. protocol: 'events',
  4416. fn: function (aBlock){
  4417. var self=this;
  4418. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4419. return smalltalk.withContext(function($ctx1) {
  4420. //>>excludeEnd("ctx");
  4421. _st(self._asJQuery())._bind_do_("keyup",aBlock);
  4422. return self;
  4423. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4424. }, function($ctx1) {$ctx1.fill(self,"onKeyUp:",{aBlock:aBlock},globals.TagBrush)});
  4425. //>>excludeEnd("ctx");
  4426. },
  4427. //>>excludeStart("ide", pragmas.excludeIdeData);
  4428. args: ["aBlock"],
  4429. source: "onKeyUp: aBlock\x0a\x09self asJQuery bind: 'keyup' do: aBlock",
  4430. referencedClasses: [],
  4431. //>>excludeEnd("ide");
  4432. messageSends: ["bind:do:", "asJQuery"]
  4433. }),
  4434. globals.TagBrush);
  4435. smalltalk.addMethod(
  4436. smalltalk.method({
  4437. selector: "onMouseDown:",
  4438. protocol: 'events',
  4439. fn: function (aBlock){
  4440. var self=this;
  4441. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4442. return smalltalk.withContext(function($ctx1) {
  4443. //>>excludeEnd("ctx");
  4444. _st(self._asJQuery())._bind_do_("mousedown",aBlock);
  4445. return self;
  4446. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4447. }, function($ctx1) {$ctx1.fill(self,"onMouseDown:",{aBlock:aBlock},globals.TagBrush)});
  4448. //>>excludeEnd("ctx");
  4449. },
  4450. //>>excludeStart("ide", pragmas.excludeIdeData);
  4451. args: ["aBlock"],
  4452. source: "onMouseDown: aBlock\x0a\x09self asJQuery bind: 'mousedown' do: aBlock",
  4453. referencedClasses: [],
  4454. //>>excludeEnd("ide");
  4455. messageSends: ["bind:do:", "asJQuery"]
  4456. }),
  4457. globals.TagBrush);
  4458. smalltalk.addMethod(
  4459. smalltalk.method({
  4460. selector: "onMouseEnter:",
  4461. protocol: 'events',
  4462. fn: function (aBlock){
  4463. var self=this;
  4464. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4465. return smalltalk.withContext(function($ctx1) {
  4466. //>>excludeEnd("ctx");
  4467. _st(self._asJQuery())._bind_do_("mouseenter",aBlock);
  4468. return self;
  4469. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4470. }, function($ctx1) {$ctx1.fill(self,"onMouseEnter:",{aBlock:aBlock},globals.TagBrush)});
  4471. //>>excludeEnd("ctx");
  4472. },
  4473. //>>excludeStart("ide", pragmas.excludeIdeData);
  4474. args: ["aBlock"],
  4475. source: "onMouseEnter: aBlock\x0a\x09self asJQuery bind: 'mouseenter' do: aBlock",
  4476. referencedClasses: [],
  4477. //>>excludeEnd("ide");
  4478. messageSends: ["bind:do:", "asJQuery"]
  4479. }),
  4480. globals.TagBrush);
  4481. smalltalk.addMethod(
  4482. smalltalk.method({
  4483. selector: "onMouseLeave:",
  4484. protocol: 'events',
  4485. fn: function (aBlock){
  4486. var self=this;
  4487. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4488. return smalltalk.withContext(function($ctx1) {
  4489. //>>excludeEnd("ctx");
  4490. _st(self._asJQuery())._bind_do_("mouseleave",aBlock);
  4491. return self;
  4492. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4493. }, function($ctx1) {$ctx1.fill(self,"onMouseLeave:",{aBlock:aBlock},globals.TagBrush)});
  4494. //>>excludeEnd("ctx");
  4495. },
  4496. //>>excludeStart("ide", pragmas.excludeIdeData);
  4497. args: ["aBlock"],
  4498. source: "onMouseLeave: aBlock\x0a\x09self asJQuery bind: 'mouseleave' do: aBlock",
  4499. referencedClasses: [],
  4500. //>>excludeEnd("ide");
  4501. messageSends: ["bind:do:", "asJQuery"]
  4502. }),
  4503. globals.TagBrush);
  4504. smalltalk.addMethod(
  4505. smalltalk.method({
  4506. selector: "onMouseMove:",
  4507. protocol: 'events',
  4508. fn: function (aBlock){
  4509. var self=this;
  4510. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4511. return smalltalk.withContext(function($ctx1) {
  4512. //>>excludeEnd("ctx");
  4513. _st(self._asJQuery())._bind_do_("mousemove",aBlock);
  4514. return self;
  4515. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4516. }, function($ctx1) {$ctx1.fill(self,"onMouseMove:",{aBlock:aBlock},globals.TagBrush)});
  4517. //>>excludeEnd("ctx");
  4518. },
  4519. //>>excludeStart("ide", pragmas.excludeIdeData);
  4520. args: ["aBlock"],
  4521. source: "onMouseMove: aBlock\x0a\x09self asJQuery bind: 'mousemove' do: aBlock",
  4522. referencedClasses: [],
  4523. //>>excludeEnd("ide");
  4524. messageSends: ["bind:do:", "asJQuery"]
  4525. }),
  4526. globals.TagBrush);
  4527. smalltalk.addMethod(
  4528. smalltalk.method({
  4529. selector: "onMouseOut:",
  4530. protocol: 'events',
  4531. fn: function (aBlock){
  4532. var self=this;
  4533. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4534. return smalltalk.withContext(function($ctx1) {
  4535. //>>excludeEnd("ctx");
  4536. _st(self._asJQuery())._bind_do_("mouseout",aBlock);
  4537. return self;
  4538. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4539. }, function($ctx1) {$ctx1.fill(self,"onMouseOut:",{aBlock:aBlock},globals.TagBrush)});
  4540. //>>excludeEnd("ctx");
  4541. },
  4542. //>>excludeStart("ide", pragmas.excludeIdeData);
  4543. args: ["aBlock"],
  4544. source: "onMouseOut: aBlock\x0a\x09self asJQuery bind: 'mouseout' do: aBlock",
  4545. referencedClasses: [],
  4546. //>>excludeEnd("ide");
  4547. messageSends: ["bind:do:", "asJQuery"]
  4548. }),
  4549. globals.TagBrush);
  4550. smalltalk.addMethod(
  4551. smalltalk.method({
  4552. selector: "onMouseOver:",
  4553. protocol: 'events',
  4554. fn: function (aBlock){
  4555. var self=this;
  4556. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4557. return smalltalk.withContext(function($ctx1) {
  4558. //>>excludeEnd("ctx");
  4559. _st(self._asJQuery())._bind_do_("mouseover",aBlock);
  4560. return self;
  4561. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4562. }, function($ctx1) {$ctx1.fill(self,"onMouseOver:",{aBlock:aBlock},globals.TagBrush)});
  4563. //>>excludeEnd("ctx");
  4564. },
  4565. //>>excludeStart("ide", pragmas.excludeIdeData);
  4566. args: ["aBlock"],
  4567. source: "onMouseOver: aBlock\x0a\x09self asJQuery bind: 'mouseover' do: aBlock",
  4568. referencedClasses: [],
  4569. //>>excludeEnd("ide");
  4570. messageSends: ["bind:do:", "asJQuery"]
  4571. }),
  4572. globals.TagBrush);
  4573. smalltalk.addMethod(
  4574. smalltalk.method({
  4575. selector: "onMouseUp:",
  4576. protocol: 'events',
  4577. fn: function (aBlock){
  4578. var self=this;
  4579. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4580. return smalltalk.withContext(function($ctx1) {
  4581. //>>excludeEnd("ctx");
  4582. _st(self._asJQuery())._bind_do_("mouseup",aBlock);
  4583. return self;
  4584. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4585. }, function($ctx1) {$ctx1.fill(self,"onMouseUp:",{aBlock:aBlock},globals.TagBrush)});
  4586. //>>excludeEnd("ctx");
  4587. },
  4588. //>>excludeStart("ide", pragmas.excludeIdeData);
  4589. args: ["aBlock"],
  4590. source: "onMouseUp: aBlock\x0a\x09self asJQuery bind: 'mouseup' do: aBlock",
  4591. referencedClasses: [],
  4592. //>>excludeEnd("ide");
  4593. messageSends: ["bind:do:", "asJQuery"]
  4594. }),
  4595. globals.TagBrush);
  4596. smalltalk.addMethod(
  4597. smalltalk.method({
  4598. selector: "onSelect:",
  4599. protocol: 'events',
  4600. fn: function (aBlock){
  4601. var self=this;
  4602. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4603. return smalltalk.withContext(function($ctx1) {
  4604. //>>excludeEnd("ctx");
  4605. _st(self._asJQuery())._bind_do_("select",aBlock);
  4606. return self;
  4607. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4608. }, function($ctx1) {$ctx1.fill(self,"onSelect:",{aBlock:aBlock},globals.TagBrush)});
  4609. //>>excludeEnd("ctx");
  4610. },
  4611. //>>excludeStart("ide", pragmas.excludeIdeData);
  4612. args: ["aBlock"],
  4613. source: "onSelect: aBlock\x0a\x09self asJQuery bind: 'select' do: aBlock",
  4614. referencedClasses: [],
  4615. //>>excludeEnd("ide");
  4616. messageSends: ["bind:do:", "asJQuery"]
  4617. }),
  4618. globals.TagBrush);
  4619. smalltalk.addMethod(
  4620. smalltalk.method({
  4621. selector: "onSubmit:",
  4622. protocol: 'events',
  4623. fn: function (aBlock){
  4624. var self=this;
  4625. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4626. return smalltalk.withContext(function($ctx1) {
  4627. //>>excludeEnd("ctx");
  4628. _st(self._asJQuery())._bind_do_("submit",aBlock);
  4629. return self;
  4630. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4631. }, function($ctx1) {$ctx1.fill(self,"onSubmit:",{aBlock:aBlock},globals.TagBrush)});
  4632. //>>excludeEnd("ctx");
  4633. },
  4634. //>>excludeStart("ide", pragmas.excludeIdeData);
  4635. args: ["aBlock"],
  4636. source: "onSubmit: aBlock\x0a\x09self asJQuery bind: 'submit' do: aBlock",
  4637. referencedClasses: [],
  4638. //>>excludeEnd("ide");
  4639. messageSends: ["bind:do:", "asJQuery"]
  4640. }),
  4641. globals.TagBrush);
  4642. smalltalk.addMethod(
  4643. smalltalk.method({
  4644. selector: "onUnload:",
  4645. protocol: 'events',
  4646. fn: function (aBlock){
  4647. var self=this;
  4648. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4649. return smalltalk.withContext(function($ctx1) {
  4650. //>>excludeEnd("ctx");
  4651. _st(self._asJQuery())._bind_do_("unload",aBlock);
  4652. return self;
  4653. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4654. }, function($ctx1) {$ctx1.fill(self,"onUnload:",{aBlock:aBlock},globals.TagBrush)});
  4655. //>>excludeEnd("ctx");
  4656. },
  4657. //>>excludeStart("ide", pragmas.excludeIdeData);
  4658. args: ["aBlock"],
  4659. source: "onUnload: aBlock\x0a\x09self asJQuery bind: 'unload' do: aBlock",
  4660. referencedClasses: [],
  4661. //>>excludeEnd("ide");
  4662. messageSends: ["bind:do:", "asJQuery"]
  4663. }),
  4664. globals.TagBrush);
  4665. smalltalk.addMethod(
  4666. smalltalk.method({
  4667. selector: "placeholder:",
  4668. protocol: 'attributes',
  4669. fn: function (aString){
  4670. var self=this;
  4671. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4672. return smalltalk.withContext(function($ctx1) {
  4673. //>>excludeEnd("ctx");
  4674. self._at_put_("placeholder",aString);
  4675. return self;
  4676. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4677. }, function($ctx1) {$ctx1.fill(self,"placeholder:",{aString:aString},globals.TagBrush)});
  4678. //>>excludeEnd("ctx");
  4679. },
  4680. //>>excludeStart("ide", pragmas.excludeIdeData);
  4681. args: ["aString"],
  4682. source: "placeholder: aString\x0a\x09self at: 'placeholder' put: aString",
  4683. referencedClasses: [],
  4684. //>>excludeEnd("ide");
  4685. messageSends: ["at:put:"]
  4686. }),
  4687. globals.TagBrush);
  4688. smalltalk.addMethod(
  4689. smalltalk.method({
  4690. selector: "rel:",
  4691. protocol: 'attributes',
  4692. fn: function (aString){
  4693. var self=this;
  4694. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4695. return smalltalk.withContext(function($ctx1) {
  4696. //>>excludeEnd("ctx");
  4697. self._at_put_("rel",aString);
  4698. return self;
  4699. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4700. }, function($ctx1) {$ctx1.fill(self,"rel:",{aString:aString},globals.TagBrush)});
  4701. //>>excludeEnd("ctx");
  4702. },
  4703. //>>excludeStart("ide", pragmas.excludeIdeData);
  4704. args: ["aString"],
  4705. source: "rel: aString\x0a\x09self at: 'rel' put: aString",
  4706. referencedClasses: [],
  4707. //>>excludeEnd("ide");
  4708. messageSends: ["at:put:"]
  4709. }),
  4710. globals.TagBrush);
  4711. smalltalk.addMethod(
  4712. smalltalk.method({
  4713. selector: "removeAt:",
  4714. protocol: 'attributes',
  4715. fn: function (aString){
  4716. var self=this;
  4717. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4718. return smalltalk.withContext(function($ctx1) {
  4719. //>>excludeEnd("ctx");
  4720. self['@element'].removeAttribute(aString);
  4721. return self;
  4722. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4723. }, function($ctx1) {$ctx1.fill(self,"removeAt:",{aString:aString},globals.TagBrush)});
  4724. //>>excludeEnd("ctx");
  4725. },
  4726. //>>excludeStart("ide", pragmas.excludeIdeData);
  4727. args: ["aString"],
  4728. source: "removeAt: aString\x0a\x09<self['@element'].removeAttribute(aString)>",
  4729. referencedClasses: [],
  4730. //>>excludeEnd("ide");
  4731. messageSends: []
  4732. }),
  4733. globals.TagBrush);
  4734. smalltalk.addMethod(
  4735. smalltalk.method({
  4736. selector: "rows:",
  4737. protocol: 'attributes',
  4738. fn: function (aString){
  4739. var self=this;
  4740. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4741. return smalltalk.withContext(function($ctx1) {
  4742. //>>excludeEnd("ctx");
  4743. self._at_put_("rows",aString);
  4744. return self;
  4745. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4746. }, function($ctx1) {$ctx1.fill(self,"rows:",{aString:aString},globals.TagBrush)});
  4747. //>>excludeEnd("ctx");
  4748. },
  4749. //>>excludeStart("ide", pragmas.excludeIdeData);
  4750. args: ["aString"],
  4751. source: "rows: aString\x0a\x09self at: 'rows' put: aString",
  4752. referencedClasses: [],
  4753. //>>excludeEnd("ide");
  4754. messageSends: ["at:put:"]
  4755. }),
  4756. globals.TagBrush);
  4757. smalltalk.addMethod(
  4758. smalltalk.method({
  4759. selector: "src:",
  4760. protocol: 'attributes',
  4761. fn: function (aString){
  4762. var self=this;
  4763. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4764. return smalltalk.withContext(function($ctx1) {
  4765. //>>excludeEnd("ctx");
  4766. self._at_put_("src",aString);
  4767. return self;
  4768. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4769. }, function($ctx1) {$ctx1.fill(self,"src:",{aString:aString},globals.TagBrush)});
  4770. //>>excludeEnd("ctx");
  4771. },
  4772. //>>excludeStart("ide", pragmas.excludeIdeData);
  4773. args: ["aString"],
  4774. source: "src: aString\x0a\x09self at: 'src' put: aString",
  4775. referencedClasses: [],
  4776. //>>excludeEnd("ide");
  4777. messageSends: ["at:put:"]
  4778. }),
  4779. globals.TagBrush);
  4780. smalltalk.addMethod(
  4781. smalltalk.method({
  4782. selector: "style:",
  4783. protocol: 'attributes',
  4784. fn: function (aString){
  4785. var self=this;
  4786. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4787. return smalltalk.withContext(function($ctx1) {
  4788. //>>excludeEnd("ctx");
  4789. self._at_put_("style",aString);
  4790. return self;
  4791. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4792. }, function($ctx1) {$ctx1.fill(self,"style:",{aString:aString},globals.TagBrush)});
  4793. //>>excludeEnd("ctx");
  4794. },
  4795. //>>excludeStart("ide", pragmas.excludeIdeData);
  4796. args: ["aString"],
  4797. source: "style: aString\x0a\x09self at: 'style' put: aString",
  4798. referencedClasses: [],
  4799. //>>excludeEnd("ide");
  4800. messageSends: ["at:put:"]
  4801. }),
  4802. globals.TagBrush);
  4803. smalltalk.addMethod(
  4804. smalltalk.method({
  4805. selector: "tabindex:",
  4806. protocol: 'attributes',
  4807. fn: function (aNumber){
  4808. var self=this;
  4809. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4810. return smalltalk.withContext(function($ctx1) {
  4811. //>>excludeEnd("ctx");
  4812. self._at_put_("tabindex",aNumber);
  4813. return self;
  4814. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4815. }, function($ctx1) {$ctx1.fill(self,"tabindex:",{aNumber:aNumber},globals.TagBrush)});
  4816. //>>excludeEnd("ctx");
  4817. },
  4818. //>>excludeStart("ide", pragmas.excludeIdeData);
  4819. args: ["aNumber"],
  4820. source: "tabindex: aNumber\x0a\x09self at: 'tabindex' put: aNumber",
  4821. referencedClasses: [],
  4822. //>>excludeEnd("ide");
  4823. messageSends: ["at:put:"]
  4824. }),
  4825. globals.TagBrush);
  4826. smalltalk.addMethod(
  4827. smalltalk.method({
  4828. selector: "target:",
  4829. protocol: 'attributes',
  4830. fn: function (aString){
  4831. var self=this;
  4832. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4833. return smalltalk.withContext(function($ctx1) {
  4834. //>>excludeEnd("ctx");
  4835. self._at_put_("target",aString);
  4836. return self;
  4837. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4838. }, function($ctx1) {$ctx1.fill(self,"target:",{aString:aString},globals.TagBrush)});
  4839. //>>excludeEnd("ctx");
  4840. },
  4841. //>>excludeStart("ide", pragmas.excludeIdeData);
  4842. args: ["aString"],
  4843. source: "target: aString\x0a\x09self at: 'target' put: aString",
  4844. referencedClasses: [],
  4845. //>>excludeEnd("ide");
  4846. messageSends: ["at:put:"]
  4847. }),
  4848. globals.TagBrush);
  4849. smalltalk.addMethod(
  4850. smalltalk.method({
  4851. selector: "title:",
  4852. protocol: 'attributes',
  4853. fn: function (aString){
  4854. var self=this;
  4855. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4856. return smalltalk.withContext(function($ctx1) {
  4857. //>>excludeEnd("ctx");
  4858. self._at_put_("title",aString);
  4859. return self;
  4860. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4861. }, function($ctx1) {$ctx1.fill(self,"title:",{aString:aString},globals.TagBrush)});
  4862. //>>excludeEnd("ctx");
  4863. },
  4864. //>>excludeStart("ide", pragmas.excludeIdeData);
  4865. args: ["aString"],
  4866. source: "title: aString\x0a\x09self at: 'title' put: aString",
  4867. referencedClasses: [],
  4868. //>>excludeEnd("ide");
  4869. messageSends: ["at:put:"]
  4870. }),
  4871. globals.TagBrush);
  4872. smalltalk.addMethod(
  4873. smalltalk.method({
  4874. selector: "type:",
  4875. protocol: 'attributes',
  4876. fn: function (aString){
  4877. var self=this;
  4878. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4879. return smalltalk.withContext(function($ctx1) {
  4880. //>>excludeEnd("ctx");
  4881. self._at_put_("type",aString);
  4882. return self;
  4883. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4884. }, function($ctx1) {$ctx1.fill(self,"type:",{aString:aString},globals.TagBrush)});
  4885. //>>excludeEnd("ctx");
  4886. },
  4887. //>>excludeStart("ide", pragmas.excludeIdeData);
  4888. args: ["aString"],
  4889. source: "type: aString\x0a\x09self at: 'type' put: aString",
  4890. referencedClasses: [],
  4891. //>>excludeEnd("ide");
  4892. messageSends: ["at:put:"]
  4893. }),
  4894. globals.TagBrush);
  4895. smalltalk.addMethod(
  4896. smalltalk.method({
  4897. selector: "valign:",
  4898. protocol: 'attributes',
  4899. fn: function (aString){
  4900. var self=this;
  4901. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4902. return smalltalk.withContext(function($ctx1) {
  4903. //>>excludeEnd("ctx");
  4904. self._at_put_("valign",aString);
  4905. return self;
  4906. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4907. }, function($ctx1) {$ctx1.fill(self,"valign:",{aString:aString},globals.TagBrush)});
  4908. //>>excludeEnd("ctx");
  4909. },
  4910. //>>excludeStart("ide", pragmas.excludeIdeData);
  4911. args: ["aString"],
  4912. source: "valign: aString\x0a\x09self at: 'valign' put: aString",
  4913. referencedClasses: [],
  4914. //>>excludeEnd("ide");
  4915. messageSends: ["at:put:"]
  4916. }),
  4917. globals.TagBrush);
  4918. smalltalk.addMethod(
  4919. smalltalk.method({
  4920. selector: "value:",
  4921. protocol: 'attributes',
  4922. fn: function (aString){
  4923. var self=this;
  4924. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4925. return smalltalk.withContext(function($ctx1) {
  4926. //>>excludeEnd("ctx");
  4927. self._at_put_("value",aString);
  4928. return self;
  4929. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4930. }, function($ctx1) {$ctx1.fill(self,"value:",{aString:aString},globals.TagBrush)});
  4931. //>>excludeEnd("ctx");
  4932. },
  4933. //>>excludeStart("ide", pragmas.excludeIdeData);
  4934. args: ["aString"],
  4935. source: "value: aString\x0a\x09self at: 'value' put: aString",
  4936. referencedClasses: [],
  4937. //>>excludeEnd("ide");
  4938. messageSends: ["at:put:"]
  4939. }),
  4940. globals.TagBrush);
  4941. smalltalk.addMethod(
  4942. smalltalk.method({
  4943. selector: "width:",
  4944. protocol: 'attributes',
  4945. fn: function (aString){
  4946. var self=this;
  4947. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4948. return smalltalk.withContext(function($ctx1) {
  4949. //>>excludeEnd("ctx");
  4950. self._at_put_("width",aString);
  4951. return self;
  4952. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4953. }, function($ctx1) {$ctx1.fill(self,"width:",{aString:aString},globals.TagBrush)});
  4954. //>>excludeEnd("ctx");
  4955. },
  4956. //>>excludeStart("ide", pragmas.excludeIdeData);
  4957. args: ["aString"],
  4958. source: "width: aString\x0a\x09self at: 'width' put: aString",
  4959. referencedClasses: [],
  4960. //>>excludeEnd("ide");
  4961. messageSends: ["at:put:"]
  4962. }),
  4963. globals.TagBrush);
  4964. smalltalk.addMethod(
  4965. smalltalk.method({
  4966. selector: "with:",
  4967. protocol: 'adding',
  4968. fn: function (anObject){
  4969. var self=this;
  4970. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4971. return smalltalk.withContext(function($ctx1) {
  4972. //>>excludeEnd("ctx");
  4973. self._append_(anObject);
  4974. return self;
  4975. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4976. }, function($ctx1) {$ctx1.fill(self,"with:",{anObject:anObject},globals.TagBrush)});
  4977. //>>excludeEnd("ctx");
  4978. },
  4979. //>>excludeStart("ide", pragmas.excludeIdeData);
  4980. args: ["anObject"],
  4981. source: "with: anObject\x0a\x09self append: anObject",
  4982. referencedClasses: [],
  4983. //>>excludeEnd("ide");
  4984. messageSends: ["append:"]
  4985. }),
  4986. globals.TagBrush);
  4987. smalltalk.addMethod(
  4988. smalltalk.method({
  4989. selector: "fromJQuery:canvas:",
  4990. protocol: 'instance creation',
  4991. fn: function (aJQuery,aCanvas){
  4992. var self=this;
  4993. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4994. return smalltalk.withContext(function($ctx1) {
  4995. //>>excludeEnd("ctx");
  4996. var $2,$3,$1;
  4997. $2=self._new();
  4998. _st($2)._initializeFromJQuery_canvas_(aJQuery,aCanvas);
  4999. $3=_st($2)._yourself();
  5000. $1=$3;
  5001. return $1;
  5002. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5003. }, function($ctx1) {$ctx1.fill(self,"fromJQuery:canvas:",{aJQuery:aJQuery,aCanvas:aCanvas},globals.TagBrush.klass)});
  5004. //>>excludeEnd("ctx");
  5005. },
  5006. //>>excludeStart("ide", pragmas.excludeIdeData);
  5007. args: ["aJQuery", "aCanvas"],
  5008. source: "fromJQuery: aJQuery canvas: aCanvas\x0a\x09^ self new\x0a\x09\x09initializeFromJQuery: aJQuery canvas: aCanvas;\x0a\x09\x09yourself",
  5009. referencedClasses: [],
  5010. //>>excludeEnd("ide");
  5011. messageSends: ["initializeFromJQuery:canvas:", "new", "yourself"]
  5012. }),
  5013. globals.TagBrush.klass);
  5014. smalltalk.addMethod(
  5015. smalltalk.method({
  5016. selector: "fromString:canvas:",
  5017. protocol: 'instance creation',
  5018. fn: function (aString,aCanvas){
  5019. var self=this;
  5020. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5021. return smalltalk.withContext(function($ctx1) {
  5022. //>>excludeEnd("ctx");
  5023. var $2,$3,$1;
  5024. $2=self._new();
  5025. _st($2)._initializeFromString_canvas_(aString,aCanvas);
  5026. $3=_st($2)._yourself();
  5027. $1=$3;
  5028. return $1;
  5029. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5030. }, function($ctx1) {$ctx1.fill(self,"fromString:canvas:",{aString:aString,aCanvas:aCanvas},globals.TagBrush.klass)});
  5031. //>>excludeEnd("ctx");
  5032. },
  5033. //>>excludeStart("ide", pragmas.excludeIdeData);
  5034. args: ["aString", "aCanvas"],
  5035. source: "fromString: aString canvas: aCanvas\x0a\x09^ self new\x0a\x09initializeFromString: aString canvas: aCanvas;\x0a\x09yourself",
  5036. referencedClasses: [],
  5037. //>>excludeEnd("ide");
  5038. messageSends: ["initializeFromString:canvas:", "new", "yourself"]
  5039. }),
  5040. globals.TagBrush.klass);
  5041. smalltalk.addClass('Widget', globals.InterfacingObject, [], 'Web');
  5042. //>>excludeStart("ide", pragmas.excludeIdeData);
  5043. globals.Widget.comment="I am a presenter building HTML. Subclasses are typically reusable components.\x0a\x0a## API\x0a\x0aUse `#renderContentOn:` to build HTML. (See `HTMLCanvas` and `TagBrush` classes for more about building HTML).\x0a\x0aTo add a widget to the page, the convenience method `#appendToJQuery:` is very useful.\x0a\x0aExemple: \x0a\x0a Counter new appendToJQuery: 'body' asJQuery";
  5044. //>>excludeEnd("ide");
  5045. smalltalk.addMethod(
  5046. smalltalk.method({
  5047. selector: "appendToBrush:",
  5048. protocol: 'adding',
  5049. fn: function (aTagBrush){
  5050. var self=this;
  5051. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5052. return smalltalk.withContext(function($ctx1) {
  5053. //>>excludeEnd("ctx");
  5054. self._appendToJQuery_(_st(aTagBrush)._asJQuery());
  5055. return self;
  5056. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5057. }, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},globals.Widget)});
  5058. //>>excludeEnd("ctx");
  5059. },
  5060. //>>excludeStart("ide", pragmas.excludeIdeData);
  5061. args: ["aTagBrush"],
  5062. source: "appendToBrush: aTagBrush\x0a\x09self appendToJQuery: aTagBrush asJQuery",
  5063. referencedClasses: [],
  5064. //>>excludeEnd("ide");
  5065. messageSends: ["appendToJQuery:", "asJQuery"]
  5066. }),
  5067. globals.Widget);
  5068. smalltalk.addMethod(
  5069. smalltalk.method({
  5070. selector: "appendToJQuery:",
  5071. protocol: 'adding',
  5072. fn: function (aJQuery){
  5073. var self=this;
  5074. function $HTMLCanvas(){return globals.HTMLCanvas||(typeof HTMLCanvas=="undefined"?nil:HTMLCanvas)}
  5075. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5076. return smalltalk.withContext(function($ctx1) {
  5077. //>>excludeEnd("ctx");
  5078. self._renderOn_(_st($HTMLCanvas())._onJQuery_(aJQuery));
  5079. return self;
  5080. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5081. }, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery},globals.Widget)});
  5082. //>>excludeEnd("ctx");
  5083. },
  5084. //>>excludeStart("ide", pragmas.excludeIdeData);
  5085. args: ["aJQuery"],
  5086. source: "appendToJQuery: aJQuery\x0a\x09self renderOn: (HTMLCanvas onJQuery: aJQuery)",
  5087. referencedClasses: ["HTMLCanvas"],
  5088. //>>excludeEnd("ide");
  5089. messageSends: ["renderOn:", "onJQuery:"]
  5090. }),
  5091. globals.Widget);
  5092. smalltalk.addMethod(
  5093. smalltalk.method({
  5094. selector: "renderOn:",
  5095. protocol: 'rendering',
  5096. fn: function (html){
  5097. var self=this;
  5098. return self;
  5099. },
  5100. //>>excludeStart("ide", pragmas.excludeIdeData);
  5101. args: ["html"],
  5102. source: "renderOn: html\x0a\x09self",
  5103. referencedClasses: [],
  5104. //>>excludeEnd("ide");
  5105. messageSends: []
  5106. }),
  5107. globals.Widget);
  5108. smalltalk.addMethod(
  5109. smalltalk.method({
  5110. selector: "heliosClass",
  5111. protocol: 'helios',
  5112. fn: function (){
  5113. var self=this;
  5114. return "widget";
  5115. },
  5116. //>>excludeStart("ide", pragmas.excludeIdeData);
  5117. args: [],
  5118. source: "heliosClass\x0a\x09^ 'widget'",
  5119. referencedClasses: [],
  5120. //>>excludeEnd("ide");
  5121. messageSends: []
  5122. }),
  5123. globals.Widget.klass);
  5124. smalltalk.addMethod(
  5125. smalltalk.method({
  5126. selector: "appendToBrush:",
  5127. protocol: '*Web',
  5128. fn: function (aTagBrush){
  5129. var self=this;
  5130. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5131. return smalltalk.withContext(function($ctx1) {
  5132. //>>excludeEnd("ctx");
  5133. _st(aTagBrush)._appendBlock_(self);
  5134. return self;
  5135. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5136. }, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},globals.BlockClosure)});
  5137. //>>excludeEnd("ctx");
  5138. },
  5139. //>>excludeStart("ide", pragmas.excludeIdeData);
  5140. args: ["aTagBrush"],
  5141. source: "appendToBrush: aTagBrush\x0a\x09aTagBrush appendBlock: self",
  5142. referencedClasses: [],
  5143. //>>excludeEnd("ide");
  5144. messageSends: ["appendBlock:"]
  5145. }),
  5146. globals.BlockClosure);
  5147. smalltalk.addMethod(
  5148. smalltalk.method({
  5149. selector: "appendToJQuery:",
  5150. protocol: '*Web',
  5151. fn: function (aJQuery){
  5152. var self=this;
  5153. function $HTMLCanvas(){return globals.HTMLCanvas||(typeof HTMLCanvas=="undefined"?nil:HTMLCanvas)}
  5154. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5155. return smalltalk.withContext(function($ctx1) {
  5156. //>>excludeEnd("ctx");
  5157. self._value_(_st($HTMLCanvas())._onJQuery_(aJQuery));
  5158. return self;
  5159. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5160. }, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery},globals.BlockClosure)});
  5161. //>>excludeEnd("ctx");
  5162. },
  5163. //>>excludeStart("ide", pragmas.excludeIdeData);
  5164. args: ["aJQuery"],
  5165. source: "appendToJQuery: aJQuery\x0a\x09self value: (HTMLCanvas onJQuery: aJQuery)",
  5166. referencedClasses: ["HTMLCanvas"],
  5167. //>>excludeEnd("ide");
  5168. messageSends: ["value:", "onJQuery:"]
  5169. }),
  5170. globals.BlockClosure);
  5171. smalltalk.addMethod(
  5172. smalltalk.method({
  5173. selector: "asSnippet",
  5174. protocol: '*Web',
  5175. fn: function (){
  5176. var self=this;
  5177. function $HTMLSnippet(){return globals.HTMLSnippet||(typeof HTMLSnippet=="undefined"?nil:HTMLSnippet)}
  5178. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5179. return smalltalk.withContext(function($ctx1) {
  5180. //>>excludeEnd("ctx");
  5181. var $1;
  5182. $1=_st(_st($HTMLSnippet())._current())._snippetAt_(self._asString());
  5183. return $1;
  5184. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5185. }, function($ctx1) {$ctx1.fill(self,"asSnippet",{},globals.CharacterArray)});
  5186. //>>excludeEnd("ctx");
  5187. },
  5188. //>>excludeStart("ide", pragmas.excludeIdeData);
  5189. args: [],
  5190. source: "asSnippet\x0a\x09^ HTMLSnippet current snippetAt: self asString",
  5191. referencedClasses: ["HTMLSnippet"],
  5192. //>>excludeEnd("ide");
  5193. messageSends: ["snippetAt:", "current", "asString"]
  5194. }),
  5195. globals.CharacterArray);
  5196. smalltalk.addMethod(
  5197. smalltalk.method({
  5198. selector: "asJQuery",
  5199. protocol: '*Web',
  5200. fn: function (){
  5201. var self=this;
  5202. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5203. return smalltalk.withContext(function($ctx1) {
  5204. //>>excludeEnd("ctx");
  5205. return jQuery(self['@jsObject']);
  5206. return self;
  5207. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5208. }, function($ctx1) {$ctx1.fill(self,"asJQuery",{},globals.JSObjectProxy)});
  5209. //>>excludeEnd("ctx");
  5210. },
  5211. //>>excludeStart("ide", pragmas.excludeIdeData);
  5212. args: [],
  5213. source: "asJQuery\x0a\x09<return jQuery(self['@jsObject'])>",
  5214. referencedClasses: [],
  5215. //>>excludeEnd("ide");
  5216. messageSends: []
  5217. }),
  5218. globals.JSObjectProxy);
  5219. smalltalk.addMethod(
  5220. smalltalk.method({
  5221. selector: "asJQueryInContext:",
  5222. protocol: '*Web',
  5223. fn: function (aContext){
  5224. var self=this;
  5225. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5226. return smalltalk.withContext(function($ctx1) {
  5227. //>>excludeEnd("ctx");
  5228. return jQuery(self['@jsObject'], aContext);
  5229. return self;
  5230. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5231. }, function($ctx1) {$ctx1.fill(self,"asJQueryInContext:",{aContext:aContext},globals.JSObjectProxy)});
  5232. //>>excludeEnd("ctx");
  5233. },
  5234. //>>excludeStart("ide", pragmas.excludeIdeData);
  5235. args: ["aContext"],
  5236. source: "asJQueryInContext: aContext\x0a\x09<return jQuery(self['@jsObject'], aContext)>",
  5237. referencedClasses: [],
  5238. //>>excludeEnd("ide");
  5239. messageSends: []
  5240. }),
  5241. globals.JSObjectProxy);
  5242. smalltalk.addMethod(
  5243. smalltalk.method({
  5244. selector: "appendToBrush:",
  5245. protocol: '*Web',
  5246. fn: function (aTagBrush){
  5247. var self=this;
  5248. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5249. return smalltalk.withContext(function($ctx1) {
  5250. //>>excludeEnd("ctx");
  5251. _st(aTagBrush)._append_(self._asString());
  5252. return self;
  5253. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5254. }, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},globals.Object)});
  5255. //>>excludeEnd("ctx");
  5256. },
  5257. //>>excludeStart("ide", pragmas.excludeIdeData);
  5258. args: ["aTagBrush"],
  5259. source: "appendToBrush: aTagBrush\x0a\x09aTagBrush append: self asString",
  5260. referencedClasses: [],
  5261. //>>excludeEnd("ide");
  5262. messageSends: ["append:", "asString"]
  5263. }),
  5264. globals.Object);
  5265. smalltalk.addMethod(
  5266. smalltalk.method({
  5267. selector: "appendToJQuery:",
  5268. protocol: '*Web',
  5269. fn: function (aJQuery){
  5270. var self=this;
  5271. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5272. return smalltalk.withContext(function($ctx1) {
  5273. //>>excludeEnd("ctx");
  5274. _st(aJQuery)._append_(self._asString());
  5275. return self;
  5276. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5277. }, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery},globals.Object)});
  5278. //>>excludeEnd("ctx");
  5279. },
  5280. //>>excludeStart("ide", pragmas.excludeIdeData);
  5281. args: ["aJQuery"],
  5282. source: "appendToJQuery: aJQuery\x0a\x09aJQuery append: self asString",
  5283. referencedClasses: [],
  5284. //>>excludeEnd("ide");
  5285. messageSends: ["append:", "asString"]
  5286. }),
  5287. globals.Object);
  5288. smalltalk.addMethod(
  5289. smalltalk.method({
  5290. selector: "postMessageTo:",
  5291. protocol: '*Web',
  5292. fn: function (aFrame){
  5293. var self=this;
  5294. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5295. return smalltalk.withContext(function($ctx1) {
  5296. //>>excludeEnd("ctx");
  5297. var $1;
  5298. $1=self._postMessageTo_origin_(aFrame,"*");
  5299. return $1;
  5300. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5301. }, function($ctx1) {$ctx1.fill(self,"postMessageTo:",{aFrame:aFrame},globals.Object)});
  5302. //>>excludeEnd("ctx");
  5303. },
  5304. //>>excludeStart("ide", pragmas.excludeIdeData);
  5305. args: ["aFrame"],
  5306. source: "postMessageTo: aFrame\x0a^ self postMessageTo: aFrame origin: '*'",
  5307. referencedClasses: [],
  5308. //>>excludeEnd("ide");
  5309. messageSends: ["postMessageTo:origin:"]
  5310. }),
  5311. globals.Object);
  5312. smalltalk.addMethod(
  5313. smalltalk.method({
  5314. selector: "postMessageTo:origin:",
  5315. protocol: '*Web',
  5316. fn: function (aFrame,aString){
  5317. var self=this;
  5318. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5319. return smalltalk.withContext(function($ctx1) {
  5320. //>>excludeEnd("ctx");
  5321. return aFrame.postMessage(self, aString);
  5322. return self;
  5323. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5324. }, function($ctx1) {$ctx1.fill(self,"postMessageTo:origin:",{aFrame:aFrame,aString:aString},globals.Object)});
  5325. //>>excludeEnd("ctx");
  5326. },
  5327. //>>excludeStart("ide", pragmas.excludeIdeData);
  5328. args: ["aFrame", "aString"],
  5329. source: "postMessageTo: aFrame origin: aString\x0a<return aFrame.postMessage(self, aString)>",
  5330. referencedClasses: [],
  5331. //>>excludeEnd("ide");
  5332. messageSends: []
  5333. }),
  5334. globals.Object);
  5335. smalltalk.addMethod(
  5336. smalltalk.method({
  5337. selector: "appendToBrush:",
  5338. protocol: '*Web',
  5339. fn: function (aTagBrush){
  5340. var self=this;
  5341. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5342. return smalltalk.withContext(function($ctx1) {
  5343. //>>excludeEnd("ctx");
  5344. _st(aTagBrush)._appendString_(self);
  5345. return self;
  5346. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5347. }, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},globals.String)});
  5348. //>>excludeEnd("ctx");
  5349. },
  5350. //>>excludeStart("ide", pragmas.excludeIdeData);
  5351. args: ["aTagBrush"],
  5352. source: "appendToBrush: aTagBrush\x0a\x09aTagBrush appendString: self",
  5353. referencedClasses: [],
  5354. //>>excludeEnd("ide");
  5355. messageSends: ["appendString:"]
  5356. }),
  5357. globals.String);
  5358. smalltalk.addMethod(
  5359. smalltalk.method({
  5360. selector: "appendToJQuery:",
  5361. protocol: '*Web',
  5362. fn: function (aJQuery){
  5363. var self=this;
  5364. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5365. return smalltalk.withContext(function($ctx1) {
  5366. //>>excludeEnd("ctx");
  5367. _st(aJQuery)._append_(self);
  5368. return self;
  5369. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5370. }, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery},globals.String)});
  5371. //>>excludeEnd("ctx");
  5372. },
  5373. //>>excludeStart("ide", pragmas.excludeIdeData);
  5374. args: ["aJQuery"],
  5375. source: "appendToJQuery: aJQuery\x0a\x09aJQuery append: self",
  5376. referencedClasses: [],
  5377. //>>excludeEnd("ide");
  5378. messageSends: ["append:"]
  5379. }),
  5380. globals.String);
  5381. smalltalk.addMethod(
  5382. smalltalk.method({
  5383. selector: "asJQuery",
  5384. protocol: '*Web',
  5385. fn: function (){
  5386. var self=this;
  5387. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5388. return smalltalk.withContext(function($ctx1) {
  5389. //>>excludeEnd("ctx");
  5390. return jQuery(String(self));
  5391. return self;
  5392. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5393. }, function($ctx1) {$ctx1.fill(self,"asJQuery",{},globals.String)});
  5394. //>>excludeEnd("ctx");
  5395. },
  5396. //>>excludeStart("ide", pragmas.excludeIdeData);
  5397. args: [],
  5398. source: "asJQuery\x0a\x09<return jQuery(String(self))>",
  5399. referencedClasses: [],
  5400. //>>excludeEnd("ide");
  5401. messageSends: []
  5402. }),
  5403. globals.String);
  5404. smalltalk.addMethod(
  5405. smalltalk.method({
  5406. selector: "asJQueryInContext:",
  5407. protocol: '*Web',
  5408. fn: function (aContext){
  5409. var self=this;
  5410. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5411. return smalltalk.withContext(function($ctx1) {
  5412. //>>excludeEnd("ctx");
  5413. return jQuery(String(self), aContext);
  5414. return self;
  5415. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5416. }, function($ctx1) {$ctx1.fill(self,"asJQueryInContext:",{aContext:aContext},globals.String)});
  5417. //>>excludeEnd("ctx");
  5418. },
  5419. //>>excludeStart("ide", pragmas.excludeIdeData);
  5420. args: ["aContext"],
  5421. source: "asJQueryInContext: aContext\x0a\x09<return jQuery(String(self), aContext)>",
  5422. referencedClasses: [],
  5423. //>>excludeEnd("ide");
  5424. messageSends: []
  5425. }),
  5426. globals.String);
  5427. });