Web.js 161 KB

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