2
0

Canvas.deploy.js 77 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829
  1. (function(smalltalk,nil,_st){
  2. smalltalk.addPackage('Canvas');
  3. smalltalk.addClass('BrowserInterface', smalltalk.Object, [], 'Canvas');
  4. smalltalk.addMethod(
  5. smalltalk.method({
  6. selector: "ajax:",
  7. fn: function (anObject){
  8. var self=this;
  9. return smalltalk.withContext(function($ctx1) {
  10. var $1;
  11. $1=_st(jQuery)._ajax_(anObject);
  12. return $1;
  13. }, function($ctx1) {$ctx1.fill(self,"ajax:",{anObject:anObject},smalltalk.BrowserInterface)})},
  14. messageSends: ["ajax:"]}),
  15. smalltalk.BrowserInterface);
  16. smalltalk.addMethod(
  17. smalltalk.method({
  18. selector: "alert:",
  19. fn: function (aString){
  20. var self=this;
  21. return smalltalk.withContext(function($ctx1) {
  22. var $1;
  23. $1=_st(window)._alert_(aString);
  24. return $1;
  25. }, function($ctx1) {$ctx1.fill(self,"alert:",{aString:aString},smalltalk.BrowserInterface)})},
  26. messageSends: ["alert:"]}),
  27. smalltalk.BrowserInterface);
  28. smalltalk.addMethod(
  29. smalltalk.method({
  30. selector: "confirm:",
  31. fn: function (aString){
  32. var self=this;
  33. return smalltalk.withContext(function($ctx1) {
  34. var $1;
  35. $1=_st(window)._confirm_(aString);
  36. return $1;
  37. }, function($ctx1) {$ctx1.fill(self,"confirm:",{aString:aString},smalltalk.BrowserInterface)})},
  38. messageSends: ["confirm:"]}),
  39. smalltalk.BrowserInterface);
  40. smalltalk.addMethod(
  41. smalltalk.method({
  42. selector: "isAvailable",
  43. fn: function (){
  44. var self=this;
  45. return smalltalk.withContext(function($ctx1) {
  46. return typeof window !== "undefined" && typeof jQuery !== "undefined";
  47. return self}, function($ctx1) {$ctx1.fill(self,"isAvailable",{},smalltalk.BrowserInterface)})},
  48. messageSends: []}),
  49. smalltalk.BrowserInterface);
  50. smalltalk.addMethod(
  51. smalltalk.method({
  52. selector: "prompt:",
  53. fn: function (aString){
  54. var self=this;
  55. return smalltalk.withContext(function($ctx1) {
  56. var $1;
  57. $1=_st(window)._prompt_(aString);
  58. return $1;
  59. }, function($ctx1) {$ctx1.fill(self,"prompt:",{aString:aString},smalltalk.BrowserInterface)})},
  60. messageSends: ["prompt:"]}),
  61. smalltalk.BrowserInterface);
  62. smalltalk.BrowserInterface.klass.iVarNames = ['uiWorker','ajaxWorker'];
  63. smalltalk.addClass('HTMLCanvas', smalltalk.Object, ['root'], 'Canvas');
  64. smalltalk.addMethod(
  65. smalltalk.method({
  66. selector: "a",
  67. fn: function (){
  68. var self=this;
  69. return smalltalk.withContext(function($ctx1) {
  70. var $1;
  71. $1=self._tag_("a");
  72. return $1;
  73. }, function($ctx1) {$ctx1.fill(self,"a",{},smalltalk.HTMLCanvas)})},
  74. messageSends: ["tag:"]}),
  75. smalltalk.HTMLCanvas);
  76. smalltalk.addMethod(
  77. smalltalk.method({
  78. selector: "abbr",
  79. fn: function (){
  80. var self=this;
  81. return smalltalk.withContext(function($ctx1) {
  82. var $1;
  83. $1=self._tag_("abbr");
  84. return $1;
  85. }, function($ctx1) {$ctx1.fill(self,"abbr",{},smalltalk.HTMLCanvas)})},
  86. messageSends: ["tag:"]}),
  87. smalltalk.HTMLCanvas);
  88. smalltalk.addMethod(
  89. smalltalk.method({
  90. selector: "address",
  91. fn: function (){
  92. var self=this;
  93. return smalltalk.withContext(function($ctx1) {
  94. var $1;
  95. $1=self._tag_("address");
  96. return $1;
  97. }, function($ctx1) {$ctx1.fill(self,"address",{},smalltalk.HTMLCanvas)})},
  98. messageSends: ["tag:"]}),
  99. smalltalk.HTMLCanvas);
  100. smalltalk.addMethod(
  101. smalltalk.method({
  102. selector: "area",
  103. fn: function (){
  104. var self=this;
  105. return smalltalk.withContext(function($ctx1) {
  106. var $1;
  107. $1=self._tag_("area");
  108. return $1;
  109. }, function($ctx1) {$ctx1.fill(self,"area",{},smalltalk.HTMLCanvas)})},
  110. messageSends: ["tag:"]}),
  111. smalltalk.HTMLCanvas);
  112. smalltalk.addMethod(
  113. smalltalk.method({
  114. selector: "article",
  115. fn: function (){
  116. var self=this;
  117. return smalltalk.withContext(function($ctx1) {
  118. var $1;
  119. $1=self._tag_("article");
  120. return $1;
  121. }, function($ctx1) {$ctx1.fill(self,"article",{},smalltalk.HTMLCanvas)})},
  122. messageSends: ["tag:"]}),
  123. smalltalk.HTMLCanvas);
  124. smalltalk.addMethod(
  125. smalltalk.method({
  126. selector: "aside",
  127. fn: function (){
  128. var self=this;
  129. return smalltalk.withContext(function($ctx1) {
  130. var $1;
  131. $1=self._tag_("aside");
  132. return $1;
  133. }, function($ctx1) {$ctx1.fill(self,"aside",{},smalltalk.HTMLCanvas)})},
  134. messageSends: ["tag:"]}),
  135. smalltalk.HTMLCanvas);
  136. smalltalk.addMethod(
  137. smalltalk.method({
  138. selector: "audio",
  139. fn: function (){
  140. var self=this;
  141. return smalltalk.withContext(function($ctx1) {
  142. var $1;
  143. $1=self._tag_("audio");
  144. return $1;
  145. }, function($ctx1) {$ctx1.fill(self,"audio",{},smalltalk.HTMLCanvas)})},
  146. messageSends: ["tag:"]}),
  147. smalltalk.HTMLCanvas);
  148. smalltalk.addMethod(
  149. smalltalk.method({
  150. selector: "base",
  151. fn: function (){
  152. var self=this;
  153. return smalltalk.withContext(function($ctx1) {
  154. var $1;
  155. $1=self._tag_("base");
  156. return $1;
  157. }, function($ctx1) {$ctx1.fill(self,"base",{},smalltalk.HTMLCanvas)})},
  158. messageSends: ["tag:"]}),
  159. smalltalk.HTMLCanvas);
  160. smalltalk.addMethod(
  161. smalltalk.method({
  162. selector: "blockquote",
  163. fn: function (){
  164. var self=this;
  165. return smalltalk.withContext(function($ctx1) {
  166. var $1;
  167. $1=self._tag_("blockquote");
  168. return $1;
  169. }, function($ctx1) {$ctx1.fill(self,"blockquote",{},smalltalk.HTMLCanvas)})},
  170. messageSends: ["tag:"]}),
  171. smalltalk.HTMLCanvas);
  172. smalltalk.addMethod(
  173. smalltalk.method({
  174. selector: "body",
  175. fn: function (){
  176. var self=this;
  177. return smalltalk.withContext(function($ctx1) {
  178. var $1;
  179. $1=self._tag_("body");
  180. return $1;
  181. }, function($ctx1) {$ctx1.fill(self,"body",{},smalltalk.HTMLCanvas)})},
  182. messageSends: ["tag:"]}),
  183. smalltalk.HTMLCanvas);
  184. smalltalk.addMethod(
  185. smalltalk.method({
  186. selector: "br",
  187. fn: function (){
  188. var self=this;
  189. return smalltalk.withContext(function($ctx1) {
  190. var $1;
  191. $1=self._tag_("br");
  192. return $1;
  193. }, function($ctx1) {$ctx1.fill(self,"br",{},smalltalk.HTMLCanvas)})},
  194. messageSends: ["tag:"]}),
  195. smalltalk.HTMLCanvas);
  196. smalltalk.addMethod(
  197. smalltalk.method({
  198. selector: "button",
  199. fn: function (){
  200. var self=this;
  201. return smalltalk.withContext(function($ctx1) {
  202. var $1;
  203. $1=self._tag_("button");
  204. return $1;
  205. }, function($ctx1) {$ctx1.fill(self,"button",{},smalltalk.HTMLCanvas)})},
  206. messageSends: ["tag:"]}),
  207. smalltalk.HTMLCanvas);
  208. smalltalk.addMethod(
  209. smalltalk.method({
  210. selector: "canvas",
  211. fn: function (){
  212. var self=this;
  213. return smalltalk.withContext(function($ctx1) {
  214. var $1;
  215. $1=self._tag_("canvas");
  216. return $1;
  217. }, function($ctx1) {$ctx1.fill(self,"canvas",{},smalltalk.HTMLCanvas)})},
  218. messageSends: ["tag:"]}),
  219. smalltalk.HTMLCanvas);
  220. smalltalk.addMethod(
  221. smalltalk.method({
  222. selector: "caption",
  223. fn: function (){
  224. var self=this;
  225. return smalltalk.withContext(function($ctx1) {
  226. var $1;
  227. $1=self._tag_("caption");
  228. return $1;
  229. }, function($ctx1) {$ctx1.fill(self,"caption",{},smalltalk.HTMLCanvas)})},
  230. messageSends: ["tag:"]}),
  231. smalltalk.HTMLCanvas);
  232. smalltalk.addMethod(
  233. smalltalk.method({
  234. selector: "cite",
  235. fn: function (){
  236. var self=this;
  237. return smalltalk.withContext(function($ctx1) {
  238. var $1;
  239. $1=self._tag_("cite");
  240. return $1;
  241. }, function($ctx1) {$ctx1.fill(self,"cite",{},smalltalk.HTMLCanvas)})},
  242. messageSends: ["tag:"]}),
  243. smalltalk.HTMLCanvas);
  244. smalltalk.addMethod(
  245. smalltalk.method({
  246. selector: "code",
  247. fn: function (){
  248. var self=this;
  249. return smalltalk.withContext(function($ctx1) {
  250. var $1;
  251. $1=self._tag_("code");
  252. return $1;
  253. }, function($ctx1) {$ctx1.fill(self,"code",{},smalltalk.HTMLCanvas)})},
  254. messageSends: ["tag:"]}),
  255. smalltalk.HTMLCanvas);
  256. smalltalk.addMethod(
  257. smalltalk.method({
  258. selector: "col",
  259. fn: function (){
  260. var self=this;
  261. return smalltalk.withContext(function($ctx1) {
  262. var $1;
  263. $1=self._tag_("col");
  264. return $1;
  265. }, function($ctx1) {$ctx1.fill(self,"col",{},smalltalk.HTMLCanvas)})},
  266. messageSends: ["tag:"]}),
  267. smalltalk.HTMLCanvas);
  268. smalltalk.addMethod(
  269. smalltalk.method({
  270. selector: "colgroup",
  271. fn: function (){
  272. var self=this;
  273. return smalltalk.withContext(function($ctx1) {
  274. var $1;
  275. $1=self._tag_("colgroup");
  276. return $1;
  277. }, function($ctx1) {$ctx1.fill(self,"colgroup",{},smalltalk.HTMLCanvas)})},
  278. messageSends: ["tag:"]}),
  279. smalltalk.HTMLCanvas);
  280. smalltalk.addMethod(
  281. smalltalk.method({
  282. selector: "command",
  283. fn: function (){
  284. var self=this;
  285. return smalltalk.withContext(function($ctx1) {
  286. var $1;
  287. $1=self._tag_("command");
  288. return $1;
  289. }, function($ctx1) {$ctx1.fill(self,"command",{},smalltalk.HTMLCanvas)})},
  290. messageSends: ["tag:"]}),
  291. smalltalk.HTMLCanvas);
  292. smalltalk.addMethod(
  293. smalltalk.method({
  294. selector: "datalist",
  295. fn: function (){
  296. var self=this;
  297. return smalltalk.withContext(function($ctx1) {
  298. var $1;
  299. $1=self._tag_("datalist");
  300. return $1;
  301. }, function($ctx1) {$ctx1.fill(self,"datalist",{},smalltalk.HTMLCanvas)})},
  302. messageSends: ["tag:"]}),
  303. smalltalk.HTMLCanvas);
  304. smalltalk.addMethod(
  305. smalltalk.method({
  306. selector: "dd",
  307. fn: function (){
  308. var self=this;
  309. return smalltalk.withContext(function($ctx1) {
  310. var $1;
  311. $1=self._tag_("dd");
  312. return $1;
  313. }, function($ctx1) {$ctx1.fill(self,"dd",{},smalltalk.HTMLCanvas)})},
  314. messageSends: ["tag:"]}),
  315. smalltalk.HTMLCanvas);
  316. smalltalk.addMethod(
  317. smalltalk.method({
  318. selector: "del",
  319. fn: function (){
  320. var self=this;
  321. return smalltalk.withContext(function($ctx1) {
  322. var $1;
  323. $1=self._tag_("del");
  324. return $1;
  325. }, function($ctx1) {$ctx1.fill(self,"del",{},smalltalk.HTMLCanvas)})},
  326. messageSends: ["tag:"]}),
  327. smalltalk.HTMLCanvas);
  328. smalltalk.addMethod(
  329. smalltalk.method({
  330. selector: "details",
  331. fn: function (){
  332. var self=this;
  333. return smalltalk.withContext(function($ctx1) {
  334. var $1;
  335. $1=self._tag_("details");
  336. return $1;
  337. }, function($ctx1) {$ctx1.fill(self,"details",{},smalltalk.HTMLCanvas)})},
  338. messageSends: ["tag:"]}),
  339. smalltalk.HTMLCanvas);
  340. smalltalk.addMethod(
  341. smalltalk.method({
  342. selector: "div",
  343. fn: function (){
  344. var self=this;
  345. return smalltalk.withContext(function($ctx1) {
  346. var $1;
  347. $1=self._tag_("div");
  348. return $1;
  349. }, function($ctx1) {$ctx1.fill(self,"div",{},smalltalk.HTMLCanvas)})},
  350. messageSends: ["tag:"]}),
  351. smalltalk.HTMLCanvas);
  352. smalltalk.addMethod(
  353. smalltalk.method({
  354. selector: "div:",
  355. fn: function (aBlock){
  356. var self=this;
  357. return smalltalk.withContext(function($ctx1) {
  358. var $1;
  359. $1=_st(self._div())._with_(aBlock);
  360. return $1;
  361. }, function($ctx1) {$ctx1.fill(self,"div:",{aBlock:aBlock},smalltalk.HTMLCanvas)})},
  362. messageSends: ["with:", "div"]}),
  363. smalltalk.HTMLCanvas);
  364. smalltalk.addMethod(
  365. smalltalk.method({
  366. selector: "dl",
  367. fn: function (){
  368. var self=this;
  369. return smalltalk.withContext(function($ctx1) {
  370. var $1;
  371. $1=self._tag_("dl");
  372. return $1;
  373. }, function($ctx1) {$ctx1.fill(self,"dl",{},smalltalk.HTMLCanvas)})},
  374. messageSends: ["tag:"]}),
  375. smalltalk.HTMLCanvas);
  376. smalltalk.addMethod(
  377. smalltalk.method({
  378. selector: "dt",
  379. fn: function (){
  380. var self=this;
  381. return smalltalk.withContext(function($ctx1) {
  382. var $1;
  383. $1=self._tag_("dt");
  384. return $1;
  385. }, function($ctx1) {$ctx1.fill(self,"dt",{},smalltalk.HTMLCanvas)})},
  386. messageSends: ["tag:"]}),
  387. smalltalk.HTMLCanvas);
  388. smalltalk.addMethod(
  389. smalltalk.method({
  390. selector: "em",
  391. fn: function (){
  392. var self=this;
  393. return smalltalk.withContext(function($ctx1) {
  394. var $1;
  395. $1=self._tag_("em");
  396. return $1;
  397. }, function($ctx1) {$ctx1.fill(self,"em",{},smalltalk.HTMLCanvas)})},
  398. messageSends: ["tag:"]}),
  399. smalltalk.HTMLCanvas);
  400. smalltalk.addMethod(
  401. smalltalk.method({
  402. selector: "embed",
  403. fn: function (){
  404. var self=this;
  405. return smalltalk.withContext(function($ctx1) {
  406. var $1;
  407. $1=self._tag_("embed");
  408. return $1;
  409. }, function($ctx1) {$ctx1.fill(self,"embed",{},smalltalk.HTMLCanvas)})},
  410. messageSends: ["tag:"]}),
  411. smalltalk.HTMLCanvas);
  412. smalltalk.addMethod(
  413. smalltalk.method({
  414. selector: "entity:",
  415. fn: function (aString){
  416. var self=this;
  417. var result;
  418. return smalltalk.withContext(function($ctx1) {
  419. var $1;
  420. result=_st(_st("<span />"._asJQuery())._html_(_st("&".__comma(aString)).__comma(";")))._text();
  421. $1=_st(_st(result)._size()).__eq((1));
  422. if(! smalltalk.assert($1)){
  423. self._error_("Not an HTML entity: ".__comma(aString));
  424. };
  425. self._with_(result);
  426. return self}, function($ctx1) {$ctx1.fill(self,"entity:",{aString:aString,result:result},smalltalk.HTMLCanvas)})},
  427. messageSends: ["text", "html:", ",", "asJQuery", "ifFalse:", "error:", "=", "size", "with:"]}),
  428. smalltalk.HTMLCanvas);
  429. smalltalk.addMethod(
  430. smalltalk.method({
  431. selector: "fieldset",
  432. fn: function (){
  433. var self=this;
  434. return smalltalk.withContext(function($ctx1) {
  435. var $1;
  436. $1=self._tag_("fieldset");
  437. return $1;
  438. }, function($ctx1) {$ctx1.fill(self,"fieldset",{},smalltalk.HTMLCanvas)})},
  439. messageSends: ["tag:"]}),
  440. smalltalk.HTMLCanvas);
  441. smalltalk.addMethod(
  442. smalltalk.method({
  443. selector: "figcaption",
  444. fn: function (){
  445. var self=this;
  446. return smalltalk.withContext(function($ctx1) {
  447. var $1;
  448. $1=self._tag_("figcaption");
  449. return $1;
  450. }, function($ctx1) {$ctx1.fill(self,"figcaption",{},smalltalk.HTMLCanvas)})},
  451. messageSends: ["tag:"]}),
  452. smalltalk.HTMLCanvas);
  453. smalltalk.addMethod(
  454. smalltalk.method({
  455. selector: "figure",
  456. fn: function (){
  457. var self=this;
  458. return smalltalk.withContext(function($ctx1) {
  459. var $1;
  460. $1=self._tag_("figure");
  461. return $1;
  462. }, function($ctx1) {$ctx1.fill(self,"figure",{},smalltalk.HTMLCanvas)})},
  463. messageSends: ["tag:"]}),
  464. smalltalk.HTMLCanvas);
  465. smalltalk.addMethod(
  466. smalltalk.method({
  467. selector: "footer",
  468. fn: function (){
  469. var self=this;
  470. return smalltalk.withContext(function($ctx1) {
  471. var $1;
  472. $1=self._tag_("footer");
  473. return $1;
  474. }, function($ctx1) {$ctx1.fill(self,"footer",{},smalltalk.HTMLCanvas)})},
  475. messageSends: ["tag:"]}),
  476. smalltalk.HTMLCanvas);
  477. smalltalk.addMethod(
  478. smalltalk.method({
  479. selector: "form",
  480. fn: function (){
  481. var self=this;
  482. return smalltalk.withContext(function($ctx1) {
  483. var $1;
  484. $1=self._tag_("form");
  485. return $1;
  486. }, function($ctx1) {$ctx1.fill(self,"form",{},smalltalk.HTMLCanvas)})},
  487. messageSends: ["tag:"]}),
  488. smalltalk.HTMLCanvas);
  489. smalltalk.addMethod(
  490. smalltalk.method({
  491. selector: "h1",
  492. fn: function (){
  493. var self=this;
  494. return smalltalk.withContext(function($ctx1) {
  495. var $1;
  496. $1=self._tag_("h1");
  497. return $1;
  498. }, function($ctx1) {$ctx1.fill(self,"h1",{},smalltalk.HTMLCanvas)})},
  499. messageSends: ["tag:"]}),
  500. smalltalk.HTMLCanvas);
  501. smalltalk.addMethod(
  502. smalltalk.method({
  503. selector: "h1:",
  504. fn: function (anObject){
  505. var self=this;
  506. return smalltalk.withContext(function($ctx1) {
  507. var $1;
  508. $1=_st(self._h1())._with_(anObject);
  509. return $1;
  510. }, function($ctx1) {$ctx1.fill(self,"h1:",{anObject:anObject},smalltalk.HTMLCanvas)})},
  511. messageSends: ["with:", "h1"]}),
  512. smalltalk.HTMLCanvas);
  513. smalltalk.addMethod(
  514. smalltalk.method({
  515. selector: "h2",
  516. fn: function (){
  517. var self=this;
  518. return smalltalk.withContext(function($ctx1) {
  519. var $1;
  520. $1=self._tag_("h2");
  521. return $1;
  522. }, function($ctx1) {$ctx1.fill(self,"h2",{},smalltalk.HTMLCanvas)})},
  523. messageSends: ["tag:"]}),
  524. smalltalk.HTMLCanvas);
  525. smalltalk.addMethod(
  526. smalltalk.method({
  527. selector: "h2:",
  528. fn: function (anObject){
  529. var self=this;
  530. return smalltalk.withContext(function($ctx1) {
  531. var $1;
  532. $1=_st(self._h2())._with_(anObject);
  533. return $1;
  534. }, function($ctx1) {$ctx1.fill(self,"h2:",{anObject:anObject},smalltalk.HTMLCanvas)})},
  535. messageSends: ["with:", "h2"]}),
  536. smalltalk.HTMLCanvas);
  537. smalltalk.addMethod(
  538. smalltalk.method({
  539. selector: "h3",
  540. fn: function (){
  541. var self=this;
  542. return smalltalk.withContext(function($ctx1) {
  543. var $1;
  544. $1=self._tag_("h3");
  545. return $1;
  546. }, function($ctx1) {$ctx1.fill(self,"h3",{},smalltalk.HTMLCanvas)})},
  547. messageSends: ["tag:"]}),
  548. smalltalk.HTMLCanvas);
  549. smalltalk.addMethod(
  550. smalltalk.method({
  551. selector: "h3:",
  552. fn: function (anObject){
  553. var self=this;
  554. return smalltalk.withContext(function($ctx1) {
  555. var $1;
  556. $1=_st(self._h3())._with_(anObject);
  557. return $1;
  558. }, function($ctx1) {$ctx1.fill(self,"h3:",{anObject:anObject},smalltalk.HTMLCanvas)})},
  559. messageSends: ["with:", "h3"]}),
  560. smalltalk.HTMLCanvas);
  561. smalltalk.addMethod(
  562. smalltalk.method({
  563. selector: "h4",
  564. fn: function (){
  565. var self=this;
  566. return smalltalk.withContext(function($ctx1) {
  567. var $1;
  568. $1=self._tag_("h4");
  569. return $1;
  570. }, function($ctx1) {$ctx1.fill(self,"h4",{},smalltalk.HTMLCanvas)})},
  571. messageSends: ["tag:"]}),
  572. smalltalk.HTMLCanvas);
  573. smalltalk.addMethod(
  574. smalltalk.method({
  575. selector: "h4:",
  576. fn: function (anObject){
  577. var self=this;
  578. return smalltalk.withContext(function($ctx1) {
  579. var $1;
  580. $1=_st(self._h4())._with_(anObject);
  581. return $1;
  582. }, function($ctx1) {$ctx1.fill(self,"h4:",{anObject:anObject},smalltalk.HTMLCanvas)})},
  583. messageSends: ["with:", "h4"]}),
  584. smalltalk.HTMLCanvas);
  585. smalltalk.addMethod(
  586. smalltalk.method({
  587. selector: "h5",
  588. fn: function (){
  589. var self=this;
  590. return smalltalk.withContext(function($ctx1) {
  591. var $1;
  592. $1=self._tag_("h5");
  593. return $1;
  594. }, function($ctx1) {$ctx1.fill(self,"h5",{},smalltalk.HTMLCanvas)})},
  595. messageSends: ["tag:"]}),
  596. smalltalk.HTMLCanvas);
  597. smalltalk.addMethod(
  598. smalltalk.method({
  599. selector: "h5:",
  600. fn: function (anObject){
  601. var self=this;
  602. return smalltalk.withContext(function($ctx1) {
  603. var $1;
  604. $1=_st(self._h5())._with_(anObject);
  605. return $1;
  606. }, function($ctx1) {$ctx1.fill(self,"h5:",{anObject:anObject},smalltalk.HTMLCanvas)})},
  607. messageSends: ["with:", "h5"]}),
  608. smalltalk.HTMLCanvas);
  609. smalltalk.addMethod(
  610. smalltalk.method({
  611. selector: "h6",
  612. fn: function (){
  613. var self=this;
  614. return smalltalk.withContext(function($ctx1) {
  615. var $1;
  616. $1=self._tag_("h6");
  617. return $1;
  618. }, function($ctx1) {$ctx1.fill(self,"h6",{},smalltalk.HTMLCanvas)})},
  619. messageSends: ["tag:"]}),
  620. smalltalk.HTMLCanvas);
  621. smalltalk.addMethod(
  622. smalltalk.method({
  623. selector: "h6:",
  624. fn: function (anObject){
  625. var self=this;
  626. return smalltalk.withContext(function($ctx1) {
  627. var $1;
  628. $1=_st(self._h6())._with_(anObject);
  629. return $1;
  630. }, function($ctx1) {$ctx1.fill(self,"h6:",{anObject:anObject},smalltalk.HTMLCanvas)})},
  631. messageSends: ["with:", "h6"]}),
  632. smalltalk.HTMLCanvas);
  633. smalltalk.addMethod(
  634. smalltalk.method({
  635. selector: "head",
  636. fn: function (){
  637. var self=this;
  638. return smalltalk.withContext(function($ctx1) {
  639. var $1;
  640. $1=self._tag_("head");
  641. return $1;
  642. }, function($ctx1) {$ctx1.fill(self,"head",{},smalltalk.HTMLCanvas)})},
  643. messageSends: ["tag:"]}),
  644. smalltalk.HTMLCanvas);
  645. smalltalk.addMethod(
  646. smalltalk.method({
  647. selector: "header",
  648. fn: function (){
  649. var self=this;
  650. return smalltalk.withContext(function($ctx1) {
  651. var $1;
  652. $1=self._tag_("header");
  653. return $1;
  654. }, function($ctx1) {$ctx1.fill(self,"header",{},smalltalk.HTMLCanvas)})},
  655. messageSends: ["tag:"]}),
  656. smalltalk.HTMLCanvas);
  657. smalltalk.addMethod(
  658. smalltalk.method({
  659. selector: "hgroup",
  660. fn: function (){
  661. var self=this;
  662. return smalltalk.withContext(function($ctx1) {
  663. var $1;
  664. $1=self._tag_("hgroup");
  665. return $1;
  666. }, function($ctx1) {$ctx1.fill(self,"hgroup",{},smalltalk.HTMLCanvas)})},
  667. messageSends: ["tag:"]}),
  668. smalltalk.HTMLCanvas);
  669. smalltalk.addMethod(
  670. smalltalk.method({
  671. selector: "hr",
  672. fn: function (){
  673. var self=this;
  674. return smalltalk.withContext(function($ctx1) {
  675. var $1;
  676. $1=self._tag_("hr");
  677. return $1;
  678. }, function($ctx1) {$ctx1.fill(self,"hr",{},smalltalk.HTMLCanvas)})},
  679. messageSends: ["tag:"]}),
  680. smalltalk.HTMLCanvas);
  681. smalltalk.addMethod(
  682. smalltalk.method({
  683. selector: "html",
  684. fn: function (){
  685. var self=this;
  686. return smalltalk.withContext(function($ctx1) {
  687. var $1;
  688. $1=self._tag_("html");
  689. return $1;
  690. }, function($ctx1) {$ctx1.fill(self,"html",{},smalltalk.HTMLCanvas)})},
  691. messageSends: ["tag:"]}),
  692. smalltalk.HTMLCanvas);
  693. smalltalk.addMethod(
  694. smalltalk.method({
  695. selector: "iframe",
  696. fn: function (){
  697. var self=this;
  698. return smalltalk.withContext(function($ctx1) {
  699. var $1;
  700. $1=self._tag_("iframe");
  701. return $1;
  702. }, function($ctx1) {$ctx1.fill(self,"iframe",{},smalltalk.HTMLCanvas)})},
  703. messageSends: ["tag:"]}),
  704. smalltalk.HTMLCanvas);
  705. smalltalk.addMethod(
  706. smalltalk.method({
  707. selector: "iframe:",
  708. fn: function (aString){
  709. var self=this;
  710. return smalltalk.withContext(function($ctx1) {
  711. var $1;
  712. $1=_st(self._iframe())._src_(aString);
  713. return $1;
  714. }, function($ctx1) {$ctx1.fill(self,"iframe:",{aString:aString},smalltalk.HTMLCanvas)})},
  715. messageSends: ["src:", "iframe"]}),
  716. smalltalk.HTMLCanvas);
  717. smalltalk.addMethod(
  718. smalltalk.method({
  719. selector: "img",
  720. fn: function (){
  721. var self=this;
  722. return smalltalk.withContext(function($ctx1) {
  723. var $1;
  724. $1=self._tag_("img");
  725. return $1;
  726. }, function($ctx1) {$ctx1.fill(self,"img",{},smalltalk.HTMLCanvas)})},
  727. messageSends: ["tag:"]}),
  728. smalltalk.HTMLCanvas);
  729. smalltalk.addMethod(
  730. smalltalk.method({
  731. selector: "img:",
  732. fn: function (aString){
  733. var self=this;
  734. return smalltalk.withContext(function($ctx1) {
  735. var $1;
  736. $1=_st(self._img())._src_(aString);
  737. return $1;
  738. }, function($ctx1) {$ctx1.fill(self,"img:",{aString:aString},smalltalk.HTMLCanvas)})},
  739. messageSends: ["src:", "img"]}),
  740. smalltalk.HTMLCanvas);
  741. smalltalk.addMethod(
  742. smalltalk.method({
  743. selector: "initialize",
  744. fn: function (){
  745. var self=this;
  746. function $TagBrush(){return smalltalk.TagBrush||(typeof TagBrush=="undefined"?nil:TagBrush)}
  747. return smalltalk.withContext(function($ctx1) {
  748. var $1;
  749. smalltalk.HTMLCanvas.superclass.fn.prototype._initialize.apply(_st(self), []);
  750. $1=self["@root"];
  751. if(($receiver = $1) == nil || $receiver == undefined){
  752. self["@root"]=_st($TagBrush())._fromString_canvas_("div",self);
  753. self["@root"];
  754. } else {
  755. $1;
  756. };
  757. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.HTMLCanvas)})},
  758. messageSends: ["initialize", "ifNil:", "fromString:canvas:"]}),
  759. smalltalk.HTMLCanvas);
  760. smalltalk.addMethod(
  761. smalltalk.method({
  762. selector: "initializeFromJQuery:",
  763. fn: function (aJQuery){
  764. var self=this;
  765. function $TagBrush(){return smalltalk.TagBrush||(typeof TagBrush=="undefined"?nil:TagBrush)}
  766. return smalltalk.withContext(function($ctx1) {
  767. self["@root"]=_st($TagBrush())._fromJQuery_canvas_(aJQuery,self);
  768. return self}, function($ctx1) {$ctx1.fill(self,"initializeFromJQuery:",{aJQuery:aJQuery},smalltalk.HTMLCanvas)})},
  769. messageSends: ["fromJQuery:canvas:"]}),
  770. smalltalk.HTMLCanvas);
  771. smalltalk.addMethod(
  772. smalltalk.method({
  773. selector: "input",
  774. fn: function (){
  775. var self=this;
  776. return smalltalk.withContext(function($ctx1) {
  777. var $1;
  778. $1=self._tag_("input");
  779. return $1;
  780. }, function($ctx1) {$ctx1.fill(self,"input",{},smalltalk.HTMLCanvas)})},
  781. messageSends: ["tag:"]}),
  782. smalltalk.HTMLCanvas);
  783. smalltalk.addMethod(
  784. smalltalk.method({
  785. selector: "label",
  786. fn: function (){
  787. var self=this;
  788. return smalltalk.withContext(function($ctx1) {
  789. var $1;
  790. $1=self._tag_("label");
  791. return $1;
  792. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HTMLCanvas)})},
  793. messageSends: ["tag:"]}),
  794. smalltalk.HTMLCanvas);
  795. smalltalk.addMethod(
  796. smalltalk.method({
  797. selector: "legend",
  798. fn: function (){
  799. var self=this;
  800. return smalltalk.withContext(function($ctx1) {
  801. var $1;
  802. $1=self._tag_("legend");
  803. return $1;
  804. }, function($ctx1) {$ctx1.fill(self,"legend",{},smalltalk.HTMLCanvas)})},
  805. messageSends: ["tag:"]}),
  806. smalltalk.HTMLCanvas);
  807. smalltalk.addMethod(
  808. smalltalk.method({
  809. selector: "li",
  810. fn: function (){
  811. var self=this;
  812. return smalltalk.withContext(function($ctx1) {
  813. var $1;
  814. $1=self._tag_("li");
  815. return $1;
  816. }, function($ctx1) {$ctx1.fill(self,"li",{},smalltalk.HTMLCanvas)})},
  817. messageSends: ["tag:"]}),
  818. smalltalk.HTMLCanvas);
  819. smalltalk.addMethod(
  820. smalltalk.method({
  821. selector: "li:",
  822. fn: function (anObject){
  823. var self=this;
  824. return smalltalk.withContext(function($ctx1) {
  825. var $1;
  826. $1=_st(self._li())._with_(anObject);
  827. return $1;
  828. }, function($ctx1) {$ctx1.fill(self,"li:",{anObject:anObject},smalltalk.HTMLCanvas)})},
  829. messageSends: ["with:", "li"]}),
  830. smalltalk.HTMLCanvas);
  831. smalltalk.addMethod(
  832. smalltalk.method({
  833. selector: "link",
  834. fn: function (){
  835. var self=this;
  836. return smalltalk.withContext(function($ctx1) {
  837. var $1;
  838. $1=self._tag_("link");
  839. return $1;
  840. }, function($ctx1) {$ctx1.fill(self,"link",{},smalltalk.HTMLCanvas)})},
  841. messageSends: ["tag:"]}),
  842. smalltalk.HTMLCanvas);
  843. smalltalk.addMethod(
  844. smalltalk.method({
  845. selector: "map",
  846. fn: function (){
  847. var self=this;
  848. return smalltalk.withContext(function($ctx1) {
  849. var $1;
  850. $1=self._tag_("map");
  851. return $1;
  852. }, function($ctx1) {$ctx1.fill(self,"map",{},smalltalk.HTMLCanvas)})},
  853. messageSends: ["tag:"]}),
  854. smalltalk.HTMLCanvas);
  855. smalltalk.addMethod(
  856. smalltalk.method({
  857. selector: "mark",
  858. fn: function (){
  859. var self=this;
  860. return smalltalk.withContext(function($ctx1) {
  861. var $1;
  862. $1=self._tag_("mark");
  863. return $1;
  864. }, function($ctx1) {$ctx1.fill(self,"mark",{},smalltalk.HTMLCanvas)})},
  865. messageSends: ["tag:"]}),
  866. smalltalk.HTMLCanvas);
  867. smalltalk.addMethod(
  868. smalltalk.method({
  869. selector: "menu",
  870. fn: function (){
  871. var self=this;
  872. return smalltalk.withContext(function($ctx1) {
  873. var $1;
  874. $1=self._tag_("menu");
  875. return $1;
  876. }, function($ctx1) {$ctx1.fill(self,"menu",{},smalltalk.HTMLCanvas)})},
  877. messageSends: ["tag:"]}),
  878. smalltalk.HTMLCanvas);
  879. smalltalk.addMethod(
  880. smalltalk.method({
  881. selector: "meta",
  882. fn: function (){
  883. var self=this;
  884. return smalltalk.withContext(function($ctx1) {
  885. var $1;
  886. $1=self._tag_("meta");
  887. return $1;
  888. }, function($ctx1) {$ctx1.fill(self,"meta",{},smalltalk.HTMLCanvas)})},
  889. messageSends: ["tag:"]}),
  890. smalltalk.HTMLCanvas);
  891. smalltalk.addMethod(
  892. smalltalk.method({
  893. selector: "nav",
  894. fn: function (){
  895. var self=this;
  896. return smalltalk.withContext(function($ctx1) {
  897. var $1;
  898. $1=self._tag_("nav");
  899. return $1;
  900. }, function($ctx1) {$ctx1.fill(self,"nav",{},smalltalk.HTMLCanvas)})},
  901. messageSends: ["tag:"]}),
  902. smalltalk.HTMLCanvas);
  903. smalltalk.addMethod(
  904. smalltalk.method({
  905. selector: "newTag:",
  906. fn: function (aString){
  907. var self=this;
  908. function $TagBrush(){return smalltalk.TagBrush||(typeof TagBrush=="undefined"?nil:TagBrush)}
  909. return smalltalk.withContext(function($ctx1) {
  910. var $1;
  911. $1=_st($TagBrush())._fromString_canvas_(aString,self);
  912. return $1;
  913. }, function($ctx1) {$ctx1.fill(self,"newTag:",{aString:aString},smalltalk.HTMLCanvas)})},
  914. messageSends: ["fromString:canvas:"]}),
  915. smalltalk.HTMLCanvas);
  916. smalltalk.addMethod(
  917. smalltalk.method({
  918. selector: "noscript",
  919. fn: function (){
  920. var self=this;
  921. return smalltalk.withContext(function($ctx1) {
  922. var $1;
  923. $1=self._tag_("noscript");
  924. return $1;
  925. }, function($ctx1) {$ctx1.fill(self,"noscript",{},smalltalk.HTMLCanvas)})},
  926. messageSends: ["tag:"]}),
  927. smalltalk.HTMLCanvas);
  928. smalltalk.addMethod(
  929. smalltalk.method({
  930. selector: "object",
  931. fn: function (){
  932. var self=this;
  933. return smalltalk.withContext(function($ctx1) {
  934. var $1;
  935. $1=self._tag_("object");
  936. return $1;
  937. }, function($ctx1) {$ctx1.fill(self,"object",{},smalltalk.HTMLCanvas)})},
  938. messageSends: ["tag:"]}),
  939. smalltalk.HTMLCanvas);
  940. smalltalk.addMethod(
  941. smalltalk.method({
  942. selector: "ol",
  943. fn: function (){
  944. var self=this;
  945. return smalltalk.withContext(function($ctx1) {
  946. var $1;
  947. $1=self._tag_("ol");
  948. return $1;
  949. }, function($ctx1) {$ctx1.fill(self,"ol",{},smalltalk.HTMLCanvas)})},
  950. messageSends: ["tag:"]}),
  951. smalltalk.HTMLCanvas);
  952. smalltalk.addMethod(
  953. smalltalk.method({
  954. selector: "ol:",
  955. fn: function (anObject){
  956. var self=this;
  957. return smalltalk.withContext(function($ctx1) {
  958. var $1;
  959. $1=_st(self._ol())._with_(anObject);
  960. return $1;
  961. }, function($ctx1) {$ctx1.fill(self,"ol:",{anObject:anObject},smalltalk.HTMLCanvas)})},
  962. messageSends: ["with:", "ol"]}),
  963. smalltalk.HTMLCanvas);
  964. smalltalk.addMethod(
  965. smalltalk.method({
  966. selector: "optgroup",
  967. fn: function (){
  968. var self=this;
  969. return smalltalk.withContext(function($ctx1) {
  970. var $1;
  971. $1=self._tag_("optgroup");
  972. return $1;
  973. }, function($ctx1) {$ctx1.fill(self,"optgroup",{},smalltalk.HTMLCanvas)})},
  974. messageSends: ["tag:"]}),
  975. smalltalk.HTMLCanvas);
  976. smalltalk.addMethod(
  977. smalltalk.method({
  978. selector: "option",
  979. fn: function (){
  980. var self=this;
  981. return smalltalk.withContext(function($ctx1) {
  982. var $1;
  983. $1=self._tag_("option");
  984. return $1;
  985. }, function($ctx1) {$ctx1.fill(self,"option",{},smalltalk.HTMLCanvas)})},
  986. messageSends: ["tag:"]}),
  987. smalltalk.HTMLCanvas);
  988. smalltalk.addMethod(
  989. smalltalk.method({
  990. selector: "output",
  991. fn: function (){
  992. var self=this;
  993. return smalltalk.withContext(function($ctx1) {
  994. var $1;
  995. $1=self._tag_("output");
  996. return $1;
  997. }, function($ctx1) {$ctx1.fill(self,"output",{},smalltalk.HTMLCanvas)})},
  998. messageSends: ["tag:"]}),
  999. smalltalk.HTMLCanvas);
  1000. smalltalk.addMethod(
  1001. smalltalk.method({
  1002. selector: "p",
  1003. fn: function (){
  1004. var self=this;
  1005. return smalltalk.withContext(function($ctx1) {
  1006. var $1;
  1007. $1=self._tag_("p");
  1008. return $1;
  1009. }, function($ctx1) {$ctx1.fill(self,"p",{},smalltalk.HTMLCanvas)})},
  1010. messageSends: ["tag:"]}),
  1011. smalltalk.HTMLCanvas);
  1012. smalltalk.addMethod(
  1013. smalltalk.method({
  1014. selector: "p:",
  1015. fn: function (anObject){
  1016. var self=this;
  1017. return smalltalk.withContext(function($ctx1) {
  1018. var $1;
  1019. $1=_st(self._p())._with_(anObject);
  1020. return $1;
  1021. }, function($ctx1) {$ctx1.fill(self,"p:",{anObject:anObject},smalltalk.HTMLCanvas)})},
  1022. messageSends: ["with:", "p"]}),
  1023. smalltalk.HTMLCanvas);
  1024. smalltalk.addMethod(
  1025. smalltalk.method({
  1026. selector: "param",
  1027. fn: function (){
  1028. var self=this;
  1029. return smalltalk.withContext(function($ctx1) {
  1030. var $1;
  1031. $1=self._tag_("param");
  1032. return $1;
  1033. }, function($ctx1) {$ctx1.fill(self,"param",{},smalltalk.HTMLCanvas)})},
  1034. messageSends: ["tag:"]}),
  1035. smalltalk.HTMLCanvas);
  1036. smalltalk.addMethod(
  1037. smalltalk.method({
  1038. selector: "pre",
  1039. fn: function (){
  1040. var self=this;
  1041. return smalltalk.withContext(function($ctx1) {
  1042. var $1;
  1043. $1=self._tag_("pre");
  1044. return $1;
  1045. }, function($ctx1) {$ctx1.fill(self,"pre",{},smalltalk.HTMLCanvas)})},
  1046. messageSends: ["tag:"]}),
  1047. smalltalk.HTMLCanvas);
  1048. smalltalk.addMethod(
  1049. smalltalk.method({
  1050. selector: "progress",
  1051. fn: function (){
  1052. var self=this;
  1053. return smalltalk.withContext(function($ctx1) {
  1054. var $1;
  1055. $1=self._tag_("progress");
  1056. return $1;
  1057. }, function($ctx1) {$ctx1.fill(self,"progress",{},smalltalk.HTMLCanvas)})},
  1058. messageSends: ["tag:"]}),
  1059. smalltalk.HTMLCanvas);
  1060. smalltalk.addMethod(
  1061. smalltalk.method({
  1062. selector: "root",
  1063. fn: function (){
  1064. var self=this;
  1065. return smalltalk.withContext(function($ctx1) {
  1066. var $1;
  1067. $1=self["@root"];
  1068. return $1;
  1069. }, function($ctx1) {$ctx1.fill(self,"root",{},smalltalk.HTMLCanvas)})},
  1070. messageSends: []}),
  1071. smalltalk.HTMLCanvas);
  1072. smalltalk.addMethod(
  1073. smalltalk.method({
  1074. selector: "root:",
  1075. fn: function (aTagBrush){
  1076. var self=this;
  1077. return smalltalk.withContext(function($ctx1) {
  1078. self["@root"]=aTagBrush;
  1079. return self}, function($ctx1) {$ctx1.fill(self,"root:",{aTagBrush:aTagBrush},smalltalk.HTMLCanvas)})},
  1080. messageSends: []}),
  1081. smalltalk.HTMLCanvas);
  1082. smalltalk.addMethod(
  1083. smalltalk.method({
  1084. selector: "script",
  1085. fn: function (){
  1086. var self=this;
  1087. return smalltalk.withContext(function($ctx1) {
  1088. var $1;
  1089. $1=self._tag_("script");
  1090. return $1;
  1091. }, function($ctx1) {$ctx1.fill(self,"script",{},smalltalk.HTMLCanvas)})},
  1092. messageSends: ["tag:"]}),
  1093. smalltalk.HTMLCanvas);
  1094. smalltalk.addMethod(
  1095. smalltalk.method({
  1096. selector: "section",
  1097. fn: function (){
  1098. var self=this;
  1099. return smalltalk.withContext(function($ctx1) {
  1100. var $1;
  1101. $1=self._tag_("section");
  1102. return $1;
  1103. }, function($ctx1) {$ctx1.fill(self,"section",{},smalltalk.HTMLCanvas)})},
  1104. messageSends: ["tag:"]}),
  1105. smalltalk.HTMLCanvas);
  1106. smalltalk.addMethod(
  1107. smalltalk.method({
  1108. selector: "select",
  1109. fn: function (){
  1110. var self=this;
  1111. return smalltalk.withContext(function($ctx1) {
  1112. var $1;
  1113. $1=self._tag_("select");
  1114. return $1;
  1115. }, function($ctx1) {$ctx1.fill(self,"select",{},smalltalk.HTMLCanvas)})},
  1116. messageSends: ["tag:"]}),
  1117. smalltalk.HTMLCanvas);
  1118. smalltalk.addMethod(
  1119. smalltalk.method({
  1120. selector: "small",
  1121. fn: function (){
  1122. var self=this;
  1123. return smalltalk.withContext(function($ctx1) {
  1124. var $1;
  1125. $1=self._tag_("small");
  1126. return $1;
  1127. }, function($ctx1) {$ctx1.fill(self,"small",{},smalltalk.HTMLCanvas)})},
  1128. messageSends: ["tag:"]}),
  1129. smalltalk.HTMLCanvas);
  1130. smalltalk.addMethod(
  1131. smalltalk.method({
  1132. selector: "snippet:",
  1133. fn: function (anElement){
  1134. var self=this;
  1135. var clone,caret;
  1136. function $TagBrush(){return smalltalk.TagBrush||(typeof TagBrush=="undefined"?nil:TagBrush)}
  1137. return smalltalk.withContext(function($ctx1) {
  1138. var $1,$2;
  1139. clone=_st(_st(anElement)._asJQuery())._clone();
  1140. self._with_(_st($TagBrush())._fromJQuery_canvas_(clone,self));
  1141. caret=_st(clone)._find_("[data-snippet=\x22*\x22]");
  1142. $1=_st(_st(caret)._toArray())._isEmpty();
  1143. if(smalltalk.assert($1)){
  1144. caret=clone;
  1145. caret;
  1146. };
  1147. $2=_st($TagBrush())._fromJQuery_canvas_(_st(caret)._removeAttr_("data-snippet"),self);
  1148. return $2;
  1149. }, function($ctx1) {$ctx1.fill(self,"snippet:",{anElement:anElement,clone:clone,caret:caret},smalltalk.HTMLCanvas)})},
  1150. messageSends: ["clone", "asJQuery", "with:", "fromJQuery:canvas:", "find:", "ifTrue:", "isEmpty", "toArray", "removeAttr:"]}),
  1151. smalltalk.HTMLCanvas);
  1152. smalltalk.addMethod(
  1153. smalltalk.method({
  1154. selector: "source",
  1155. fn: function (){
  1156. var self=this;
  1157. return smalltalk.withContext(function($ctx1) {
  1158. var $1;
  1159. $1=self._tag_("source");
  1160. return $1;
  1161. }, function($ctx1) {$ctx1.fill(self,"source",{},smalltalk.HTMLCanvas)})},
  1162. messageSends: ["tag:"]}),
  1163. smalltalk.HTMLCanvas);
  1164. smalltalk.addMethod(
  1165. smalltalk.method({
  1166. selector: "span",
  1167. fn: function (){
  1168. var self=this;
  1169. return smalltalk.withContext(function($ctx1) {
  1170. var $1;
  1171. $1=self._tag_("span");
  1172. return $1;
  1173. }, function($ctx1) {$ctx1.fill(self,"span",{},smalltalk.HTMLCanvas)})},
  1174. messageSends: ["tag:"]}),
  1175. smalltalk.HTMLCanvas);
  1176. smalltalk.addMethod(
  1177. smalltalk.method({
  1178. selector: "span:",
  1179. fn: function (anObject){
  1180. var self=this;
  1181. return smalltalk.withContext(function($ctx1) {
  1182. var $1;
  1183. $1=_st(self._span())._with_(anObject);
  1184. return $1;
  1185. }, function($ctx1) {$ctx1.fill(self,"span:",{anObject:anObject},smalltalk.HTMLCanvas)})},
  1186. messageSends: ["with:", "span"]}),
  1187. smalltalk.HTMLCanvas);
  1188. smalltalk.addMethod(
  1189. smalltalk.method({
  1190. selector: "strong",
  1191. fn: function (){
  1192. var self=this;
  1193. return smalltalk.withContext(function($ctx1) {
  1194. var $1;
  1195. $1=self._tag_("strong");
  1196. return $1;
  1197. }, function($ctx1) {$ctx1.fill(self,"strong",{},smalltalk.HTMLCanvas)})},
  1198. messageSends: ["tag:"]}),
  1199. smalltalk.HTMLCanvas);
  1200. smalltalk.addMethod(
  1201. smalltalk.method({
  1202. selector: "strong:",
  1203. fn: function (anObject){
  1204. var self=this;
  1205. return smalltalk.withContext(function($ctx1) {
  1206. var $1;
  1207. $1=_st(self._strong())._with_(anObject);
  1208. return $1;
  1209. }, function($ctx1) {$ctx1.fill(self,"strong:",{anObject:anObject},smalltalk.HTMLCanvas)})},
  1210. messageSends: ["with:", "strong"]}),
  1211. smalltalk.HTMLCanvas);
  1212. smalltalk.addMethod(
  1213. smalltalk.method({
  1214. selector: "style",
  1215. fn: function (){
  1216. var self=this;
  1217. function $StyleTag(){return smalltalk.StyleTag||(typeof StyleTag=="undefined"?nil:StyleTag)}
  1218. return smalltalk.withContext(function($ctx1) {
  1219. var $1;
  1220. $1=_st(self["@root"])._addBrush_(_st($StyleTag())._canvas_(self));
  1221. return $1;
  1222. }, function($ctx1) {$ctx1.fill(self,"style",{},smalltalk.HTMLCanvas)})},
  1223. messageSends: ["addBrush:", "canvas:"]}),
  1224. smalltalk.HTMLCanvas);
  1225. smalltalk.addMethod(
  1226. smalltalk.method({
  1227. selector: "style:",
  1228. fn: function (aString){
  1229. var self=this;
  1230. return smalltalk.withContext(function($ctx1) {
  1231. var $2,$3,$1;
  1232. $2=self._style();
  1233. _st($2)._with_(aString);
  1234. $3=_st($2)._yourself();
  1235. $1=$3;
  1236. return $1;
  1237. }, function($ctx1) {$ctx1.fill(self,"style:",{aString:aString},smalltalk.HTMLCanvas)})},
  1238. messageSends: ["with:", "style", "yourself"]}),
  1239. smalltalk.HTMLCanvas);
  1240. smalltalk.addMethod(
  1241. smalltalk.method({
  1242. selector: "sub",
  1243. fn: function (){
  1244. var self=this;
  1245. return smalltalk.withContext(function($ctx1) {
  1246. var $1;
  1247. $1=self._tag_("sub");
  1248. return $1;
  1249. }, function($ctx1) {$ctx1.fill(self,"sub",{},smalltalk.HTMLCanvas)})},
  1250. messageSends: ["tag:"]}),
  1251. smalltalk.HTMLCanvas);
  1252. smalltalk.addMethod(
  1253. smalltalk.method({
  1254. selector: "summary",
  1255. fn: function (){
  1256. var self=this;
  1257. return smalltalk.withContext(function($ctx1) {
  1258. var $1;
  1259. $1=self._tag_("summary");
  1260. return $1;
  1261. }, function($ctx1) {$ctx1.fill(self,"summary",{},smalltalk.HTMLCanvas)})},
  1262. messageSends: ["tag:"]}),
  1263. smalltalk.HTMLCanvas);
  1264. smalltalk.addMethod(
  1265. smalltalk.method({
  1266. selector: "sup",
  1267. fn: function (){
  1268. var self=this;
  1269. return smalltalk.withContext(function($ctx1) {
  1270. var $1;
  1271. $1=self._tag_("sup");
  1272. return $1;
  1273. }, function($ctx1) {$ctx1.fill(self,"sup",{},smalltalk.HTMLCanvas)})},
  1274. messageSends: ["tag:"]}),
  1275. smalltalk.HTMLCanvas);
  1276. smalltalk.addMethod(
  1277. smalltalk.method({
  1278. selector: "table",
  1279. fn: function (){
  1280. var self=this;
  1281. return smalltalk.withContext(function($ctx1) {
  1282. var $1;
  1283. $1=self._tag_("table");
  1284. return $1;
  1285. }, function($ctx1) {$ctx1.fill(self,"table",{},smalltalk.HTMLCanvas)})},
  1286. messageSends: ["tag:"]}),
  1287. smalltalk.HTMLCanvas);
  1288. smalltalk.addMethod(
  1289. smalltalk.method({
  1290. selector: "tag:",
  1291. fn: function (aString){
  1292. var self=this;
  1293. return smalltalk.withContext(function($ctx1) {
  1294. var $1;
  1295. $1=_st(self["@root"])._addBrush_(self._newTag_(aString));
  1296. return $1;
  1297. }, function($ctx1) {$ctx1.fill(self,"tag:",{aString:aString},smalltalk.HTMLCanvas)})},
  1298. messageSends: ["addBrush:", "newTag:"]}),
  1299. smalltalk.HTMLCanvas);
  1300. smalltalk.addMethod(
  1301. smalltalk.method({
  1302. selector: "tbody",
  1303. fn: function (){
  1304. var self=this;
  1305. return smalltalk.withContext(function($ctx1) {
  1306. var $1;
  1307. $1=self._tag_("tbody");
  1308. return $1;
  1309. }, function($ctx1) {$ctx1.fill(self,"tbody",{},smalltalk.HTMLCanvas)})},
  1310. messageSends: ["tag:"]}),
  1311. smalltalk.HTMLCanvas);
  1312. smalltalk.addMethod(
  1313. smalltalk.method({
  1314. selector: "td",
  1315. fn: function (){
  1316. var self=this;
  1317. return smalltalk.withContext(function($ctx1) {
  1318. var $1;
  1319. $1=self._tag_("td");
  1320. return $1;
  1321. }, function($ctx1) {$ctx1.fill(self,"td",{},smalltalk.HTMLCanvas)})},
  1322. messageSends: ["tag:"]}),
  1323. smalltalk.HTMLCanvas);
  1324. smalltalk.addMethod(
  1325. smalltalk.method({
  1326. selector: "textarea",
  1327. fn: function (){
  1328. var self=this;
  1329. return smalltalk.withContext(function($ctx1) {
  1330. var $1;
  1331. $1=self._tag_("textarea");
  1332. return $1;
  1333. }, function($ctx1) {$ctx1.fill(self,"textarea",{},smalltalk.HTMLCanvas)})},
  1334. messageSends: ["tag:"]}),
  1335. smalltalk.HTMLCanvas);
  1336. smalltalk.addMethod(
  1337. smalltalk.method({
  1338. selector: "tfoot",
  1339. fn: function (){
  1340. var self=this;
  1341. return smalltalk.withContext(function($ctx1) {
  1342. var $1;
  1343. $1=self._tag_("tfoot");
  1344. return $1;
  1345. }, function($ctx1) {$ctx1.fill(self,"tfoot",{},smalltalk.HTMLCanvas)})},
  1346. messageSends: ["tag:"]}),
  1347. smalltalk.HTMLCanvas);
  1348. smalltalk.addMethod(
  1349. smalltalk.method({
  1350. selector: "th",
  1351. fn: function (){
  1352. var self=this;
  1353. return smalltalk.withContext(function($ctx1) {
  1354. var $1;
  1355. $1=self._tag_("th");
  1356. return $1;
  1357. }, function($ctx1) {$ctx1.fill(self,"th",{},smalltalk.HTMLCanvas)})},
  1358. messageSends: ["tag:"]}),
  1359. smalltalk.HTMLCanvas);
  1360. smalltalk.addMethod(
  1361. smalltalk.method({
  1362. selector: "thead",
  1363. fn: function (){
  1364. var self=this;
  1365. return smalltalk.withContext(function($ctx1) {
  1366. var $1;
  1367. $1=self._tag_("thead");
  1368. return $1;
  1369. }, function($ctx1) {$ctx1.fill(self,"thead",{},smalltalk.HTMLCanvas)})},
  1370. messageSends: ["tag:"]}),
  1371. smalltalk.HTMLCanvas);
  1372. smalltalk.addMethod(
  1373. smalltalk.method({
  1374. selector: "time",
  1375. fn: function (){
  1376. var self=this;
  1377. return smalltalk.withContext(function($ctx1) {
  1378. var $1;
  1379. $1=self._tag_("time");
  1380. return $1;
  1381. }, function($ctx1) {$ctx1.fill(self,"time",{},smalltalk.HTMLCanvas)})},
  1382. messageSends: ["tag:"]}),
  1383. smalltalk.HTMLCanvas);
  1384. smalltalk.addMethod(
  1385. smalltalk.method({
  1386. selector: "title",
  1387. fn: function (){
  1388. var self=this;
  1389. return smalltalk.withContext(function($ctx1) {
  1390. var $1;
  1391. $1=self._tag_("title");
  1392. return $1;
  1393. }, function($ctx1) {$ctx1.fill(self,"title",{},smalltalk.HTMLCanvas)})},
  1394. messageSends: ["tag:"]}),
  1395. smalltalk.HTMLCanvas);
  1396. smalltalk.addMethod(
  1397. smalltalk.method({
  1398. selector: "tr",
  1399. fn: function (){
  1400. var self=this;
  1401. return smalltalk.withContext(function($ctx1) {
  1402. var $1;
  1403. $1=self._tag_("tr");
  1404. return $1;
  1405. }, function($ctx1) {$ctx1.fill(self,"tr",{},smalltalk.HTMLCanvas)})},
  1406. messageSends: ["tag:"]}),
  1407. smalltalk.HTMLCanvas);
  1408. smalltalk.addMethod(
  1409. smalltalk.method({
  1410. selector: "ul",
  1411. fn: function (){
  1412. var self=this;
  1413. return smalltalk.withContext(function($ctx1) {
  1414. var $1;
  1415. $1=self._tag_("ul");
  1416. return $1;
  1417. }, function($ctx1) {$ctx1.fill(self,"ul",{},smalltalk.HTMLCanvas)})},
  1418. messageSends: ["tag:"]}),
  1419. smalltalk.HTMLCanvas);
  1420. smalltalk.addMethod(
  1421. smalltalk.method({
  1422. selector: "ul:",
  1423. fn: function (anObject){
  1424. var self=this;
  1425. return smalltalk.withContext(function($ctx1) {
  1426. var $1;
  1427. $1=_st(self._ul())._with_(anObject);
  1428. return $1;
  1429. }, function($ctx1) {$ctx1.fill(self,"ul:",{anObject:anObject},smalltalk.HTMLCanvas)})},
  1430. messageSends: ["with:", "ul"]}),
  1431. smalltalk.HTMLCanvas);
  1432. smalltalk.addMethod(
  1433. smalltalk.method({
  1434. selector: "video",
  1435. fn: function (){
  1436. var self=this;
  1437. return smalltalk.withContext(function($ctx1) {
  1438. var $1;
  1439. $1=self._tag_("video");
  1440. return $1;
  1441. }, function($ctx1) {$ctx1.fill(self,"video",{},smalltalk.HTMLCanvas)})},
  1442. messageSends: ["tag:"]}),
  1443. smalltalk.HTMLCanvas);
  1444. smalltalk.addMethod(
  1445. smalltalk.method({
  1446. selector: "with:",
  1447. fn: function (anObject){
  1448. var self=this;
  1449. return smalltalk.withContext(function($ctx1) {
  1450. var $1;
  1451. $1=_st(self._root())._with_(anObject);
  1452. return $1;
  1453. }, function($ctx1) {$ctx1.fill(self,"with:",{anObject:anObject},smalltalk.HTMLCanvas)})},
  1454. messageSends: ["with:", "root"]}),
  1455. smalltalk.HTMLCanvas);
  1456. smalltalk.addMethod(
  1457. smalltalk.method({
  1458. selector: "browserVersion",
  1459. fn: function (){
  1460. var self=this;
  1461. return smalltalk.withContext(function($ctx1) {
  1462. var $1;
  1463. $1=_st(_st(jQuery)._at_("browser"))._version();
  1464. return $1;
  1465. }, function($ctx1) {$ctx1.fill(self,"browserVersion",{},smalltalk.HTMLCanvas.klass)})},
  1466. messageSends: ["version", "at:"]}),
  1467. smalltalk.HTMLCanvas.klass);
  1468. smalltalk.addMethod(
  1469. smalltalk.method({
  1470. selector: "isMSIE",
  1471. fn: function (){
  1472. var self=this;
  1473. return smalltalk.withContext(function($ctx1) {
  1474. var $1;
  1475. $1=_st(_st(_st(jQuery)._at_("browser"))._at_("msie"))._notNil();
  1476. return $1;
  1477. }, function($ctx1) {$ctx1.fill(self,"isMSIE",{},smalltalk.HTMLCanvas.klass)})},
  1478. messageSends: ["notNil", "at:"]}),
  1479. smalltalk.HTMLCanvas.klass);
  1480. smalltalk.addMethod(
  1481. smalltalk.method({
  1482. selector: "isMozilla",
  1483. fn: function (){
  1484. var self=this;
  1485. return smalltalk.withContext(function($ctx1) {
  1486. var $1;
  1487. $1=_st(_st(_st(jQuery)._at_("browser"))._at_("mozilla"))._notNil();
  1488. return $1;
  1489. }, function($ctx1) {$ctx1.fill(self,"isMozilla",{},smalltalk.HTMLCanvas.klass)})},
  1490. messageSends: ["notNil", "at:"]}),
  1491. smalltalk.HTMLCanvas.klass);
  1492. smalltalk.addMethod(
  1493. smalltalk.method({
  1494. selector: "isOpera",
  1495. fn: function (){
  1496. var self=this;
  1497. return smalltalk.withContext(function($ctx1) {
  1498. var $1;
  1499. $1=_st(_st(_st(jQuery)._at_("browser"))._at_("opera"))._notNil();
  1500. return $1;
  1501. }, function($ctx1) {$ctx1.fill(self,"isOpera",{},smalltalk.HTMLCanvas.klass)})},
  1502. messageSends: ["notNil", "at:"]}),
  1503. smalltalk.HTMLCanvas.klass);
  1504. smalltalk.addMethod(
  1505. smalltalk.method({
  1506. selector: "isWebkit",
  1507. fn: function (){
  1508. var self=this;
  1509. return smalltalk.withContext(function($ctx1) {
  1510. var $1;
  1511. $1=_st(_st(_st(jQuery)._at_("browser"))._at_("webkit"))._notNil();
  1512. return $1;
  1513. }, function($ctx1) {$ctx1.fill(self,"isWebkit",{},smalltalk.HTMLCanvas.klass)})},
  1514. messageSends: ["notNil", "at:"]}),
  1515. smalltalk.HTMLCanvas.klass);
  1516. smalltalk.addMethod(
  1517. smalltalk.method({
  1518. selector: "onJQuery:",
  1519. fn: function (aJQuery){
  1520. var self=this;
  1521. return smalltalk.withContext(function($ctx1) {
  1522. var $2,$3,$1;
  1523. $2=self._basicNew();
  1524. _st($2)._initializeFromJQuery_(aJQuery);
  1525. _st($2)._initialize();
  1526. $3=_st($2)._yourself();
  1527. $1=$3;
  1528. return $1;
  1529. }, function($ctx1) {$ctx1.fill(self,"onJQuery:",{aJQuery:aJQuery},smalltalk.HTMLCanvas.klass)})},
  1530. messageSends: ["initializeFromJQuery:", "basicNew", "initialize", "yourself"]}),
  1531. smalltalk.HTMLCanvas.klass);
  1532. smalltalk.addClass('HTMLSnippet', smalltalk.Object, ['snippets'], 'Canvas');
  1533. smalltalk.addMethod(
  1534. smalltalk.method({
  1535. selector: "initializeFromJQuery:",
  1536. fn: function (aJQuery){
  1537. var self=this;
  1538. return smalltalk.withContext(function($ctx1) {
  1539. _st(self._snippetsFromJQuery_(aJQuery))._do_((function(each){
  1540. return smalltalk.withContext(function($ctx2) {
  1541. return self._installSnippetFromJQuery_(_st(each)._asJQuery());
  1542. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  1543. return self}, function($ctx1) {$ctx1.fill(self,"initializeFromJQuery:",{aJQuery:aJQuery},smalltalk.HTMLSnippet)})},
  1544. messageSends: ["do:", "installSnippetFromJQuery:", "asJQuery", "snippetsFromJQuery:"]}),
  1545. smalltalk.HTMLSnippet);
  1546. smalltalk.addMethod(
  1547. smalltalk.method({
  1548. selector: "installSnippetFromJQuery:",
  1549. fn: function (element){
  1550. var self=this;
  1551. var name;
  1552. return smalltalk.withContext(function($ctx1) {
  1553. var $1,$2;
  1554. name=_st(element)._attr_("data-snippet");
  1555. $1=_st(name).__eq("*");
  1556. if(! smalltalk.assert($1)){
  1557. $2=_st("^\x5c*"._asRegexp())._test_(name);
  1558. if(smalltalk.assert($2)){
  1559. name=_st(name)._allButFirst();
  1560. name;
  1561. _st(element)._attr_put_("data-snippet","*");
  1562. } else {
  1563. _st(element)._removeAttr_("data-snippet");
  1564. };
  1565. self._snippetAt_install_(name,_st(_st(element)._detach())._get_((0)));
  1566. };
  1567. return self}, function($ctx1) {$ctx1.fill(self,"installSnippetFromJQuery:",{element:element,name:name},smalltalk.HTMLSnippet)})},
  1568. messageSends: ["attr:", "ifFalse:", "ifTrue:ifFalse:", "allButFirst", "attr:put:", "removeAttr:", "test:", "asRegexp", "snippetAt:install:", "get:", "detach", "="]}),
  1569. smalltalk.HTMLSnippet);
  1570. smalltalk.addMethod(
  1571. smalltalk.method({
  1572. selector: "snippetAt:",
  1573. fn: function (aString){
  1574. var self=this;
  1575. return smalltalk.withContext(function($ctx1) {
  1576. var $1;
  1577. $1=_st(self._snippets())._at_(aString);
  1578. return $1;
  1579. }, function($ctx1) {$ctx1.fill(self,"snippetAt:",{aString:aString},smalltalk.HTMLSnippet)})},
  1580. messageSends: ["at:", "snippets"]}),
  1581. smalltalk.HTMLSnippet);
  1582. smalltalk.addMethod(
  1583. smalltalk.method({
  1584. selector: "snippetAt:compile:",
  1585. fn: function (aString,anElement){
  1586. var self=this;
  1587. function $HTMLCanvas(){return smalltalk.HTMLCanvas||(typeof HTMLCanvas=="undefined"?nil:HTMLCanvas)}
  1588. function $ClassBuilder(){return smalltalk.ClassBuilder||(typeof ClassBuilder=="undefined"?nil:ClassBuilder)}
  1589. return smalltalk.withContext(function($ctx1) {
  1590. _st(_st($ClassBuilder())._new())._installMethod_forClass_category_(_st(_st((function(htmlReceiver){
  1591. return smalltalk.withContext(function($ctx2) {
  1592. return _st(htmlReceiver)._snippet_(anElement);
  1593. }, function($ctx2) {$ctx2.fillBlock({htmlReceiver:htmlReceiver},$ctx1)})}))._currySelf())._asCompiledMethod_(aString),$HTMLCanvas(),"**snippets");
  1594. return self}, function($ctx1) {$ctx1.fill(self,"snippetAt:compile:",{aString:aString,anElement:anElement},smalltalk.HTMLSnippet)})},
  1595. messageSends: ["installMethod:forClass:category:", "asCompiledMethod:", "currySelf", "snippet:", "new"]}),
  1596. smalltalk.HTMLSnippet);
  1597. smalltalk.addMethod(
  1598. smalltalk.method({
  1599. selector: "snippetAt:install:",
  1600. fn: function (aString,anElement){
  1601. var self=this;
  1602. return smalltalk.withContext(function($ctx1) {
  1603. _st(self._snippets())._at_put_(aString,anElement);
  1604. self._snippetAt_compile_(aString,anElement);
  1605. return self}, function($ctx1) {$ctx1.fill(self,"snippetAt:install:",{aString:aString,anElement:anElement},smalltalk.HTMLSnippet)})},
  1606. messageSends: ["at:put:", "snippets", "snippetAt:compile:"]}),
  1607. smalltalk.HTMLSnippet);
  1608. smalltalk.addMethod(
  1609. smalltalk.method({
  1610. selector: "snippets",
  1611. fn: function (){
  1612. var self=this;
  1613. return smalltalk.withContext(function($ctx1) {
  1614. var $2,$1;
  1615. $2=self["@snippets"];
  1616. if(($receiver = $2) == nil || $receiver == undefined){
  1617. self["@snippets"]=smalltalk.HashedCollection._from_([]);
  1618. $1=self["@snippets"];
  1619. } else {
  1620. $1=$2;
  1621. };
  1622. return $1;
  1623. }, function($ctx1) {$ctx1.fill(self,"snippets",{},smalltalk.HTMLSnippet)})},
  1624. messageSends: ["ifNil:"]}),
  1625. smalltalk.HTMLSnippet);
  1626. smalltalk.addMethod(
  1627. smalltalk.method({
  1628. selector: "snippetsFromJQuery:",
  1629. fn: function (aJQuery){
  1630. var self=this;
  1631. return smalltalk.withContext(function($ctx1) {
  1632. var $1;
  1633. $1=_st(_st(aJQuery)._find_("[data-snippet]"))._toArray();
  1634. return $1;
  1635. }, function($ctx1) {$ctx1.fill(self,"snippetsFromJQuery:",{aJQuery:aJQuery},smalltalk.HTMLSnippet)})},
  1636. messageSends: ["toArray", "find:"]}),
  1637. smalltalk.HTMLSnippet);
  1638. smalltalk.HTMLSnippet.klass.iVarNames = ['current'];
  1639. smalltalk.addMethod(
  1640. smalltalk.method({
  1641. selector: "current",
  1642. fn: function (){
  1643. var self=this;
  1644. return smalltalk.withContext(function($ctx1) {
  1645. var $1;
  1646. $1=self["@current"];
  1647. return $1;
  1648. }, function($ctx1) {$ctx1.fill(self,"current",{},smalltalk.HTMLSnippet.klass)})},
  1649. messageSends: []}),
  1650. smalltalk.HTMLSnippet.klass);
  1651. smalltalk.addMethod(
  1652. smalltalk.method({
  1653. selector: "ensureCurrent",
  1654. fn: function (){
  1655. var self=this;
  1656. return smalltalk.withContext(function($ctx1) {
  1657. var $1,$2,$3;
  1658. $1=self["@current"];
  1659. if(($receiver = $1) == nil || $receiver == undefined){
  1660. $2=smalltalk.HTMLSnippet.klass.superclass.fn.prototype._new.apply(_st(self), []);
  1661. _st($2)._initializeFromJQuery_(_st(document)._asJQuery());
  1662. $3=_st($2)._yourself();
  1663. self["@current"]=$3;
  1664. self["@current"];
  1665. } else {
  1666. $1;
  1667. };
  1668. return self}, function($ctx1) {$ctx1.fill(self,"ensureCurrent",{},smalltalk.HTMLSnippet.klass)})},
  1669. messageSends: ["ifNil:", "initializeFromJQuery:", "asJQuery", "new", "yourself"]}),
  1670. smalltalk.HTMLSnippet.klass);
  1671. smalltalk.addMethod(
  1672. smalltalk.method({
  1673. selector: "initialize",
  1674. fn: function (){
  1675. var self=this;
  1676. return smalltalk.withContext(function($ctx1) {
  1677. var $1;
  1678. smalltalk.HTMLSnippet.klass.superclass.fn.prototype._initialize.apply(_st(self), []);
  1679. $1=self._isDOMAvailable();
  1680. if(smalltalk.assert($1)){
  1681. self._ensureCurrent();
  1682. };
  1683. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.HTMLSnippet.klass)})},
  1684. messageSends: ["initialize", "ifTrue:", "ensureCurrent", "isDOMAvailable"]}),
  1685. smalltalk.HTMLSnippet.klass);
  1686. smalltalk.addMethod(
  1687. smalltalk.method({
  1688. selector: "isDOMAvailable",
  1689. fn: function (){
  1690. var self=this;
  1691. return smalltalk.withContext(function($ctx1) {
  1692. return typeof document !== 'undefined' ;
  1693. return self}, function($ctx1) {$ctx1.fill(self,"isDOMAvailable",{},smalltalk.HTMLSnippet.klass)})},
  1694. messageSends: []}),
  1695. smalltalk.HTMLSnippet.klass);
  1696. smalltalk.addMethod(
  1697. smalltalk.method({
  1698. selector: "new",
  1699. fn: function (){
  1700. var self=this;
  1701. return smalltalk.withContext(function($ctx1) {
  1702. self._shouldNotImplement();
  1703. return self}, function($ctx1) {$ctx1.fill(self,"new",{},smalltalk.HTMLSnippet.klass)})},
  1704. messageSends: ["shouldNotImplement"]}),
  1705. smalltalk.HTMLSnippet.klass);
  1706. smalltalk.addClass('TagBrush', smalltalk.Object, ['canvas', 'element'], 'Canvas');
  1707. smalltalk.addMethod(
  1708. smalltalk.method({
  1709. selector: "accesskey:",
  1710. fn: function (aString){
  1711. var self=this;
  1712. return smalltalk.withContext(function($ctx1) {
  1713. self._at_put_("accesskey",aString);
  1714. return self}, function($ctx1) {$ctx1.fill(self,"accesskey:",{aString:aString},smalltalk.TagBrush)})},
  1715. messageSends: ["at:put:"]}),
  1716. smalltalk.TagBrush);
  1717. smalltalk.addMethod(
  1718. smalltalk.method({
  1719. selector: "action:",
  1720. fn: function (aString){
  1721. var self=this;
  1722. return smalltalk.withContext(function($ctx1) {
  1723. self._at_put_("action",aString);
  1724. return self}, function($ctx1) {$ctx1.fill(self,"action:",{aString:aString},smalltalk.TagBrush)})},
  1725. messageSends: ["at:put:"]}),
  1726. smalltalk.TagBrush);
  1727. smalltalk.addMethod(
  1728. smalltalk.method({
  1729. selector: "addBrush:",
  1730. fn: function (aTagBrush){
  1731. var self=this;
  1732. return smalltalk.withContext(function($ctx1) {
  1733. var $1;
  1734. self._appendChild_(_st(aTagBrush)._element());
  1735. $1=aTagBrush;
  1736. return $1;
  1737. }, function($ctx1) {$ctx1.fill(self,"addBrush:",{aTagBrush:aTagBrush},smalltalk.TagBrush)})},
  1738. messageSends: ["appendChild:", "element"]}),
  1739. smalltalk.TagBrush);
  1740. smalltalk.addMethod(
  1741. smalltalk.method({
  1742. selector: "align:",
  1743. fn: function (aString){
  1744. var self=this;
  1745. return smalltalk.withContext(function($ctx1) {
  1746. self._at_put_("align",aString);
  1747. return self}, function($ctx1) {$ctx1.fill(self,"align:",{aString:aString},smalltalk.TagBrush)})},
  1748. messageSends: ["at:put:"]}),
  1749. smalltalk.TagBrush);
  1750. smalltalk.addMethod(
  1751. smalltalk.method({
  1752. selector: "alt:",
  1753. fn: function (aString){
  1754. var self=this;
  1755. return smalltalk.withContext(function($ctx1) {
  1756. self._at_put_("alt",aString);
  1757. return self}, function($ctx1) {$ctx1.fill(self,"alt:",{aString:aString},smalltalk.TagBrush)})},
  1758. messageSends: ["at:put:"]}),
  1759. smalltalk.TagBrush);
  1760. smalltalk.addMethod(
  1761. smalltalk.method({
  1762. selector: "append:",
  1763. fn: function (anObject){
  1764. var self=this;
  1765. return smalltalk.withContext(function($ctx1) {
  1766. _st(anObject)._appendToBrush_(self);
  1767. return self}, function($ctx1) {$ctx1.fill(self,"append:",{anObject:anObject},smalltalk.TagBrush)})},
  1768. messageSends: ["appendToBrush:"]}),
  1769. smalltalk.TagBrush);
  1770. smalltalk.addMethod(
  1771. smalltalk.method({
  1772. selector: "appendBlock:",
  1773. fn: function (aBlock){
  1774. var self=this;
  1775. var root;
  1776. return smalltalk.withContext(function($ctx1) {
  1777. root=_st(self["@canvas"])._root();
  1778. _st(self["@canvas"])._root_(self);
  1779. _st(aBlock)._value_(self["@canvas"]);
  1780. _st(self["@canvas"])._root_(root);
  1781. return self}, function($ctx1) {$ctx1.fill(self,"appendBlock:",{aBlock:aBlock,root:root},smalltalk.TagBrush)})},
  1782. messageSends: ["root", "root:", "value:"]}),
  1783. smalltalk.TagBrush);
  1784. smalltalk.addMethod(
  1785. smalltalk.method({
  1786. selector: "appendChild:",
  1787. fn: function (anElement){
  1788. var self=this;
  1789. return smalltalk.withContext(function($ctx1) {
  1790. var element=self['@element'];
  1791. if (null == element.canHaveChildren || element.canHaveChildren) {
  1792. element.appendChild(anElement);
  1793. } else {
  1794. element.text = String(element.text) + anElement.innerHTML;
  1795. } ;
  1796. return self}, function($ctx1) {$ctx1.fill(self,"appendChild:",{anElement:anElement},smalltalk.TagBrush)})},
  1797. messageSends: []}),
  1798. smalltalk.TagBrush);
  1799. smalltalk.addMethod(
  1800. smalltalk.method({
  1801. selector: "appendString:",
  1802. fn: function (aString){
  1803. var self=this;
  1804. return smalltalk.withContext(function($ctx1) {
  1805. self._appendChild_(self._createTextNodeFor_(aString));
  1806. return self}, function($ctx1) {$ctx1.fill(self,"appendString:",{aString:aString},smalltalk.TagBrush)})},
  1807. messageSends: ["appendChild:", "createTextNodeFor:"]}),
  1808. smalltalk.TagBrush);
  1809. smalltalk.addMethod(
  1810. smalltalk.method({
  1811. selector: "appendToBrush:",
  1812. fn: function (aTagBrush){
  1813. var self=this;
  1814. return smalltalk.withContext(function($ctx1) {
  1815. _st(aTagBrush)._addBrush_(self);
  1816. return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},smalltalk.TagBrush)})},
  1817. messageSends: ["addBrush:"]}),
  1818. smalltalk.TagBrush);
  1819. smalltalk.addMethod(
  1820. smalltalk.method({
  1821. selector: "asJQuery",
  1822. fn: function (){
  1823. var self=this;
  1824. return smalltalk.withContext(function($ctx1) {
  1825. var $1;
  1826. $1=_st(self._element())._asJQuery();
  1827. return $1;
  1828. }, function($ctx1) {$ctx1.fill(self,"asJQuery",{},smalltalk.TagBrush)})},
  1829. messageSends: ["asJQuery", "element"]}),
  1830. smalltalk.TagBrush);
  1831. smalltalk.addMethod(
  1832. smalltalk.method({
  1833. selector: "at:put:",
  1834. fn: function (aString,aValue){
  1835. var self=this;
  1836. return smalltalk.withContext(function($ctx1) {
  1837. self['@element'].setAttribute(aString, aValue);
  1838. return self}, function($ctx1) {$ctx1.fill(self,"at:put:",{aString:aString,aValue:aValue},smalltalk.TagBrush)})},
  1839. messageSends: []}),
  1840. smalltalk.TagBrush);
  1841. smalltalk.addMethod(
  1842. smalltalk.method({
  1843. selector: "class:",
  1844. fn: function (aString){
  1845. var self=this;
  1846. return smalltalk.withContext(function($ctx1) {
  1847. self['@element'].className = aString;
  1848. return self}, function($ctx1) {$ctx1.fill(self,"class:",{aString:aString},smalltalk.TagBrush)})},
  1849. messageSends: []}),
  1850. smalltalk.TagBrush);
  1851. smalltalk.addMethod(
  1852. smalltalk.method({
  1853. selector: "cols:",
  1854. fn: function (aString){
  1855. var self=this;
  1856. return smalltalk.withContext(function($ctx1) {
  1857. self._at_put_("cols",aString);
  1858. return self}, function($ctx1) {$ctx1.fill(self,"cols:",{aString:aString},smalltalk.TagBrush)})},
  1859. messageSends: ["at:put:"]}),
  1860. smalltalk.TagBrush);
  1861. smalltalk.addMethod(
  1862. smalltalk.method({
  1863. selector: "contenteditable:",
  1864. fn: function (aString){
  1865. var self=this;
  1866. return smalltalk.withContext(function($ctx1) {
  1867. self._at_put_("contenteditable",aString);
  1868. return self}, function($ctx1) {$ctx1.fill(self,"contenteditable:",{aString:aString},smalltalk.TagBrush)})},
  1869. messageSends: ["at:put:"]}),
  1870. smalltalk.TagBrush);
  1871. smalltalk.addMethod(
  1872. smalltalk.method({
  1873. selector: "contents:",
  1874. fn: function (anObject){
  1875. var self=this;
  1876. return smalltalk.withContext(function($ctx1) {
  1877. var $1,$2;
  1878. $1=self;
  1879. _st($1)._empty();
  1880. $2=_st($1)._append_(anObject);
  1881. return self}, function($ctx1) {$ctx1.fill(self,"contents:",{anObject:anObject},smalltalk.TagBrush)})},
  1882. messageSends: ["empty", "append:"]}),
  1883. smalltalk.TagBrush);
  1884. smalltalk.addMethod(
  1885. smalltalk.method({
  1886. selector: "contextmenu:",
  1887. fn: function (aString){
  1888. var self=this;
  1889. return smalltalk.withContext(function($ctx1) {
  1890. self._at_put_("contextmenu",aString);
  1891. return self}, function($ctx1) {$ctx1.fill(self,"contextmenu:",{aString:aString},smalltalk.TagBrush)})},
  1892. messageSends: ["at:put:"]}),
  1893. smalltalk.TagBrush);
  1894. smalltalk.addMethod(
  1895. smalltalk.method({
  1896. selector: "createElementFor:",
  1897. fn: function (aString){
  1898. var self=this;
  1899. return smalltalk.withContext(function($ctx1) {
  1900. return document.createElement(String(aString));
  1901. return self}, function($ctx1) {$ctx1.fill(self,"createElementFor:",{aString:aString},smalltalk.TagBrush)})},
  1902. messageSends: []}),
  1903. smalltalk.TagBrush);
  1904. smalltalk.addMethod(
  1905. smalltalk.method({
  1906. selector: "createTextNodeFor:",
  1907. fn: function (aString){
  1908. var self=this;
  1909. return smalltalk.withContext(function($ctx1) {
  1910. return document.createTextNode(String(aString));
  1911. return self}, function($ctx1) {$ctx1.fill(self,"createTextNodeFor:",{aString:aString},smalltalk.TagBrush)})},
  1912. messageSends: []}),
  1913. smalltalk.TagBrush);
  1914. smalltalk.addMethod(
  1915. smalltalk.method({
  1916. selector: "draggable:",
  1917. fn: function (aString){
  1918. var self=this;
  1919. return smalltalk.withContext(function($ctx1) {
  1920. self._at_put_("draggable",aString);
  1921. return self}, function($ctx1) {$ctx1.fill(self,"draggable:",{aString:aString},smalltalk.TagBrush)})},
  1922. messageSends: ["at:put:"]}),
  1923. smalltalk.TagBrush);
  1924. smalltalk.addMethod(
  1925. smalltalk.method({
  1926. selector: "element",
  1927. fn: function (){
  1928. var self=this;
  1929. return smalltalk.withContext(function($ctx1) {
  1930. var $1;
  1931. $1=self["@element"];
  1932. return $1;
  1933. }, function($ctx1) {$ctx1.fill(self,"element",{},smalltalk.TagBrush)})},
  1934. messageSends: []}),
  1935. smalltalk.TagBrush);
  1936. smalltalk.addMethod(
  1937. smalltalk.method({
  1938. selector: "empty",
  1939. fn: function (){
  1940. var self=this;
  1941. return smalltalk.withContext(function($ctx1) {
  1942. _st(self._asJQuery())._empty();
  1943. return self}, function($ctx1) {$ctx1.fill(self,"empty",{},smalltalk.TagBrush)})},
  1944. messageSends: ["empty", "asJQuery"]}),
  1945. smalltalk.TagBrush);
  1946. smalltalk.addMethod(
  1947. smalltalk.method({
  1948. selector: "for:",
  1949. fn: function (aString){
  1950. var self=this;
  1951. return smalltalk.withContext(function($ctx1) {
  1952. self._at_put_("for",aString);
  1953. return self}, function($ctx1) {$ctx1.fill(self,"for:",{aString:aString},smalltalk.TagBrush)})},
  1954. messageSends: ["at:put:"]}),
  1955. smalltalk.TagBrush);
  1956. smalltalk.addMethod(
  1957. smalltalk.method({
  1958. selector: "height:",
  1959. fn: function (aString){
  1960. var self=this;
  1961. return smalltalk.withContext(function($ctx1) {
  1962. self._at_put_("height",aString);
  1963. return self}, function($ctx1) {$ctx1.fill(self,"height:",{aString:aString},smalltalk.TagBrush)})},
  1964. messageSends: ["at:put:"]}),
  1965. smalltalk.TagBrush);
  1966. smalltalk.addMethod(
  1967. smalltalk.method({
  1968. selector: "hidden",
  1969. fn: function (){
  1970. var self=this;
  1971. return smalltalk.withContext(function($ctx1) {
  1972. self._at_put_("hidden","hidden");
  1973. return self}, function($ctx1) {$ctx1.fill(self,"hidden",{},smalltalk.TagBrush)})},
  1974. messageSends: ["at:put:"]}),
  1975. smalltalk.TagBrush);
  1976. smalltalk.addMethod(
  1977. smalltalk.method({
  1978. selector: "href:",
  1979. fn: function (aString){
  1980. var self=this;
  1981. return smalltalk.withContext(function($ctx1) {
  1982. self._at_put_("href",aString);
  1983. return self}, function($ctx1) {$ctx1.fill(self,"href:",{aString:aString},smalltalk.TagBrush)})},
  1984. messageSends: ["at:put:"]}),
  1985. smalltalk.TagBrush);
  1986. smalltalk.addMethod(
  1987. smalltalk.method({
  1988. selector: "id:",
  1989. fn: function (aString){
  1990. var self=this;
  1991. return smalltalk.withContext(function($ctx1) {
  1992. self._at_put_("id",aString);
  1993. return self}, function($ctx1) {$ctx1.fill(self,"id:",{aString:aString},smalltalk.TagBrush)})},
  1994. messageSends: ["at:put:"]}),
  1995. smalltalk.TagBrush);
  1996. smalltalk.addMethod(
  1997. smalltalk.method({
  1998. selector: "initializeFromJQuery:canvas:",
  1999. fn: function (aJQuery,aCanvas){
  2000. var self=this;
  2001. return smalltalk.withContext(function($ctx1) {
  2002. self["@element"]=_st(aJQuery)._get_((0));
  2003. self["@canvas"]=aCanvas;
  2004. return self}, function($ctx1) {$ctx1.fill(self,"initializeFromJQuery:canvas:",{aJQuery:aJQuery,aCanvas:aCanvas},smalltalk.TagBrush)})},
  2005. messageSends: ["get:"]}),
  2006. smalltalk.TagBrush);
  2007. smalltalk.addMethod(
  2008. smalltalk.method({
  2009. selector: "initializeFromString:canvas:",
  2010. fn: function (aString,aCanvas){
  2011. var self=this;
  2012. return smalltalk.withContext(function($ctx1) {
  2013. self["@element"]=self._createElementFor_(aString);
  2014. self["@canvas"]=aCanvas;
  2015. return self}, function($ctx1) {$ctx1.fill(self,"initializeFromString:canvas:",{aString:aString,aCanvas:aCanvas},smalltalk.TagBrush)})},
  2016. messageSends: ["createElementFor:"]}),
  2017. smalltalk.TagBrush);
  2018. smalltalk.addMethod(
  2019. smalltalk.method({
  2020. selector: "media:",
  2021. fn: function (aString){
  2022. var self=this;
  2023. return smalltalk.withContext(function($ctx1) {
  2024. self._at_put_("media",aString);
  2025. return self}, function($ctx1) {$ctx1.fill(self,"media:",{aString:aString},smalltalk.TagBrush)})},
  2026. messageSends: ["at:put:"]}),
  2027. smalltalk.TagBrush);
  2028. smalltalk.addMethod(
  2029. smalltalk.method({
  2030. selector: "method:",
  2031. fn: function (aString){
  2032. var self=this;
  2033. return smalltalk.withContext(function($ctx1) {
  2034. self._at_put_("method",aString);
  2035. return self}, function($ctx1) {$ctx1.fill(self,"method:",{aString:aString},smalltalk.TagBrush)})},
  2036. messageSends: ["at:put:"]}),
  2037. smalltalk.TagBrush);
  2038. smalltalk.addMethod(
  2039. smalltalk.method({
  2040. selector: "name:",
  2041. fn: function (aString){
  2042. var self=this;
  2043. return smalltalk.withContext(function($ctx1) {
  2044. self._at_put_("name",aString);
  2045. return self}, function($ctx1) {$ctx1.fill(self,"name:",{aString:aString},smalltalk.TagBrush)})},
  2046. messageSends: ["at:put:"]}),
  2047. smalltalk.TagBrush);
  2048. smalltalk.addMethod(
  2049. smalltalk.method({
  2050. selector: "onBlur:",
  2051. fn: function (aBlock){
  2052. var self=this;
  2053. return smalltalk.withContext(function($ctx1) {
  2054. _st(self._asJQuery())._bind_do_("blur",aBlock);
  2055. return self}, function($ctx1) {$ctx1.fill(self,"onBlur:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2056. messageSends: ["bind:do:", "asJQuery"]}),
  2057. smalltalk.TagBrush);
  2058. smalltalk.addMethod(
  2059. smalltalk.method({
  2060. selector: "onChange:",
  2061. fn: function (aBlock){
  2062. var self=this;
  2063. return smalltalk.withContext(function($ctx1) {
  2064. _st(self._asJQuery())._bind_do_("change",aBlock);
  2065. return self}, function($ctx1) {$ctx1.fill(self,"onChange:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2066. messageSends: ["bind:do:", "asJQuery"]}),
  2067. smalltalk.TagBrush);
  2068. smalltalk.addMethod(
  2069. smalltalk.method({
  2070. selector: "onClick:",
  2071. fn: function (aBlock){
  2072. var self=this;
  2073. return smalltalk.withContext(function($ctx1) {
  2074. _st(self._asJQuery())._bind_do_("click",aBlock);
  2075. return self}, function($ctx1) {$ctx1.fill(self,"onClick:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2076. messageSends: ["bind:do:", "asJQuery"]}),
  2077. smalltalk.TagBrush);
  2078. smalltalk.addMethod(
  2079. smalltalk.method({
  2080. selector: "onDblClick:",
  2081. fn: function (aBlock){
  2082. var self=this;
  2083. return smalltalk.withContext(function($ctx1) {
  2084. _st(self._asJQuery())._bind_do_("dblclick",aBlock);
  2085. return self}, function($ctx1) {$ctx1.fill(self,"onDblClick:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2086. messageSends: ["bind:do:", "asJQuery"]}),
  2087. smalltalk.TagBrush);
  2088. smalltalk.addMethod(
  2089. smalltalk.method({
  2090. selector: "onFocus:",
  2091. fn: function (aBlock){
  2092. var self=this;
  2093. return smalltalk.withContext(function($ctx1) {
  2094. _st(self._asJQuery())._bind_do_("focus",aBlock);
  2095. return self}, function($ctx1) {$ctx1.fill(self,"onFocus:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2096. messageSends: ["bind:do:", "asJQuery"]}),
  2097. smalltalk.TagBrush);
  2098. smalltalk.addMethod(
  2099. smalltalk.method({
  2100. selector: "onFocusIn:",
  2101. fn: function (aBlock){
  2102. var self=this;
  2103. return smalltalk.withContext(function($ctx1) {
  2104. _st(self._asJQuery())._bind_do_("focusin",aBlock);
  2105. return self}, function($ctx1) {$ctx1.fill(self,"onFocusIn:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2106. messageSends: ["bind:do:", "asJQuery"]}),
  2107. smalltalk.TagBrush);
  2108. smalltalk.addMethod(
  2109. smalltalk.method({
  2110. selector: "onFocusOut:",
  2111. fn: function (aBlock){
  2112. var self=this;
  2113. return smalltalk.withContext(function($ctx1) {
  2114. _st(self._asJQuery())._bind_do_("focusout",aBlock);
  2115. return self}, function($ctx1) {$ctx1.fill(self,"onFocusOut:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2116. messageSends: ["bind:do:", "asJQuery"]}),
  2117. smalltalk.TagBrush);
  2118. smalltalk.addMethod(
  2119. smalltalk.method({
  2120. selector: "onHover:",
  2121. fn: function (aBlock){
  2122. var self=this;
  2123. return smalltalk.withContext(function($ctx1) {
  2124. _st(self._asJQuery())._bind_do_("hover",aBlock);
  2125. return self}, function($ctx1) {$ctx1.fill(self,"onHover:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2126. messageSends: ["bind:do:", "asJQuery"]}),
  2127. smalltalk.TagBrush);
  2128. smalltalk.addMethod(
  2129. smalltalk.method({
  2130. selector: "onKeyDown:",
  2131. fn: function (aBlock){
  2132. var self=this;
  2133. return smalltalk.withContext(function($ctx1) {
  2134. _st(self._asJQuery())._bind_do_("keydown",aBlock);
  2135. return self}, function($ctx1) {$ctx1.fill(self,"onKeyDown:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2136. messageSends: ["bind:do:", "asJQuery"]}),
  2137. smalltalk.TagBrush);
  2138. smalltalk.addMethod(
  2139. smalltalk.method({
  2140. selector: "onKeyPress:",
  2141. fn: function (aBlock){
  2142. var self=this;
  2143. return smalltalk.withContext(function($ctx1) {
  2144. _st(self._asJQuery())._bind_do_("keypress",aBlock);
  2145. return self}, function($ctx1) {$ctx1.fill(self,"onKeyPress:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2146. messageSends: ["bind:do:", "asJQuery"]}),
  2147. smalltalk.TagBrush);
  2148. smalltalk.addMethod(
  2149. smalltalk.method({
  2150. selector: "onKeyUp:",
  2151. fn: function (aBlock){
  2152. var self=this;
  2153. return smalltalk.withContext(function($ctx1) {
  2154. _st(self._asJQuery())._bind_do_("keyup",aBlock);
  2155. return self}, function($ctx1) {$ctx1.fill(self,"onKeyUp:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2156. messageSends: ["bind:do:", "asJQuery"]}),
  2157. smalltalk.TagBrush);
  2158. smalltalk.addMethod(
  2159. smalltalk.method({
  2160. selector: "onMouseDown:",
  2161. fn: function (aBlock){
  2162. var self=this;
  2163. return smalltalk.withContext(function($ctx1) {
  2164. _st(self._asJQuery())._bind_do_("mousedown",aBlock);
  2165. return self}, function($ctx1) {$ctx1.fill(self,"onMouseDown:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2166. messageSends: ["bind:do:", "asJQuery"]}),
  2167. smalltalk.TagBrush);
  2168. smalltalk.addMethod(
  2169. smalltalk.method({
  2170. selector: "onMouseEnter:",
  2171. fn: function (aBlock){
  2172. var self=this;
  2173. return smalltalk.withContext(function($ctx1) {
  2174. _st(self._asJQuery())._bind_do_("mouseenter",aBlock);
  2175. return self}, function($ctx1) {$ctx1.fill(self,"onMouseEnter:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2176. messageSends: ["bind:do:", "asJQuery"]}),
  2177. smalltalk.TagBrush);
  2178. smalltalk.addMethod(
  2179. smalltalk.method({
  2180. selector: "onMouseLeave:",
  2181. fn: function (aBlock){
  2182. var self=this;
  2183. return smalltalk.withContext(function($ctx1) {
  2184. _st(self._asJQuery())._bind_do_("mouseleave",aBlock);
  2185. return self}, function($ctx1) {$ctx1.fill(self,"onMouseLeave:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2186. messageSends: ["bind:do:", "asJQuery"]}),
  2187. smalltalk.TagBrush);
  2188. smalltalk.addMethod(
  2189. smalltalk.method({
  2190. selector: "onMouseMove:",
  2191. fn: function (aBlock){
  2192. var self=this;
  2193. return smalltalk.withContext(function($ctx1) {
  2194. _st(self._asJQuery())._bind_do_("mousemove",aBlock);
  2195. return self}, function($ctx1) {$ctx1.fill(self,"onMouseMove:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2196. messageSends: ["bind:do:", "asJQuery"]}),
  2197. smalltalk.TagBrush);
  2198. smalltalk.addMethod(
  2199. smalltalk.method({
  2200. selector: "onMouseOut:",
  2201. fn: function (aBlock){
  2202. var self=this;
  2203. return smalltalk.withContext(function($ctx1) {
  2204. _st(self._asJQuery())._bind_do_("mouseout",aBlock);
  2205. return self}, function($ctx1) {$ctx1.fill(self,"onMouseOut:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2206. messageSends: ["bind:do:", "asJQuery"]}),
  2207. smalltalk.TagBrush);
  2208. smalltalk.addMethod(
  2209. smalltalk.method({
  2210. selector: "onMouseOver:",
  2211. fn: function (aBlock){
  2212. var self=this;
  2213. return smalltalk.withContext(function($ctx1) {
  2214. _st(self._asJQuery())._bind_do_("mouseover",aBlock);
  2215. return self}, function($ctx1) {$ctx1.fill(self,"onMouseOver:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2216. messageSends: ["bind:do:", "asJQuery"]}),
  2217. smalltalk.TagBrush);
  2218. smalltalk.addMethod(
  2219. smalltalk.method({
  2220. selector: "onMouseUp:",
  2221. fn: function (aBlock){
  2222. var self=this;
  2223. return smalltalk.withContext(function($ctx1) {
  2224. _st(self._asJQuery())._bind_do_("mouseup",aBlock);
  2225. return self}, function($ctx1) {$ctx1.fill(self,"onMouseUp:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2226. messageSends: ["bind:do:", "asJQuery"]}),
  2227. smalltalk.TagBrush);
  2228. smalltalk.addMethod(
  2229. smalltalk.method({
  2230. selector: "onSelect:",
  2231. fn: function (aBlock){
  2232. var self=this;
  2233. return smalltalk.withContext(function($ctx1) {
  2234. _st(self._asJQuery())._bind_do_("select",aBlock);
  2235. return self}, function($ctx1) {$ctx1.fill(self,"onSelect:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2236. messageSends: ["bind:do:", "asJQuery"]}),
  2237. smalltalk.TagBrush);
  2238. smalltalk.addMethod(
  2239. smalltalk.method({
  2240. selector: "onSubmit:",
  2241. fn: function (aBlock){
  2242. var self=this;
  2243. return smalltalk.withContext(function($ctx1) {
  2244. _st(self._asJQuery())._bind_do_("submit",aBlock);
  2245. return self}, function($ctx1) {$ctx1.fill(self,"onSubmit:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2246. messageSends: ["bind:do:", "asJQuery"]}),
  2247. smalltalk.TagBrush);
  2248. smalltalk.addMethod(
  2249. smalltalk.method({
  2250. selector: "onUnload:",
  2251. fn: function (aBlock){
  2252. var self=this;
  2253. return smalltalk.withContext(function($ctx1) {
  2254. _st(self._asJQuery())._bind_do_("unload",aBlock);
  2255. return self}, function($ctx1) {$ctx1.fill(self,"onUnload:",{aBlock:aBlock},smalltalk.TagBrush)})},
  2256. messageSends: ["bind:do:", "asJQuery"]}),
  2257. smalltalk.TagBrush);
  2258. smalltalk.addMethod(
  2259. smalltalk.method({
  2260. selector: "placeholder:",
  2261. fn: function (aString){
  2262. var self=this;
  2263. return smalltalk.withContext(function($ctx1) {
  2264. self._at_put_("placeholder",aString);
  2265. return self}, function($ctx1) {$ctx1.fill(self,"placeholder:",{aString:aString},smalltalk.TagBrush)})},
  2266. messageSends: ["at:put:"]}),
  2267. smalltalk.TagBrush);
  2268. smalltalk.addMethod(
  2269. smalltalk.method({
  2270. selector: "rel:",
  2271. fn: function (aString){
  2272. var self=this;
  2273. return smalltalk.withContext(function($ctx1) {
  2274. self._at_put_("rel",aString);
  2275. return self}, function($ctx1) {$ctx1.fill(self,"rel:",{aString:aString},smalltalk.TagBrush)})},
  2276. messageSends: ["at:put:"]}),
  2277. smalltalk.TagBrush);
  2278. smalltalk.addMethod(
  2279. smalltalk.method({
  2280. selector: "removeAt:",
  2281. fn: function (aString){
  2282. var self=this;
  2283. return smalltalk.withContext(function($ctx1) {
  2284. self['@element'].removeAttribute(aString);
  2285. return self}, function($ctx1) {$ctx1.fill(self,"removeAt:",{aString:aString},smalltalk.TagBrush)})},
  2286. messageSends: []}),
  2287. smalltalk.TagBrush);
  2288. smalltalk.addMethod(
  2289. smalltalk.method({
  2290. selector: "rows:",
  2291. fn: function (aString){
  2292. var self=this;
  2293. return smalltalk.withContext(function($ctx1) {
  2294. self._at_put_("rows",aString);
  2295. return self}, function($ctx1) {$ctx1.fill(self,"rows:",{aString:aString},smalltalk.TagBrush)})},
  2296. messageSends: ["at:put:"]}),
  2297. smalltalk.TagBrush);
  2298. smalltalk.addMethod(
  2299. smalltalk.method({
  2300. selector: "src:",
  2301. fn: function (aString){
  2302. var self=this;
  2303. return smalltalk.withContext(function($ctx1) {
  2304. self._at_put_("src",aString);
  2305. return self}, function($ctx1) {$ctx1.fill(self,"src:",{aString:aString},smalltalk.TagBrush)})},
  2306. messageSends: ["at:put:"]}),
  2307. smalltalk.TagBrush);
  2308. smalltalk.addMethod(
  2309. smalltalk.method({
  2310. selector: "style:",
  2311. fn: function (aString){
  2312. var self=this;
  2313. return smalltalk.withContext(function($ctx1) {
  2314. self._at_put_("style",aString);
  2315. return self}, function($ctx1) {$ctx1.fill(self,"style:",{aString:aString},smalltalk.TagBrush)})},
  2316. messageSends: ["at:put:"]}),
  2317. smalltalk.TagBrush);
  2318. smalltalk.addMethod(
  2319. smalltalk.method({
  2320. selector: "tabindex:",
  2321. fn: function (aNumber){
  2322. var self=this;
  2323. return smalltalk.withContext(function($ctx1) {
  2324. self._at_put_("tabindex",aNumber);
  2325. return self}, function($ctx1) {$ctx1.fill(self,"tabindex:",{aNumber:aNumber},smalltalk.TagBrush)})},
  2326. messageSends: ["at:put:"]}),
  2327. smalltalk.TagBrush);
  2328. smalltalk.addMethod(
  2329. smalltalk.method({
  2330. selector: "target:",
  2331. fn: function (aString){
  2332. var self=this;
  2333. return smalltalk.withContext(function($ctx1) {
  2334. self._at_put_("target",aString);
  2335. return self}, function($ctx1) {$ctx1.fill(self,"target:",{aString:aString},smalltalk.TagBrush)})},
  2336. messageSends: ["at:put:"]}),
  2337. smalltalk.TagBrush);
  2338. smalltalk.addMethod(
  2339. smalltalk.method({
  2340. selector: "title:",
  2341. fn: function (aString){
  2342. var self=this;
  2343. return smalltalk.withContext(function($ctx1) {
  2344. self._at_put_("title",aString);
  2345. return self}, function($ctx1) {$ctx1.fill(self,"title:",{aString:aString},smalltalk.TagBrush)})},
  2346. messageSends: ["at:put:"]}),
  2347. smalltalk.TagBrush);
  2348. smalltalk.addMethod(
  2349. smalltalk.method({
  2350. selector: "type:",
  2351. fn: function (aString){
  2352. var self=this;
  2353. return smalltalk.withContext(function($ctx1) {
  2354. self._at_put_("type",aString);
  2355. return self}, function($ctx1) {$ctx1.fill(self,"type:",{aString:aString},smalltalk.TagBrush)})},
  2356. messageSends: ["at:put:"]}),
  2357. smalltalk.TagBrush);
  2358. smalltalk.addMethod(
  2359. smalltalk.method({
  2360. selector: "valign:",
  2361. fn: function (aString){
  2362. var self=this;
  2363. return smalltalk.withContext(function($ctx1) {
  2364. self._at_put_("valign",aString);
  2365. return self}, function($ctx1) {$ctx1.fill(self,"valign:",{aString:aString},smalltalk.TagBrush)})},
  2366. messageSends: ["at:put:"]}),
  2367. smalltalk.TagBrush);
  2368. smalltalk.addMethod(
  2369. smalltalk.method({
  2370. selector: "value:",
  2371. fn: function (aString){
  2372. var self=this;
  2373. return smalltalk.withContext(function($ctx1) {
  2374. self._at_put_("value",aString);
  2375. return self}, function($ctx1) {$ctx1.fill(self,"value:",{aString:aString},smalltalk.TagBrush)})},
  2376. messageSends: ["at:put:"]}),
  2377. smalltalk.TagBrush);
  2378. smalltalk.addMethod(
  2379. smalltalk.method({
  2380. selector: "width:",
  2381. fn: function (aString){
  2382. var self=this;
  2383. return smalltalk.withContext(function($ctx1) {
  2384. self._at_put_("width",aString);
  2385. return self}, function($ctx1) {$ctx1.fill(self,"width:",{aString:aString},smalltalk.TagBrush)})},
  2386. messageSends: ["at:put:"]}),
  2387. smalltalk.TagBrush);
  2388. smalltalk.addMethod(
  2389. smalltalk.method({
  2390. selector: "with:",
  2391. fn: function (anObject){
  2392. var self=this;
  2393. return smalltalk.withContext(function($ctx1) {
  2394. self._append_(anObject);
  2395. return self}, function($ctx1) {$ctx1.fill(self,"with:",{anObject:anObject},smalltalk.TagBrush)})},
  2396. messageSends: ["append:"]}),
  2397. smalltalk.TagBrush);
  2398. smalltalk.addMethod(
  2399. smalltalk.method({
  2400. selector: "fromJQuery:canvas:",
  2401. fn: function (aJQuery,aCanvas){
  2402. var self=this;
  2403. return smalltalk.withContext(function($ctx1) {
  2404. var $2,$3,$1;
  2405. $2=self._new();
  2406. _st($2)._initializeFromJQuery_canvas_(aJQuery,aCanvas);
  2407. $3=_st($2)._yourself();
  2408. $1=$3;
  2409. return $1;
  2410. }, function($ctx1) {$ctx1.fill(self,"fromJQuery:canvas:",{aJQuery:aJQuery,aCanvas:aCanvas},smalltalk.TagBrush.klass)})},
  2411. messageSends: ["initializeFromJQuery:canvas:", "new", "yourself"]}),
  2412. smalltalk.TagBrush.klass);
  2413. smalltalk.addMethod(
  2414. smalltalk.method({
  2415. selector: "fromString:canvas:",
  2416. fn: function (aString,aCanvas){
  2417. var self=this;
  2418. return smalltalk.withContext(function($ctx1) {
  2419. var $2,$3,$1;
  2420. $2=self._new();
  2421. _st($2)._initializeFromString_canvas_(aString,aCanvas);
  2422. $3=_st($2)._yourself();
  2423. $1=$3;
  2424. return $1;
  2425. }, function($ctx1) {$ctx1.fill(self,"fromString:canvas:",{aString:aString,aCanvas:aCanvas},smalltalk.TagBrush.klass)})},
  2426. messageSends: ["initializeFromString:canvas:", "new", "yourself"]}),
  2427. smalltalk.TagBrush.klass);
  2428. smalltalk.addClass('StyleTag', smalltalk.TagBrush, ['canvas', 'element'], 'Canvas');
  2429. smalltalk.addMethod(
  2430. smalltalk.method({
  2431. selector: "with:",
  2432. fn: function (aString){
  2433. var self=this;
  2434. function $HTMLCanvas(){return smalltalk.HTMLCanvas||(typeof HTMLCanvas=="undefined"?nil:HTMLCanvas)}
  2435. return smalltalk.withContext(function($ctx1) {
  2436. var $1;
  2437. $1=_st($HTMLCanvas())._isMSIE();
  2438. if(smalltalk.assert($1)){
  2439. _st(_st(self._element())._styleSheet())._cssText_(aString);
  2440. } else {
  2441. smalltalk.StyleTag.superclass.fn.prototype._with_.apply(_st(self), [aString]);
  2442. };
  2443. return self}, function($ctx1) {$ctx1.fill(self,"with:",{aString:aString},smalltalk.StyleTag)})},
  2444. messageSends: ["ifTrue:ifFalse:", "cssText:", "styleSheet", "element", "with:", "isMSIE"]}),
  2445. smalltalk.StyleTag);
  2446. smalltalk.addMethod(
  2447. smalltalk.method({
  2448. selector: "canvas:",
  2449. fn: function (aCanvas){
  2450. var self=this;
  2451. return smalltalk.withContext(function($ctx1) {
  2452. var $2,$3,$1;
  2453. $2=self._new();
  2454. _st($2)._initializeFromString_canvas_("style",aCanvas);
  2455. $3=_st($2)._yourself();
  2456. $1=$3;
  2457. return $1;
  2458. }, function($ctx1) {$ctx1.fill(self,"canvas:",{aCanvas:aCanvas},smalltalk.StyleTag.klass)})},
  2459. messageSends: ["initializeFromString:canvas:", "new", "yourself"]}),
  2460. smalltalk.StyleTag.klass);
  2461. smalltalk.addClass('Widget', smalltalk.InterfacingObject, [], 'Canvas');
  2462. smalltalk.addMethod(
  2463. smalltalk.method({
  2464. selector: "appendToBrush:",
  2465. fn: function (aTagBrush){
  2466. var self=this;
  2467. return smalltalk.withContext(function($ctx1) {
  2468. self._appendToJQuery_(_st(aTagBrush)._asJQuery());
  2469. return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},smalltalk.Widget)})},
  2470. messageSends: ["appendToJQuery:", "asJQuery"]}),
  2471. smalltalk.Widget);
  2472. smalltalk.addMethod(
  2473. smalltalk.method({
  2474. selector: "appendToJQuery:",
  2475. fn: function (aJQuery){
  2476. var self=this;
  2477. function $HTMLCanvas(){return smalltalk.HTMLCanvas||(typeof HTMLCanvas=="undefined"?nil:HTMLCanvas)}
  2478. return smalltalk.withContext(function($ctx1) {
  2479. self._renderOn_(_st($HTMLCanvas())._onJQuery_(aJQuery));
  2480. return self}, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery},smalltalk.Widget)})},
  2481. messageSends: ["renderOn:", "onJQuery:"]}),
  2482. smalltalk.Widget);
  2483. smalltalk.addMethod(
  2484. smalltalk.method({
  2485. selector: "renderOn:",
  2486. fn: function (html){
  2487. var self=this;
  2488. return smalltalk.withContext(function($ctx1) {
  2489. return self}, function($ctx1) {$ctx1.fill(self,"renderOn:",{html:html},smalltalk.Widget)})},
  2490. messageSends: []}),
  2491. smalltalk.Widget);
  2492. smalltalk.addMethod(
  2493. smalltalk.method({
  2494. selector: "heliosClass",
  2495. fn: function (){
  2496. var self=this;
  2497. return smalltalk.withContext(function($ctx1) {
  2498. return "widget";
  2499. }, function($ctx1) {$ctx1.fill(self,"heliosClass",{},smalltalk.Widget.klass)})},
  2500. messageSends: []}),
  2501. smalltalk.Widget.klass);
  2502. smalltalk.addMethod(
  2503. smalltalk.method({
  2504. selector: "appendToBrush:",
  2505. fn: function (aTagBrush){
  2506. var self=this;
  2507. return smalltalk.withContext(function($ctx1) {
  2508. _st(aTagBrush)._append_(self._asString());
  2509. return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},smalltalk.Object)})},
  2510. messageSends: ["append:", "asString"]}),
  2511. smalltalk.Object);
  2512. smalltalk.addMethod(
  2513. smalltalk.method({
  2514. selector: "appendToJQuery:",
  2515. fn: function (aJQuery){
  2516. var self=this;
  2517. return smalltalk.withContext(function($ctx1) {
  2518. _st(aJQuery)._append_(self._asString());
  2519. return self}, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery},smalltalk.Object)})},
  2520. messageSends: ["append:", "asString"]}),
  2521. smalltalk.Object);
  2522. smalltalk.addMethod(
  2523. smalltalk.method({
  2524. selector: "appendToBrush:",
  2525. fn: function (aTagBrush){
  2526. var self=this;
  2527. return smalltalk.withContext(function($ctx1) {
  2528. _st(aTagBrush)._appendBlock_(self);
  2529. return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},smalltalk.BlockClosure)})},
  2530. messageSends: ["appendBlock:"]}),
  2531. smalltalk.BlockClosure);
  2532. smalltalk.addMethod(
  2533. smalltalk.method({
  2534. selector: "appendToJQuery:",
  2535. fn: function (aJQuery){
  2536. var self=this;
  2537. function $HTMLCanvas(){return smalltalk.HTMLCanvas||(typeof HTMLCanvas=="undefined"?nil:HTMLCanvas)}
  2538. return smalltalk.withContext(function($ctx1) {
  2539. self._value_(_st($HTMLCanvas())._onJQuery_(aJQuery));
  2540. return self}, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery},smalltalk.BlockClosure)})},
  2541. messageSends: ["value:", "onJQuery:"]}),
  2542. smalltalk.BlockClosure);
  2543. smalltalk.addMethod(
  2544. smalltalk.method({
  2545. selector: "asSnippet",
  2546. fn: function (){
  2547. var self=this;
  2548. function $HTMLSnippet(){return smalltalk.HTMLSnippet||(typeof HTMLSnippet=="undefined"?nil:HTMLSnippet)}
  2549. return smalltalk.withContext(function($ctx1) {
  2550. var $1;
  2551. $1=_st(_st($HTMLSnippet())._current())._snippetAt_(self._asString());
  2552. return $1;
  2553. }, function($ctx1) {$ctx1.fill(self,"asSnippet",{},smalltalk.CharacterArray)})},
  2554. messageSends: ["snippetAt:", "asString", "current"]}),
  2555. smalltalk.CharacterArray);
  2556. smalltalk.addMethod(
  2557. smalltalk.method({
  2558. selector: "appendToBrush:",
  2559. fn: function (aTagBrush){
  2560. var self=this;
  2561. return smalltalk.withContext(function($ctx1) {
  2562. _st(aTagBrush)._appendString_(self);
  2563. return self}, function($ctx1) {$ctx1.fill(self,"appendToBrush:",{aTagBrush:aTagBrush},smalltalk.String)})},
  2564. messageSends: ["appendString:"]}),
  2565. smalltalk.String);
  2566. smalltalk.addMethod(
  2567. smalltalk.method({
  2568. selector: "appendToJQuery:",
  2569. fn: function (aJQuery){
  2570. var self=this;
  2571. return smalltalk.withContext(function($ctx1) {
  2572. _st(aJQuery)._append_(self);
  2573. return self}, function($ctx1) {$ctx1.fill(self,"appendToJQuery:",{aJQuery:aJQuery},smalltalk.String)})},
  2574. messageSends: ["append:"]}),
  2575. smalltalk.String);
  2576. smalltalk.addMethod(
  2577. smalltalk.method({
  2578. selector: "asJQuery",
  2579. fn: function (){
  2580. var self=this;
  2581. return smalltalk.withContext(function($ctx1) {
  2582. return jQuery(String(self));
  2583. return self}, function($ctx1) {$ctx1.fill(self,"asJQuery",{},smalltalk.String)})},
  2584. messageSends: []}),
  2585. smalltalk.String);
  2586. smalltalk.addMethod(
  2587. smalltalk.method({
  2588. selector: "asJQuery",
  2589. fn: function (){
  2590. var self=this;
  2591. return smalltalk.withContext(function($ctx1) {
  2592. return jQuery(self['@jsObject']);
  2593. return self}, function($ctx1) {$ctx1.fill(self,"asJQuery",{},smalltalk.JSObjectProxy)})},
  2594. messageSends: []}),
  2595. smalltalk.JSObjectProxy);
  2596. })(global_smalltalk,global_nil,global__st);