Web.js 161 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764
  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 $core=$boot.api,nil=$boot.nil,$recv=$boot.asReceiver,$globals=$boot.globals;
  3. $core.addPackage('Web');
  4. $core.packages["Web"].transport = {"type":"amd","amdNamespace":"amber_core"};
  5. $core.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. $core.addMethod(
  10. $core.method({
  11. selector: "ajax:",
  12. protocol: 'actions',
  13. fn: function (anObject){
  14. var self=this;
  15. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  16. return $core.withContext(function($ctx1) {
  17. //>>excludeEnd("ctx");
  18. var $1;
  19. $1=$recv(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. $core.addMethod(
  34. $core.method({
  35. selector: "alert:",
  36. protocol: 'actions',
  37. fn: function (aString){
  38. var self=this;
  39. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  40. return $core.withContext(function($ctx1) {
  41. //>>excludeEnd("ctx");
  42. var $1;
  43. $1=$recv(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. $core.addMethod(
  58. $core.method({
  59. selector: "confirm:",
  60. protocol: 'actions',
  61. fn: function (aString){
  62. var self=this;
  63. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  64. return $core.withContext(function($ctx1) {
  65. //>>excludeEnd("ctx");
  66. var $1;
  67. $1=$recv(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. $core.addMethod(
  82. $core.method({
  83. selector: "isAvailable",
  84. protocol: 'testing',
  85. fn: function (){
  86. var self=this;
  87. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  88. return $core.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. $core.addMethod(
  105. $core.method({
  106. selector: "prompt:",
  107. protocol: 'actions',
  108. fn: function (aString){
  109. var self=this;
  110. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  111. return $core.withContext(function($ctx1) {
  112. //>>excludeEnd("ctx");
  113. var $1;
  114. $1=$recv(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. $core.addMethod(
  129. $core.method({
  130. selector: "prompt:default:",
  131. protocol: 'actions',
  132. fn: function (aString,defaultString){
  133. var self=this;
  134. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  135. return $core.withContext(function($ctx1) {
  136. //>>excludeEnd("ctx");
  137. var $1;
  138. $1=$recv(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. $core.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. $core.addMethod(
  157. $core.method({
  158. selector: "a",
  159. protocol: 'tags',
  160. fn: function (){
  161. var self=this;
  162. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  163. return $core.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. $core.addMethod(
  181. $core.method({
  182. selector: "abbr",
  183. protocol: 'tags',
  184. fn: function (){
  185. var self=this;
  186. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  187. return $core.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. $core.addMethod(
  205. $core.method({
  206. selector: "address",
  207. protocol: 'tags',
  208. fn: function (){
  209. var self=this;
  210. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  211. return $core.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. $core.addMethod(
  229. $core.method({
  230. selector: "area",
  231. protocol: 'tags',
  232. fn: function (){
  233. var self=this;
  234. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  235. return $core.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. $core.addMethod(
  253. $core.method({
  254. selector: "article",
  255. protocol: 'tags',
  256. fn: function (){
  257. var self=this;
  258. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  259. return $core.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. $core.addMethod(
  277. $core.method({
  278. selector: "aside",
  279. protocol: 'tags',
  280. fn: function (){
  281. var self=this;
  282. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  283. return $core.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. $core.addMethod(
  301. $core.method({
  302. selector: "audio",
  303. protocol: 'tags',
  304. fn: function (){
  305. var self=this;
  306. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  307. return $core.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. $core.addMethod(
  325. $core.method({
  326. selector: "base",
  327. protocol: 'tags',
  328. fn: function (){
  329. var self=this;
  330. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  331. return $core.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. $core.addMethod(
  349. $core.method({
  350. selector: "blockquote",
  351. protocol: 'tags',
  352. fn: function (){
  353. var self=this;
  354. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  355. return $core.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. $core.addMethod(
  373. $core.method({
  374. selector: "body",
  375. protocol: 'tags',
  376. fn: function (){
  377. var self=this;
  378. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  379. return $core.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. $core.addMethod(
  397. $core.method({
  398. selector: "br",
  399. protocol: 'tags',
  400. fn: function (){
  401. var self=this;
  402. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  403. return $core.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. $core.addMethod(
  421. $core.method({
  422. selector: "button",
  423. protocol: 'tags',
  424. fn: function (){
  425. var self=this;
  426. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  427. return $core.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. $core.addMethod(
  445. $core.method({
  446. selector: "canvas",
  447. protocol: 'tags',
  448. fn: function (){
  449. var self=this;
  450. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  451. return $core.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. $core.addMethod(
  469. $core.method({
  470. selector: "caption",
  471. protocol: 'tags',
  472. fn: function (){
  473. var self=this;
  474. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  475. return $core.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. $core.addMethod(
  493. $core.method({
  494. selector: "cite",
  495. protocol: 'tags',
  496. fn: function (){
  497. var self=this;
  498. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  499. return $core.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. $core.addMethod(
  517. $core.method({
  518. selector: "code",
  519. protocol: 'tags',
  520. fn: function (){
  521. var self=this;
  522. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  523. return $core.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. $core.addMethod(
  541. $core.method({
  542. selector: "col",
  543. protocol: 'tags',
  544. fn: function (){
  545. var self=this;
  546. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  547. return $core.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. $core.addMethod(
  565. $core.method({
  566. selector: "colgroup",
  567. protocol: 'tags',
  568. fn: function (){
  569. var self=this;
  570. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  571. return $core.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. $core.addMethod(
  589. $core.method({
  590. selector: "command",
  591. protocol: 'tags',
  592. fn: function (){
  593. var self=this;
  594. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  595. return $core.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. $core.addMethod(
  613. $core.method({
  614. selector: "datalist",
  615. protocol: 'tags',
  616. fn: function (){
  617. var self=this;
  618. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  619. return $core.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. $core.addMethod(
  637. $core.method({
  638. selector: "dd",
  639. protocol: 'tags',
  640. fn: function (){
  641. var self=this;
  642. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  643. return $core.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. $core.addMethod(
  661. $core.method({
  662. selector: "del",
  663. protocol: 'tags',
  664. fn: function (){
  665. var self=this;
  666. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  667. return $core.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. $core.addMethod(
  685. $core.method({
  686. selector: "details",
  687. protocol: 'tags',
  688. fn: function (){
  689. var self=this;
  690. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  691. return $core.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. $core.addMethod(
  709. $core.method({
  710. selector: "div",
  711. protocol: 'tags',
  712. fn: function (){
  713. var self=this;
  714. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  715. return $core.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. $core.addMethod(
  733. $core.method({
  734. selector: "div:",
  735. protocol: 'tags',
  736. fn: function (aBlock){
  737. var self=this;
  738. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  739. return $core.withContext(function($ctx1) {
  740. //>>excludeEnd("ctx");
  741. var $1;
  742. $1=$recv(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. $core.addMethod(
  757. $core.method({
  758. selector: "dl",
  759. protocol: 'tags',
  760. fn: function (){
  761. var self=this;
  762. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  763. return $core.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. $core.addMethod(
  781. $core.method({
  782. selector: "dt",
  783. protocol: 'tags',
  784. fn: function (){
  785. var self=this;
  786. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  787. return $core.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. $core.addMethod(
  805. $core.method({
  806. selector: "em",
  807. protocol: 'tags',
  808. fn: function (){
  809. var self=this;
  810. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  811. return $core.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. $core.addMethod(
  829. $core.method({
  830. selector: "embed",
  831. protocol: 'tags',
  832. fn: function (){
  833. var self=this;
  834. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  835. return $core.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. $core.addMethod(
  853. $core.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 $core.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=$recv($4).__comma(";");
  869. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  870. $ctx1.sendIdx[","]=1;
  871. //>>excludeEnd("ctx");
  872. $1=$recv($2)._html_($3);
  873. result=$recv($1)._text();
  874. $5=$recv($recv(result)._size()).__eq((1));
  875. if(!$core.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. $core.addMethod(
  893. $core.method({
  894. selector: "fieldset",
  895. protocol: 'tags',
  896. fn: function (){
  897. var self=this;
  898. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  899. return $core.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. $core.addMethod(
  917. $core.method({
  918. selector: "figcaption",
  919. protocol: 'tags',
  920. fn: function (){
  921. var self=this;
  922. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  923. return $core.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. $core.addMethod(
  941. $core.method({
  942. selector: "figure",
  943. protocol: 'tags',
  944. fn: function (){
  945. var self=this;
  946. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  947. return $core.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. $core.addMethod(
  965. $core.method({
  966. selector: "footer",
  967. protocol: 'tags',
  968. fn: function (){
  969. var self=this;
  970. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  971. return $core.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. $core.addMethod(
  989. $core.method({
  990. selector: "form",
  991. protocol: 'tags',
  992. fn: function (){
  993. var self=this;
  994. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  995. return $core.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. $core.addMethod(
  1013. $core.method({
  1014. selector: "h1",
  1015. protocol: 'tags',
  1016. fn: function (){
  1017. var self=this;
  1018. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1019. return $core.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. $core.addMethod(
  1037. $core.method({
  1038. selector: "h1:",
  1039. protocol: 'tags',
  1040. fn: function (anObject){
  1041. var self=this;
  1042. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1043. return $core.withContext(function($ctx1) {
  1044. //>>excludeEnd("ctx");
  1045. var $1;
  1046. $1=$recv(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. $core.addMethod(
  1061. $core.method({
  1062. selector: "h2",
  1063. protocol: 'tags',
  1064. fn: function (){
  1065. var self=this;
  1066. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1067. return $core.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. $core.addMethod(
  1085. $core.method({
  1086. selector: "h2:",
  1087. protocol: 'tags',
  1088. fn: function (anObject){
  1089. var self=this;
  1090. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1091. return $core.withContext(function($ctx1) {
  1092. //>>excludeEnd("ctx");
  1093. var $1;
  1094. $1=$recv(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. $core.addMethod(
  1109. $core.method({
  1110. selector: "h3",
  1111. protocol: 'tags',
  1112. fn: function (){
  1113. var self=this;
  1114. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1115. return $core.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. $core.addMethod(
  1133. $core.method({
  1134. selector: "h3:",
  1135. protocol: 'tags',
  1136. fn: function (anObject){
  1137. var self=this;
  1138. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1139. return $core.withContext(function($ctx1) {
  1140. //>>excludeEnd("ctx");
  1141. var $1;
  1142. $1=$recv(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. $core.addMethod(
  1157. $core.method({
  1158. selector: "h4",
  1159. protocol: 'tags',
  1160. fn: function (){
  1161. var self=this;
  1162. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1163. return $core.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. $core.addMethod(
  1181. $core.method({
  1182. selector: "h4:",
  1183. protocol: 'tags',
  1184. fn: function (anObject){
  1185. var self=this;
  1186. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1187. return $core.withContext(function($ctx1) {
  1188. //>>excludeEnd("ctx");
  1189. var $1;
  1190. $1=$recv(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. $core.addMethod(
  1205. $core.method({
  1206. selector: "h5",
  1207. protocol: 'tags',
  1208. fn: function (){
  1209. var self=this;
  1210. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1211. return $core.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. $core.addMethod(
  1229. $core.method({
  1230. selector: "h5:",
  1231. protocol: 'tags',
  1232. fn: function (anObject){
  1233. var self=this;
  1234. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1235. return $core.withContext(function($ctx1) {
  1236. //>>excludeEnd("ctx");
  1237. var $1;
  1238. $1=$recv(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. $core.addMethod(
  1253. $core.method({
  1254. selector: "h6",
  1255. protocol: 'tags',
  1256. fn: function (){
  1257. var self=this;
  1258. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1259. return $core.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. $core.addMethod(
  1277. $core.method({
  1278. selector: "h6:",
  1279. protocol: 'tags',
  1280. fn: function (anObject){
  1281. var self=this;
  1282. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1283. return $core.withContext(function($ctx1) {
  1284. //>>excludeEnd("ctx");
  1285. var $1;
  1286. $1=$recv(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. $core.addMethod(
  1301. $core.method({
  1302. selector: "head",
  1303. protocol: 'tags',
  1304. fn: function (){
  1305. var self=this;
  1306. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1307. return $core.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. $core.addMethod(
  1325. $core.method({
  1326. selector: "header",
  1327. protocol: 'tags',
  1328. fn: function (){
  1329. var self=this;
  1330. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1331. return $core.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. $core.addMethod(
  1349. $core.method({
  1350. selector: "hgroup",
  1351. protocol: 'tags',
  1352. fn: function (){
  1353. var self=this;
  1354. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1355. return $core.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. $core.addMethod(
  1373. $core.method({
  1374. selector: "hr",
  1375. protocol: 'tags',
  1376. fn: function (){
  1377. var self=this;
  1378. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1379. return $core.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. $core.addMethod(
  1397. $core.method({
  1398. selector: "html",
  1399. protocol: 'tags',
  1400. fn: function (){
  1401. var self=this;
  1402. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1403. return $core.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. $core.addMethod(
  1421. $core.method({
  1422. selector: "iframe",
  1423. protocol: 'tags',
  1424. fn: function (){
  1425. var self=this;
  1426. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1427. return $core.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. $core.addMethod(
  1445. $core.method({
  1446. selector: "iframe:",
  1447. protocol: 'tags',
  1448. fn: function (aString){
  1449. var self=this;
  1450. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1451. return $core.withContext(function($ctx1) {
  1452. //>>excludeEnd("ctx");
  1453. var $1;
  1454. $1=$recv(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. $core.addMethod(
  1469. $core.method({
  1470. selector: "img",
  1471. protocol: 'tags',
  1472. fn: function (){
  1473. var self=this;
  1474. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1475. return $core.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. $core.addMethod(
  1493. $core.method({
  1494. selector: "img:",
  1495. protocol: 'tags',
  1496. fn: function (aString){
  1497. var self=this;
  1498. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1499. return $core.withContext(function($ctx1) {
  1500. //>>excludeEnd("ctx");
  1501. var $1;
  1502. $1=$recv(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. $core.addMethod(
  1517. $core.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 $core.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($recv(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"]=$recv($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. $core.addMethod(
  1556. $core.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 $core.withContext(function($ctx1) {
  1564. //>>excludeEnd("ctx");
  1565. self["@root"]=$recv($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. $core.addMethod(
  1580. $core.method({
  1581. selector: "input",
  1582. protocol: 'tags',
  1583. fn: function (){
  1584. var self=this;
  1585. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1586. return $core.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. $core.addMethod(
  1604. $core.method({
  1605. selector: "label",
  1606. protocol: 'tags',
  1607. fn: function (){
  1608. var self=this;
  1609. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1610. return $core.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. $core.addMethod(
  1628. $core.method({
  1629. selector: "legend",
  1630. protocol: 'tags',
  1631. fn: function (){
  1632. var self=this;
  1633. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1634. return $core.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. $core.addMethod(
  1652. $core.method({
  1653. selector: "li",
  1654. protocol: 'tags',
  1655. fn: function (){
  1656. var self=this;
  1657. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1658. return $core.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. $core.addMethod(
  1676. $core.method({
  1677. selector: "li:",
  1678. protocol: 'tags',
  1679. fn: function (anObject){
  1680. var self=this;
  1681. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1682. return $core.withContext(function($ctx1) {
  1683. //>>excludeEnd("ctx");
  1684. var $1;
  1685. $1=$recv(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. $core.addMethod(
  1700. $core.method({
  1701. selector: "link",
  1702. protocol: 'tags',
  1703. fn: function (){
  1704. var self=this;
  1705. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1706. return $core.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. $core.addMethod(
  1724. $core.method({
  1725. selector: "map",
  1726. protocol: 'tags',
  1727. fn: function (){
  1728. var self=this;
  1729. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1730. return $core.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. $core.addMethod(
  1748. $core.method({
  1749. selector: "mark",
  1750. protocol: 'tags',
  1751. fn: function (){
  1752. var self=this;
  1753. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1754. return $core.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. $core.addMethod(
  1772. $core.method({
  1773. selector: "menu",
  1774. protocol: 'tags',
  1775. fn: function (){
  1776. var self=this;
  1777. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1778. return $core.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. $core.addMethod(
  1796. $core.method({
  1797. selector: "meta",
  1798. protocol: 'tags',
  1799. fn: function (){
  1800. var self=this;
  1801. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1802. return $core.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. $core.addMethod(
  1820. $core.method({
  1821. selector: "nav",
  1822. protocol: 'tags',
  1823. fn: function (){
  1824. var self=this;
  1825. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1826. return $core.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. $core.addMethod(
  1844. $core.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 $core.withContext(function($ctx1) {
  1852. //>>excludeEnd("ctx");
  1853. var $1;
  1854. $1=$recv($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. $core.addMethod(
  1869. $core.method({
  1870. selector: "noscript",
  1871. protocol: 'tags',
  1872. fn: function (){
  1873. var self=this;
  1874. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1875. return $core.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. $core.addMethod(
  1893. $core.method({
  1894. selector: "object",
  1895. protocol: 'tags',
  1896. fn: function (){
  1897. var self=this;
  1898. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1899. return $core.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. $core.addMethod(
  1917. $core.method({
  1918. selector: "ol",
  1919. protocol: 'tags',
  1920. fn: function (){
  1921. var self=this;
  1922. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1923. return $core.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. $core.addMethod(
  1941. $core.method({
  1942. selector: "ol:",
  1943. protocol: 'tags',
  1944. fn: function (anObject){
  1945. var self=this;
  1946. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1947. return $core.withContext(function($ctx1) {
  1948. //>>excludeEnd("ctx");
  1949. var $1;
  1950. $1=$recv(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. $core.addMethod(
  1965. $core.method({
  1966. selector: "optgroup",
  1967. protocol: 'tags',
  1968. fn: function (){
  1969. var self=this;
  1970. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1971. return $core.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. $core.addMethod(
  1989. $core.method({
  1990. selector: "option",
  1991. protocol: 'tags',
  1992. fn: function (){
  1993. var self=this;
  1994. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1995. return $core.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. $core.addMethod(
  2013. $core.method({
  2014. selector: "output",
  2015. protocol: 'tags',
  2016. fn: function (){
  2017. var self=this;
  2018. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2019. return $core.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. $core.addMethod(
  2037. $core.method({
  2038. selector: "p",
  2039. protocol: 'tags',
  2040. fn: function (){
  2041. var self=this;
  2042. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2043. return $core.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. $core.addMethod(
  2061. $core.method({
  2062. selector: "p:",
  2063. protocol: 'tags',
  2064. fn: function (anObject){
  2065. var self=this;
  2066. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2067. return $core.withContext(function($ctx1) {
  2068. //>>excludeEnd("ctx");
  2069. var $1;
  2070. $1=$recv(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. $core.addMethod(
  2085. $core.method({
  2086. selector: "param",
  2087. protocol: 'tags',
  2088. fn: function (){
  2089. var self=this;
  2090. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2091. return $core.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. $core.addMethod(
  2109. $core.method({
  2110. selector: "pre",
  2111. protocol: 'tags',
  2112. fn: function (){
  2113. var self=this;
  2114. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2115. return $core.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. $core.addMethod(
  2133. $core.method({
  2134. selector: "progress",
  2135. protocol: 'tags',
  2136. fn: function (){
  2137. var self=this;
  2138. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2139. return $core.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. $core.addMethod(
  2157. $core.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. $core.addMethod(
  2175. $core.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. $core.addMethod(
  2192. $core.method({
  2193. selector: "script",
  2194. protocol: 'tags',
  2195. fn: function (){
  2196. var self=this;
  2197. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2198. return $core.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. $core.addMethod(
  2216. $core.method({
  2217. selector: "section",
  2218. protocol: 'tags',
  2219. fn: function (){
  2220. var self=this;
  2221. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2222. return $core.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. $core.addMethod(
  2240. $core.method({
  2241. selector: "select",
  2242. protocol: 'tags',
  2243. fn: function (){
  2244. var self=this;
  2245. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2246. return $core.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. $core.addMethod(
  2264. $core.method({
  2265. selector: "small",
  2266. protocol: 'tags',
  2267. fn: function (){
  2268. var self=this;
  2269. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2270. return $core.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. $core.addMethod(
  2288. $core.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 $core.withContext(function($ctx1) {
  2297. //>>excludeEnd("ctx");
  2298. var $1,$2,$3;
  2299. clone=$recv($recv(anElement)._asJQuery())._clone();
  2300. $1=$recv($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=$recv(clone)._find_("[data-snippet=\x22*\x22]");
  2306. $2=$recv($recv(caret)._toArray())._isEmpty();
  2307. if($core.assert($2)){
  2308. caret=clone;
  2309. caret;
  2310. };
  2311. $3=$recv($TagBrush())._fromJQuery_canvas_($recv(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. $core.addMethod(
  2326. $core.method({
  2327. selector: "source",
  2328. protocol: 'tags',
  2329. fn: function (){
  2330. var self=this;
  2331. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2332. return $core.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. $core.addMethod(
  2350. $core.method({
  2351. selector: "span",
  2352. protocol: 'tags',
  2353. fn: function (){
  2354. var self=this;
  2355. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2356. return $core.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. $core.addMethod(
  2374. $core.method({
  2375. selector: "span:",
  2376. protocol: 'tags',
  2377. fn: function (anObject){
  2378. var self=this;
  2379. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2380. return $core.withContext(function($ctx1) {
  2381. //>>excludeEnd("ctx");
  2382. var $1;
  2383. $1=$recv(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. $core.addMethod(
  2398. $core.method({
  2399. selector: "strong",
  2400. protocol: 'tags',
  2401. fn: function (){
  2402. var self=this;
  2403. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2404. return $core.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. $core.addMethod(
  2422. $core.method({
  2423. selector: "strong:",
  2424. protocol: 'tags',
  2425. fn: function (anObject){
  2426. var self=this;
  2427. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2428. return $core.withContext(function($ctx1) {
  2429. //>>excludeEnd("ctx");
  2430. var $1;
  2431. $1=$recv(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. $core.addMethod(
  2446. $core.method({
  2447. selector: "style",
  2448. protocol: 'tags',
  2449. fn: function (){
  2450. var self=this;
  2451. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2452. return $core.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. $core.addMethod(
  2470. $core.method({
  2471. selector: "style:",
  2472. protocol: 'tags',
  2473. fn: function (aString){
  2474. var self=this;
  2475. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2476. return $core.withContext(function($ctx1) {
  2477. //>>excludeEnd("ctx");
  2478. var $2,$3,$1;
  2479. $2=self._style();
  2480. $recv($2)._with_(aString);
  2481. $3=$recv($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. $core.addMethod(
  2497. $core.method({
  2498. selector: "sub",
  2499. protocol: 'tags',
  2500. fn: function (){
  2501. var self=this;
  2502. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2503. return $core.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. $core.addMethod(
  2521. $core.method({
  2522. selector: "summary",
  2523. protocol: 'tags',
  2524. fn: function (){
  2525. var self=this;
  2526. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2527. return $core.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. $core.addMethod(
  2545. $core.method({
  2546. selector: "sup",
  2547. protocol: 'tags',
  2548. fn: function (){
  2549. var self=this;
  2550. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2551. return $core.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. $core.addMethod(
  2569. $core.method({
  2570. selector: "table",
  2571. protocol: 'tags',
  2572. fn: function (){
  2573. var self=this;
  2574. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2575. return $core.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. $core.addMethod(
  2593. $core.method({
  2594. selector: "tag:",
  2595. protocol: 'tags',
  2596. fn: function (aString){
  2597. var self=this;
  2598. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2599. return $core.withContext(function($ctx1) {
  2600. //>>excludeEnd("ctx");
  2601. var $1;
  2602. $1=$recv(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. $core.addMethod(
  2617. $core.method({
  2618. selector: "tbody",
  2619. protocol: 'tags',
  2620. fn: function (){
  2621. var self=this;
  2622. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2623. return $core.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. $core.addMethod(
  2641. $core.method({
  2642. selector: "td",
  2643. protocol: 'tags',
  2644. fn: function (){
  2645. var self=this;
  2646. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2647. return $core.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. $core.addMethod(
  2665. $core.method({
  2666. selector: "textarea",
  2667. protocol: 'tags',
  2668. fn: function (){
  2669. var self=this;
  2670. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2671. return $core.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. $core.addMethod(
  2689. $core.method({
  2690. selector: "tfoot",
  2691. protocol: 'tags',
  2692. fn: function (){
  2693. var self=this;
  2694. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2695. return $core.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. $core.addMethod(
  2713. $core.method({
  2714. selector: "th",
  2715. protocol: 'tags',
  2716. fn: function (){
  2717. var self=this;
  2718. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2719. return $core.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. $core.addMethod(
  2737. $core.method({
  2738. selector: "thead",
  2739. protocol: 'tags',
  2740. fn: function (){
  2741. var self=this;
  2742. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2743. return $core.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. $core.addMethod(
  2761. $core.method({
  2762. selector: "time",
  2763. protocol: 'tags',
  2764. fn: function (){
  2765. var self=this;
  2766. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2767. return $core.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. $core.addMethod(
  2785. $core.method({
  2786. selector: "title",
  2787. protocol: 'tags',
  2788. fn: function (){
  2789. var self=this;
  2790. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2791. return $core.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. $core.addMethod(
  2809. $core.method({
  2810. selector: "tr",
  2811. protocol: 'tags',
  2812. fn: function (){
  2813. var self=this;
  2814. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2815. return $core.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. $core.addMethod(
  2833. $core.method({
  2834. selector: "ul",
  2835. protocol: 'tags',
  2836. fn: function (){
  2837. var self=this;
  2838. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2839. return $core.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. $core.addMethod(
  2857. $core.method({
  2858. selector: "ul:",
  2859. protocol: 'tags',
  2860. fn: function (anObject){
  2861. var self=this;
  2862. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2863. return $core.withContext(function($ctx1) {
  2864. //>>excludeEnd("ctx");
  2865. var $1;
  2866. $1=$recv(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. $core.addMethod(
  2881. $core.method({
  2882. selector: "video",
  2883. protocol: 'tags',
  2884. fn: function (){
  2885. var self=this;
  2886. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2887. return $core.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. $core.addMethod(
  2905. $core.method({
  2906. selector: "with:",
  2907. protocol: 'adding',
  2908. fn: function (anObject){
  2909. var self=this;
  2910. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2911. return $core.withContext(function($ctx1) {
  2912. //>>excludeEnd("ctx");
  2913. var $1;
  2914. $1=$recv(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. $core.addMethod(
  2929. $core.method({
  2930. selector: "initialize",
  2931. protocol: 'initialization',
  2932. fn: function (){
  2933. var self=this;
  2934. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2935. return $core.withContext(function($ctx1) {
  2936. //>>excludeEnd("ctx");
  2937. $recv(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. $core.addMethod(
  2952. $core.method({
  2953. selector: "onJQuery:",
  2954. protocol: 'instance creation',
  2955. fn: function (aJQuery){
  2956. var self=this;
  2957. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2958. return $core.withContext(function($ctx1) {
  2959. //>>excludeEnd("ctx");
  2960. var $2,$3,$1;
  2961. $2=self._basicNew();
  2962. $recv($2)._initializeFromJQuery_(aJQuery);
  2963. $recv($2)._initialize();
  2964. $3=$recv($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. $core.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. $core.addMethod(
  2984. $core.method({
  2985. selector: "initializeFromJQuery:",
  2986. protocol: 'initialization',
  2987. fn: function (aJQuery){
  2988. var self=this;
  2989. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2990. return $core.withContext(function($ctx1) {
  2991. //>>excludeEnd("ctx");
  2992. $recv(self._snippetsFromJQuery_(aJQuery))._do_((function(each){
  2993. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2994. return $core.withContext(function($ctx2) {
  2995. //>>excludeEnd("ctx");
  2996. return self._installSnippetFromJQuery_($recv(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. $core.addMethod(
  3015. $core.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 $core.withContext(function($ctx1) {
  3023. //>>excludeEnd("ctx");
  3024. var $1,$2;
  3025. name=$recv(element)._attr_("data-snippet");
  3026. $1=$recv(name).__eq("*");
  3027. if(!$core.assert($1)){
  3028. $2=$recv("^\x5c*"._asRegexp())._test_(name);
  3029. if($core.assert($2)){
  3030. name=$recv(name)._allButFirst();
  3031. name;
  3032. $recv(element)._attr_put_("data-snippet","*");
  3033. } else {
  3034. $recv(element)._removeAttr_("data-snippet");
  3035. };
  3036. self._snippetAt_install_(name,$recv($recv(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. $core.addMethod(
  3052. $core.method({
  3053. selector: "snippetAt:",
  3054. protocol: 'accessing',
  3055. fn: function (aString){
  3056. var self=this;
  3057. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3058. return $core.withContext(function($ctx1) {
  3059. //>>excludeEnd("ctx");
  3060. var $1;
  3061. $1=$recv(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. $core.addMethod(
  3076. $core.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 $core.withContext(function($ctx1) {
  3085. //>>excludeEnd("ctx");
  3086. $recv($recv($ClassBuilder())._new())._installMethod_forClass_protocol_($recv($recv((function(htmlReceiver){
  3087. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3088. return $core.withContext(function($ctx2) {
  3089. //>>excludeEnd("ctx");
  3090. return $recv(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. $core.addMethod(
  3109. $core.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 $core.withContext(function($ctx1) {
  3116. //>>excludeEnd("ctx");
  3117. $recv(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. $core.addMethod(
  3133. $core.method({
  3134. selector: "snippets",
  3135. protocol: 'accessing',
  3136. fn: function (){
  3137. var self=this;
  3138. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3139. return $core.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. $core.addMethod(
  3163. $core.method({
  3164. selector: "snippetsFromJQuery:",
  3165. protocol: 'private',
  3166. fn: function (aJQuery){
  3167. var self=this;
  3168. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3169. return $core.withContext(function($ctx1) {
  3170. //>>excludeEnd("ctx");
  3171. var $1;
  3172. $1=$recv($recv(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. $core.addMethod(
  3188. $core.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. $core.addMethod(
  3206. $core.method({
  3207. selector: "ensureCurrent",
  3208. protocol: 'initialization',
  3209. fn: function (){
  3210. var self=this;
  3211. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3212. return $core.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($recv(self), []));
  3222. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3223. $ctx1.supercall = false;
  3224. //>>excludeEnd("ctx");;
  3225. $recv($2)._initializeFromJQuery_($recv(document)._asJQuery());
  3226. $3=$recv($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. $core.addMethod(
  3246. $core.method({
  3247. selector: "initialize",
  3248. protocol: 'initialization',
  3249. fn: function (){
  3250. var self=this;
  3251. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3252. return $core.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($recv(self), []));
  3260. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3261. $ctx1.supercall = false;
  3262. //>>excludeEnd("ctx");;
  3263. $1=self._isDOMAvailable();
  3264. if($core.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. $core.addMethod(
  3281. $core.method({
  3282. selector: "isDOMAvailable",
  3283. protocol: 'instance creation',
  3284. fn: function (){
  3285. var self=this;
  3286. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3287. return $core.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. $core.addMethod(
  3304. $core.method({
  3305. selector: "new",
  3306. protocol: 'instance creation',
  3307. fn: function (){
  3308. var self=this;
  3309. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3310. return $core.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. $core.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. $core.addMethod(
  3331. $core.method({
  3332. selector: "accesskey:",
  3333. protocol: 'attributes',
  3334. fn: function (aString){
  3335. var self=this;
  3336. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3337. return $core.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. $core.addMethod(
  3354. $core.method({
  3355. selector: "action:",
  3356. protocol: 'attributes',
  3357. fn: function (aString){
  3358. var self=this;
  3359. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3360. return $core.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. $core.addMethod(
  3377. $core.method({
  3378. selector: "addBrush:",
  3379. protocol: 'adding',
  3380. fn: function (aTagBrush){
  3381. var self=this;
  3382. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3383. return $core.withContext(function($ctx1) {
  3384. //>>excludeEnd("ctx");
  3385. self._appendChild_($recv(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. $core.addMethod(
  3400. $core.method({
  3401. selector: "align:",
  3402. protocol: 'attributes',
  3403. fn: function (aString){
  3404. var self=this;
  3405. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3406. return $core.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. $core.addMethod(
  3423. $core.method({
  3424. selector: "alt:",
  3425. protocol: 'attributes',
  3426. fn: function (aString){
  3427. var self=this;
  3428. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3429. return $core.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. $core.addMethod(
  3446. $core.method({
  3447. selector: "append:",
  3448. protocol: 'adding',
  3449. fn: function (anObject){
  3450. var self=this;
  3451. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3452. return $core.withContext(function($ctx1) {
  3453. //>>excludeEnd("ctx");
  3454. $recv(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. $core.addMethod(
  3469. $core.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 $core.withContext(function($ctx1) {
  3477. //>>excludeEnd("ctx");
  3478. root=$recv(self["@canvas"])._root();
  3479. $recv(self["@canvas"])._root_(self);
  3480. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3481. $ctx1.sendIdx["root:"]=1;
  3482. //>>excludeEnd("ctx");
  3483. $recv(aBlock)._value_(self["@canvas"]);
  3484. $recv(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. $core.addMethod(
  3499. $core.method({
  3500. selector: "appendChild:",
  3501. protocol: 'adding',
  3502. fn: function (anElement){
  3503. var self=this;
  3504. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3505. return $core.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. $core.addMethod(
  3527. $core.method({
  3528. selector: "appendDocumentFragment:",
  3529. protocol: 'private',
  3530. fn: function (anElement){
  3531. var self=this;
  3532. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3533. return $core.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. $core.addMethod(
  3550. $core.method({
  3551. selector: "appendString:",
  3552. protocol: 'adding',
  3553. fn: function (aString){
  3554. var self=this;
  3555. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3556. return $core.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. $core.addMethod(
  3573. $core.method({
  3574. selector: "appendToBrush:",
  3575. protocol: 'adding',
  3576. fn: function (aTagBrush){
  3577. var self=this;
  3578. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3579. return $core.withContext(function($ctx1) {
  3580. //>>excludeEnd("ctx");
  3581. $recv(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. $core.addMethod(
  3596. $core.method({
  3597. selector: "asJQuery",
  3598. protocol: 'converting',
  3599. fn: function (){
  3600. var self=this;
  3601. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3602. return $core.withContext(function($ctx1) {
  3603. //>>excludeEnd("ctx");
  3604. var $1;
  3605. $1=$recv(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. $core.addMethod(
  3620. $core.method({
  3621. selector: "asJQueryInContext:",
  3622. protocol: 'converting',
  3623. fn: function (aContext){
  3624. var self=this;
  3625. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3626. return $core.withContext(function($ctx1) {
  3627. //>>excludeEnd("ctx");
  3628. var $1;
  3629. $1=$recv(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. $core.addMethod(
  3644. $core.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 $core.withContext(function($ctx1) {
  3652. //>>excludeEnd("ctx");
  3653. var $1;
  3654. $1=self._at_ifAbsent_(aString,(function(){
  3655. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3656. return $core.withContext(function($ctx2) {
  3657. //>>excludeEnd("ctx");
  3658. return $recv($recv($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. $core.addMethod(
  3677. $core.method({
  3678. selector: "at:ifAbsent:",
  3679. protocol: 'attributes',
  3680. fn: function (aString,aBlock){
  3681. var self=this;
  3682. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3683. return $core.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. $core.addMethod(
  3700. $core.method({
  3701. selector: "at:put:",
  3702. protocol: 'attributes',
  3703. fn: function (aString,aValue){
  3704. var self=this;
  3705. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3706. return $core.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. $core.addMethod(
  3723. $core.method({
  3724. selector: "class:",
  3725. protocol: 'attributes',
  3726. fn: function (aString){
  3727. var self=this;
  3728. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3729. return $core.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. $core.addMethod(
  3746. $core.method({
  3747. selector: "cols:",
  3748. protocol: 'attributes',
  3749. fn: function (aString){
  3750. var self=this;
  3751. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3752. return $core.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. $core.addMethod(
  3769. $core.method({
  3770. selector: "contenteditable:",
  3771. protocol: 'attributes',
  3772. fn: function (aString){
  3773. var self=this;
  3774. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3775. return $core.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. $core.addMethod(
  3792. $core.method({
  3793. selector: "contents:",
  3794. protocol: 'adding',
  3795. fn: function (anObject){
  3796. var self=this;
  3797. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3798. return $core.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. $core.addMethod(
  3817. $core.method({
  3818. selector: "contextmenu:",
  3819. protocol: 'attributes',
  3820. fn: function (aString){
  3821. var self=this;
  3822. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3823. return $core.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. $core.addMethod(
  3840. $core.method({
  3841. selector: "createElementFor:",
  3842. protocol: 'private',
  3843. fn: function (aString){
  3844. var self=this;
  3845. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3846. return $core.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. $core.addMethod(
  3863. $core.method({
  3864. selector: "createTextNodeFor:",
  3865. protocol: 'private',
  3866. fn: function (aString){
  3867. var self=this;
  3868. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3869. return $core.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. $core.addMethod(
  3886. $core.method({
  3887. selector: "draggable:",
  3888. protocol: 'attributes',
  3889. fn: function (aString){
  3890. var self=this;
  3891. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3892. return $core.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. $core.addMethod(
  3909. $core.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. $core.addMethod(
  3927. $core.method({
  3928. selector: "empty",
  3929. protocol: 'adding',
  3930. fn: function (){
  3931. var self=this;
  3932. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3933. return $core.withContext(function($ctx1) {
  3934. //>>excludeEnd("ctx");
  3935. $recv(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. $core.addMethod(
  3950. $core.method({
  3951. selector: "for:",
  3952. protocol: 'attributes',
  3953. fn: function (aString){
  3954. var self=this;
  3955. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3956. return $core.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. $core.addMethod(
  3973. $core.method({
  3974. selector: "height:",
  3975. protocol: 'attributes',
  3976. fn: function (aString){
  3977. var self=this;
  3978. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  3979. return $core.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. $core.addMethod(
  3996. $core.method({
  3997. selector: "hidden",
  3998. protocol: 'attributes',
  3999. fn: function (){
  4000. var self=this;
  4001. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4002. return $core.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. $core.addMethod(
  4019. $core.method({
  4020. selector: "href:",
  4021. protocol: 'attributes',
  4022. fn: function (aString){
  4023. var self=this;
  4024. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4025. return $core.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. $core.addMethod(
  4042. $core.method({
  4043. selector: "id:",
  4044. protocol: 'attributes',
  4045. fn: function (aString){
  4046. var self=this;
  4047. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4048. return $core.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. $core.addMethod(
  4065. $core.method({
  4066. selector: "initializeFromJQuery:canvas:",
  4067. protocol: 'initialization',
  4068. fn: function (aJQuery,aCanvas){
  4069. var self=this;
  4070. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4071. return $core.withContext(function($ctx1) {
  4072. //>>excludeEnd("ctx");
  4073. self["@element"]=$recv(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. $core.addMethod(
  4089. $core.method({
  4090. selector: "initializeFromString:canvas:",
  4091. protocol: 'initialization',
  4092. fn: function (aString,aCanvas){
  4093. var self=this;
  4094. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4095. return $core.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. $core.addMethod(
  4113. $core.method({
  4114. selector: "media:",
  4115. protocol: 'attributes',
  4116. fn: function (aString){
  4117. var self=this;
  4118. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4119. return $core.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. $core.addMethod(
  4136. $core.method({
  4137. selector: "method:",
  4138. protocol: 'attributes',
  4139. fn: function (aString){
  4140. var self=this;
  4141. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4142. return $core.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. $core.addMethod(
  4159. $core.method({
  4160. selector: "name:",
  4161. protocol: 'attributes',
  4162. fn: function (aString){
  4163. var self=this;
  4164. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4165. return $core.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. $core.addMethod(
  4182. $core.method({
  4183. selector: "onBlur:",
  4184. protocol: 'events',
  4185. fn: function (aBlock){
  4186. var self=this;
  4187. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4188. return $core.withContext(function($ctx1) {
  4189. //>>excludeEnd("ctx");
  4190. $recv(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. $core.addMethod(
  4205. $core.method({
  4206. selector: "onChange:",
  4207. protocol: 'events',
  4208. fn: function (aBlock){
  4209. var self=this;
  4210. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4211. return $core.withContext(function($ctx1) {
  4212. //>>excludeEnd("ctx");
  4213. $recv(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. $core.addMethod(
  4228. $core.method({
  4229. selector: "onClick:",
  4230. protocol: 'events',
  4231. fn: function (aBlock){
  4232. var self=this;
  4233. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4234. return $core.withContext(function($ctx1) {
  4235. //>>excludeEnd("ctx");
  4236. $recv(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. $core.addMethod(
  4251. $core.method({
  4252. selector: "onDblClick:",
  4253. protocol: 'events',
  4254. fn: function (aBlock){
  4255. var self=this;
  4256. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4257. return $core.withContext(function($ctx1) {
  4258. //>>excludeEnd("ctx");
  4259. $recv(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. $core.addMethod(
  4274. $core.method({
  4275. selector: "onFocus:",
  4276. protocol: 'events',
  4277. fn: function (aBlock){
  4278. var self=this;
  4279. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4280. return $core.withContext(function($ctx1) {
  4281. //>>excludeEnd("ctx");
  4282. $recv(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. $core.addMethod(
  4297. $core.method({
  4298. selector: "onFocusIn:",
  4299. protocol: 'events',
  4300. fn: function (aBlock){
  4301. var self=this;
  4302. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4303. return $core.withContext(function($ctx1) {
  4304. //>>excludeEnd("ctx");
  4305. $recv(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. $core.addMethod(
  4320. $core.method({
  4321. selector: "onFocusOut:",
  4322. protocol: 'events',
  4323. fn: function (aBlock){
  4324. var self=this;
  4325. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4326. return $core.withContext(function($ctx1) {
  4327. //>>excludeEnd("ctx");
  4328. $recv(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. $core.addMethod(
  4343. $core.method({
  4344. selector: "onHover:",
  4345. protocol: 'events',
  4346. fn: function (aBlock){
  4347. var self=this;
  4348. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4349. return $core.withContext(function($ctx1) {
  4350. //>>excludeEnd("ctx");
  4351. $recv(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. $core.addMethod(
  4366. $core.method({
  4367. selector: "onKeyDown:",
  4368. protocol: 'events',
  4369. fn: function (aBlock){
  4370. var self=this;
  4371. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4372. return $core.withContext(function($ctx1) {
  4373. //>>excludeEnd("ctx");
  4374. $recv(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. $core.addMethod(
  4389. $core.method({
  4390. selector: "onKeyPress:",
  4391. protocol: 'events',
  4392. fn: function (aBlock){
  4393. var self=this;
  4394. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4395. return $core.withContext(function($ctx1) {
  4396. //>>excludeEnd("ctx");
  4397. $recv(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. $core.addMethod(
  4412. $core.method({
  4413. selector: "onKeyUp:",
  4414. protocol: 'events',
  4415. fn: function (aBlock){
  4416. var self=this;
  4417. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4418. return $core.withContext(function($ctx1) {
  4419. //>>excludeEnd("ctx");
  4420. $recv(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. $core.addMethod(
  4435. $core.method({
  4436. selector: "onMouseDown:",
  4437. protocol: 'events',
  4438. fn: function (aBlock){
  4439. var self=this;
  4440. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4441. return $core.withContext(function($ctx1) {
  4442. //>>excludeEnd("ctx");
  4443. $recv(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. $core.addMethod(
  4458. $core.method({
  4459. selector: "onMouseEnter:",
  4460. protocol: 'events',
  4461. fn: function (aBlock){
  4462. var self=this;
  4463. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4464. return $core.withContext(function($ctx1) {
  4465. //>>excludeEnd("ctx");
  4466. $recv(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. $core.addMethod(
  4481. $core.method({
  4482. selector: "onMouseLeave:",
  4483. protocol: 'events',
  4484. fn: function (aBlock){
  4485. var self=this;
  4486. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4487. return $core.withContext(function($ctx1) {
  4488. //>>excludeEnd("ctx");
  4489. $recv(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. $core.addMethod(
  4504. $core.method({
  4505. selector: "onMouseMove:",
  4506. protocol: 'events',
  4507. fn: function (aBlock){
  4508. var self=this;
  4509. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4510. return $core.withContext(function($ctx1) {
  4511. //>>excludeEnd("ctx");
  4512. $recv(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. $core.addMethod(
  4527. $core.method({
  4528. selector: "onMouseOut:",
  4529. protocol: 'events',
  4530. fn: function (aBlock){
  4531. var self=this;
  4532. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4533. return $core.withContext(function($ctx1) {
  4534. //>>excludeEnd("ctx");
  4535. $recv(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. $core.addMethod(
  4550. $core.method({
  4551. selector: "onMouseOver:",
  4552. protocol: 'events',
  4553. fn: function (aBlock){
  4554. var self=this;
  4555. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4556. return $core.withContext(function($ctx1) {
  4557. //>>excludeEnd("ctx");
  4558. $recv(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. $core.addMethod(
  4573. $core.method({
  4574. selector: "onMouseUp:",
  4575. protocol: 'events',
  4576. fn: function (aBlock){
  4577. var self=this;
  4578. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4579. return $core.withContext(function($ctx1) {
  4580. //>>excludeEnd("ctx");
  4581. $recv(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. $core.addMethod(
  4596. $core.method({
  4597. selector: "onSelect:",
  4598. protocol: 'events',
  4599. fn: function (aBlock){
  4600. var self=this;
  4601. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4602. return $core.withContext(function($ctx1) {
  4603. //>>excludeEnd("ctx");
  4604. $recv(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. $core.addMethod(
  4619. $core.method({
  4620. selector: "onSubmit:",
  4621. protocol: 'events',
  4622. fn: function (aBlock){
  4623. var self=this;
  4624. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4625. return $core.withContext(function($ctx1) {
  4626. //>>excludeEnd("ctx");
  4627. $recv(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. $core.addMethod(
  4642. $core.method({
  4643. selector: "onUnload:",
  4644. protocol: 'events',
  4645. fn: function (aBlock){
  4646. var self=this;
  4647. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4648. return $core.withContext(function($ctx1) {
  4649. //>>excludeEnd("ctx");
  4650. $recv(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. $core.addMethod(
  4665. $core.method({
  4666. selector: "placeholder:",
  4667. protocol: 'attributes',
  4668. fn: function (aString){
  4669. var self=this;
  4670. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4671. return $core.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. $core.addMethod(
  4688. $core.method({
  4689. selector: "rel:",
  4690. protocol: 'attributes',
  4691. fn: function (aString){
  4692. var self=this;
  4693. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4694. return $core.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. $core.addMethod(
  4711. $core.method({
  4712. selector: "removeAt:",
  4713. protocol: 'attributes',
  4714. fn: function (aString){
  4715. var self=this;
  4716. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4717. return $core.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. $core.addMethod(
  4734. $core.method({
  4735. selector: "rows:",
  4736. protocol: 'attributes',
  4737. fn: function (aString){
  4738. var self=this;
  4739. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4740. return $core.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. $core.addMethod(
  4757. $core.method({
  4758. selector: "src:",
  4759. protocol: 'attributes',
  4760. fn: function (aString){
  4761. var self=this;
  4762. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4763. return $core.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. $core.addMethod(
  4780. $core.method({
  4781. selector: "style:",
  4782. protocol: 'attributes',
  4783. fn: function (aString){
  4784. var self=this;
  4785. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4786. return $core.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. $core.addMethod(
  4803. $core.method({
  4804. selector: "tabindex:",
  4805. protocol: 'attributes',
  4806. fn: function (aNumber){
  4807. var self=this;
  4808. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4809. return $core.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. $core.addMethod(
  4826. $core.method({
  4827. selector: "target:",
  4828. protocol: 'attributes',
  4829. fn: function (aString){
  4830. var self=this;
  4831. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4832. return $core.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. $core.addMethod(
  4849. $core.method({
  4850. selector: "title:",
  4851. protocol: 'attributes',
  4852. fn: function (aString){
  4853. var self=this;
  4854. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4855. return $core.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. $core.addMethod(
  4872. $core.method({
  4873. selector: "type:",
  4874. protocol: 'attributes',
  4875. fn: function (aString){
  4876. var self=this;
  4877. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4878. return $core.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. $core.addMethod(
  4895. $core.method({
  4896. selector: "valign:",
  4897. protocol: 'attributes',
  4898. fn: function (aString){
  4899. var self=this;
  4900. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4901. return $core.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. $core.addMethod(
  4918. $core.method({
  4919. selector: "value:",
  4920. protocol: 'attributes',
  4921. fn: function (aString){
  4922. var self=this;
  4923. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4924. return $core.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. $core.addMethod(
  4941. $core.method({
  4942. selector: "width:",
  4943. protocol: 'attributes',
  4944. fn: function (aString){
  4945. var self=this;
  4946. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4947. return $core.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. $core.addMethod(
  4964. $core.method({
  4965. selector: "with:",
  4966. protocol: 'adding',
  4967. fn: function (anObject){
  4968. var self=this;
  4969. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  4970. return $core.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. $core.addMethod(
  4987. $core.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 $core.withContext(function($ctx1) {
  4994. //>>excludeEnd("ctx");
  4995. var $2,$3,$1;
  4996. $2=self._new();
  4997. $recv($2)._initializeFromJQuery_canvas_(aJQuery,aCanvas);
  4998. $3=$recv($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. $core.addMethod(
  5014. $core.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 $core.withContext(function($ctx1) {
  5021. //>>excludeEnd("ctx");
  5022. var $2,$3,$1;
  5023. $2=self._new();
  5024. $recv($2)._initializeFromString_canvas_(aString,aCanvas);
  5025. $3=$recv($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. $core.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. $core.addMethod(
  5045. $core.method({
  5046. selector: "appendToBrush:",
  5047. protocol: 'adding',
  5048. fn: function (aTagBrush){
  5049. var self=this;
  5050. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5051. return $core.withContext(function($ctx1) {
  5052. //>>excludeEnd("ctx");
  5053. self._appendToJQuery_($recv(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. $core.addMethod(
  5068. $core.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 $core.withContext(function($ctx1) {
  5076. //>>excludeEnd("ctx");
  5077. self._renderOn_($recv($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. $core.addMethod(
  5092. $core.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. $core.addMethod(
  5108. $core.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. $core.addMethod(
  5124. $core.method({
  5125. selector: "appendToBrush:",
  5126. protocol: '*Web',
  5127. fn: function (aTagBrush){
  5128. var self=this;
  5129. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5130. return $core.withContext(function($ctx1) {
  5131. //>>excludeEnd("ctx");
  5132. $recv(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. $core.addMethod(
  5147. $core.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 $core.withContext(function($ctx1) {
  5155. //>>excludeEnd("ctx");
  5156. self._value_($recv($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. $core.addMethod(
  5171. $core.method({
  5172. selector: "asJQuery",
  5173. protocol: '*Web',
  5174. fn: function (){
  5175. var self=this;
  5176. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5177. return $core.withContext(function($ctx1) {
  5178. //>>excludeEnd("ctx");
  5179. var $1;
  5180. $1=$recv([self])._asJQuery();
  5181. return $1;
  5182. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5183. }, function($ctx1) {$ctx1.fill(self,"asJQuery",{},$globals.BlockClosure)});
  5184. //>>excludeEnd("ctx");
  5185. },
  5186. //>>excludeStart("ide", pragmas.excludeIdeData);
  5187. args: [],
  5188. source: "asJQuery\x0a\x09^ {self} asJQuery",
  5189. referencedClasses: [],
  5190. //>>excludeEnd("ide");
  5191. messageSends: ["asJQuery"]
  5192. }),
  5193. $globals.BlockClosure);
  5194. $core.addMethod(
  5195. $core.method({
  5196. selector: "asJQueryInContext:",
  5197. protocol: '*Web',
  5198. fn: function (aContext){
  5199. var self=this;
  5200. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5201. return $core.withContext(function($ctx1) {
  5202. //>>excludeEnd("ctx");
  5203. var $1;
  5204. $1=$recv([self])._asJQueryInContext_(aContext);
  5205. return $1;
  5206. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5207. }, function($ctx1) {$ctx1.fill(self,"asJQueryInContext:",{aContext:aContext},$globals.BlockClosure)});
  5208. //>>excludeEnd("ctx");
  5209. },
  5210. //>>excludeStart("ide", pragmas.excludeIdeData);
  5211. args: ["aContext"],
  5212. source: "asJQueryInContext: aContext\x0a\x09^ {self} asJQueryInContext: aContext",
  5213. referencedClasses: [],
  5214. //>>excludeEnd("ide");
  5215. messageSends: ["asJQueryInContext:"]
  5216. }),
  5217. $globals.BlockClosure);
  5218. $core.addMethod(
  5219. $core.method({
  5220. selector: "asSnippet",
  5221. protocol: '*Web',
  5222. fn: function (){
  5223. var self=this;
  5224. function $HTMLSnippet(){return $globals.HTMLSnippet||(typeof HTMLSnippet=="undefined"?nil:HTMLSnippet)}
  5225. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5226. return $core.withContext(function($ctx1) {
  5227. //>>excludeEnd("ctx");
  5228. var $1;
  5229. $1=$recv($recv($HTMLSnippet())._current())._snippetAt_(self._asString());
  5230. return $1;
  5231. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5232. }, function($ctx1) {$ctx1.fill(self,"asSnippet",{},$globals.CharacterArray)});
  5233. //>>excludeEnd("ctx");
  5234. },
  5235. //>>excludeStart("ide", pragmas.excludeIdeData);
  5236. args: [],
  5237. source: "asSnippet\x0a\x09^ HTMLSnippet current snippetAt: self asString",
  5238. referencedClasses: ["HTMLSnippet"],
  5239. //>>excludeEnd("ide");
  5240. messageSends: ["snippetAt:", "current", "asString"]
  5241. }),
  5242. $globals.CharacterArray);
  5243. $core.addMethod(
  5244. $core.method({
  5245. selector: "asJQuery",
  5246. protocol: '*Web',
  5247. fn: function (){
  5248. var self=this;
  5249. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5250. return $core.withContext(function($ctx1) {
  5251. //>>excludeEnd("ctx");
  5252. return jQuery(self['@jsObject']);
  5253. return self;
  5254. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5255. }, function($ctx1) {$ctx1.fill(self,"asJQuery",{},$globals.JSObjectProxy)});
  5256. //>>excludeEnd("ctx");
  5257. },
  5258. //>>excludeStart("ide", pragmas.excludeIdeData);
  5259. args: [],
  5260. source: "asJQuery\x0a\x09<return jQuery(self['@jsObject'])>",
  5261. referencedClasses: [],
  5262. //>>excludeEnd("ide");
  5263. messageSends: []
  5264. }),
  5265. $globals.JSObjectProxy);
  5266. $core.addMethod(
  5267. $core.method({
  5268. selector: "asJQueryInContext:",
  5269. protocol: '*Web',
  5270. fn: function (aContext){
  5271. var self=this;
  5272. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5273. return $core.withContext(function($ctx1) {
  5274. //>>excludeEnd("ctx");
  5275. return jQuery(self['@jsObject'], aContext);
  5276. return self;
  5277. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5278. }, function($ctx1) {$ctx1.fill(self,"asJQueryInContext:",{aContext:aContext},$globals.JSObjectProxy)});
  5279. //>>excludeEnd("ctx");
  5280. },
  5281. //>>excludeStart("ide", pragmas.excludeIdeData);
  5282. args: ["aContext"],
  5283. source: "asJQueryInContext: aContext\x0a\x09<return jQuery(self['@jsObject'], aContext)>",
  5284. referencedClasses: [],
  5285. //>>excludeEnd("ide");
  5286. messageSends: []
  5287. }),
  5288. $globals.JSObjectProxy);
  5289. $core.addMethod(
  5290. $core.method({
  5291. selector: "appendToBrush:",
  5292. protocol: '*Web',
  5293. fn: function (aTagBrush){
  5294. var self=this;
  5295. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5296. return $core.withContext(function($ctx1) {
  5297. //>>excludeEnd("ctx");
  5298. $recv(aTagBrush)._append_(self._asString());
  5299. return self;
  5300. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5301. }, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},$globals.Object)});
  5302. //>>excludeEnd("ctx");
  5303. },
  5304. //>>excludeStart("ide", pragmas.excludeIdeData);
  5305. args: ["aTagBrush"],
  5306. source: "appendToBrush: aTagBrush\x0a\x09aTagBrush append: self asString",
  5307. referencedClasses: [],
  5308. //>>excludeEnd("ide");
  5309. messageSends: ["append:", "asString"]
  5310. }),
  5311. $globals.Object);
  5312. $core.addMethod(
  5313. $core.method({
  5314. selector: "appendToJQuery:",
  5315. protocol: '*Web',
  5316. fn: function (aJQuery){
  5317. var self=this;
  5318. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5319. return $core.withContext(function($ctx1) {
  5320. //>>excludeEnd("ctx");
  5321. $recv(aJQuery)._append_(self._asString());
  5322. return self;
  5323. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5324. }, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery},$globals.Object)});
  5325. //>>excludeEnd("ctx");
  5326. },
  5327. //>>excludeStart("ide", pragmas.excludeIdeData);
  5328. args: ["aJQuery"],
  5329. source: "appendToJQuery: aJQuery\x0a\x09aJQuery append: self asString",
  5330. referencedClasses: [],
  5331. //>>excludeEnd("ide");
  5332. messageSends: ["append:", "asString"]
  5333. }),
  5334. $globals.Object);
  5335. $core.addMethod(
  5336. $core.method({
  5337. selector: "asJQuery",
  5338. protocol: '*Web',
  5339. fn: function (){
  5340. var self=this;
  5341. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5342. return $core.withContext(function($ctx1) {
  5343. //>>excludeEnd("ctx");
  5344. return jQuery(self);
  5345. return self;
  5346. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5347. }, function($ctx1) {$ctx1.fill(self,"asJQuery",{},$globals.Object)});
  5348. //>>excludeEnd("ctx");
  5349. },
  5350. //>>excludeStart("ide", pragmas.excludeIdeData);
  5351. args: [],
  5352. source: "asJQuery\x0a\x09<return jQuery(self)>",
  5353. referencedClasses: [],
  5354. //>>excludeEnd("ide");
  5355. messageSends: []
  5356. }),
  5357. $globals.Object);
  5358. $core.addMethod(
  5359. $core.method({
  5360. selector: "asJQueryInContext:",
  5361. protocol: '*Web',
  5362. fn: function (aContext){
  5363. var self=this;
  5364. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5365. return $core.withContext(function($ctx1) {
  5366. //>>excludeEnd("ctx");
  5367. return jQuery(self, aContext);
  5368. return self;
  5369. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5370. }, function($ctx1) {$ctx1.fill(self,"asJQueryInContext:",{aContext:aContext},$globals.Object)});
  5371. //>>excludeEnd("ctx");
  5372. },
  5373. //>>excludeStart("ide", pragmas.excludeIdeData);
  5374. args: ["aContext"],
  5375. source: "asJQueryInContext: aContext\x0a\x09<return jQuery(self, aContext)>",
  5376. referencedClasses: [],
  5377. //>>excludeEnd("ide");
  5378. messageSends: []
  5379. }),
  5380. $globals.Object);
  5381. $core.addMethod(
  5382. $core.method({
  5383. selector: "postMessageTo:",
  5384. protocol: '*Web',
  5385. fn: function (aFrame){
  5386. var self=this;
  5387. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5388. return $core.withContext(function($ctx1) {
  5389. //>>excludeEnd("ctx");
  5390. var $1;
  5391. $1=self._postMessageTo_origin_(aFrame,"*");
  5392. return $1;
  5393. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5394. }, function($ctx1) {$ctx1.fill(self,"postMessageTo:",{aFrame:aFrame},$globals.Object)});
  5395. //>>excludeEnd("ctx");
  5396. },
  5397. //>>excludeStart("ide", pragmas.excludeIdeData);
  5398. args: ["aFrame"],
  5399. source: "postMessageTo: aFrame\x0a^ self postMessageTo: aFrame origin: '*'",
  5400. referencedClasses: [],
  5401. //>>excludeEnd("ide");
  5402. messageSends: ["postMessageTo:origin:"]
  5403. }),
  5404. $globals.Object);
  5405. $core.addMethod(
  5406. $core.method({
  5407. selector: "postMessageTo:origin:",
  5408. protocol: '*Web',
  5409. fn: function (aFrame,aString){
  5410. var self=this;
  5411. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5412. return $core.withContext(function($ctx1) {
  5413. //>>excludeEnd("ctx");
  5414. return aFrame.postMessage(self, aString);
  5415. return self;
  5416. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5417. }, function($ctx1) {$ctx1.fill(self,"postMessageTo:origin:",{aFrame:aFrame,aString:aString},$globals.Object)});
  5418. //>>excludeEnd("ctx");
  5419. },
  5420. //>>excludeStart("ide", pragmas.excludeIdeData);
  5421. args: ["aFrame", "aString"],
  5422. source: "postMessageTo: aFrame origin: aString\x0a<return aFrame.postMessage(self, aString)>",
  5423. referencedClasses: [],
  5424. //>>excludeEnd("ide");
  5425. messageSends: []
  5426. }),
  5427. $globals.Object);
  5428. $core.addMethod(
  5429. $core.method({
  5430. selector: "appendToBrush:",
  5431. protocol: '*Web',
  5432. fn: function (aTagBrush){
  5433. var self=this;
  5434. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5435. return $core.withContext(function($ctx1) {
  5436. //>>excludeEnd("ctx");
  5437. $recv(aTagBrush)._appendString_(self);
  5438. return self;
  5439. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5440. }, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},$globals.String)});
  5441. //>>excludeEnd("ctx");
  5442. },
  5443. //>>excludeStart("ide", pragmas.excludeIdeData);
  5444. args: ["aTagBrush"],
  5445. source: "appendToBrush: aTagBrush\x0a\x09aTagBrush appendString: self",
  5446. referencedClasses: [],
  5447. //>>excludeEnd("ide");
  5448. messageSends: ["appendString:"]
  5449. }),
  5450. $globals.String);
  5451. $core.addMethod(
  5452. $core.method({
  5453. selector: "appendToJQuery:",
  5454. protocol: '*Web',
  5455. fn: function (aJQuery){
  5456. var self=this;
  5457. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5458. return $core.withContext(function($ctx1) {
  5459. //>>excludeEnd("ctx");
  5460. $recv(aJQuery)._append_(self);
  5461. return self;
  5462. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5463. }, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery},$globals.String)});
  5464. //>>excludeEnd("ctx");
  5465. },
  5466. //>>excludeStart("ide", pragmas.excludeIdeData);
  5467. args: ["aJQuery"],
  5468. source: "appendToJQuery: aJQuery\x0a\x09aJQuery append: self",
  5469. referencedClasses: [],
  5470. //>>excludeEnd("ide");
  5471. messageSends: ["append:"]
  5472. }),
  5473. $globals.String);
  5474. $core.addMethod(
  5475. $core.method({
  5476. selector: "asJQuery",
  5477. protocol: '*Web',
  5478. fn: function (){
  5479. var self=this;
  5480. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5481. return $core.withContext(function($ctx1) {
  5482. //>>excludeEnd("ctx");
  5483. return jQuery(String(self));
  5484. return self;
  5485. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5486. }, function($ctx1) {$ctx1.fill(self,"asJQuery",{},$globals.String)});
  5487. //>>excludeEnd("ctx");
  5488. },
  5489. //>>excludeStart("ide", pragmas.excludeIdeData);
  5490. args: [],
  5491. source: "asJQuery\x0a\x09<return jQuery(String(self))>",
  5492. referencedClasses: [],
  5493. //>>excludeEnd("ide");
  5494. messageSends: []
  5495. }),
  5496. $globals.String);
  5497. $core.addMethod(
  5498. $core.method({
  5499. selector: "asJQueryInContext:",
  5500. protocol: '*Web',
  5501. fn: function (aContext){
  5502. var self=this;
  5503. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5504. return $core.withContext(function($ctx1) {
  5505. //>>excludeEnd("ctx");
  5506. return jQuery(String(self), aContext);
  5507. return self;
  5508. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  5509. }, function($ctx1) {$ctx1.fill(self,"asJQueryInContext:",{aContext:aContext},$globals.String)});
  5510. //>>excludeEnd("ctx");
  5511. },
  5512. //>>excludeStart("ide", pragmas.excludeIdeData);
  5513. args: ["aContext"],
  5514. source: "asJQueryInContext: aContext\x0a\x09<return jQuery(String(self), aContext)>",
  5515. referencedClasses: [],
  5516. //>>excludeEnd("ide");
  5517. messageSends: []
  5518. }),
  5519. $globals.String);
  5520. });