1
0

Canvas.deploy.js 80 KB

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