2
0

JQuery.js 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197
  1. smalltalk.addClass('JQuery', smalltalk.Object, ['jquery'], 'JQuery');
  2. smalltalk.addMethod(
  3. unescape('_append_'),
  4. smalltalk.method({
  5. selector: unescape('append%3A'),
  6. category: 'DOM insertion',
  7. fn: function (anObject){
  8. var self=this;
  9. smalltalk.send(anObject, "_appendToJQuery_", [self]);
  10. return self;},
  11. args: ["anObject"],
  12. source: unescape('append%3A%20anObject%0A%20%20%20%20%22Append%20anObject%20at%20the%20end%20of%20the%20element.%22%0A%20%20%20%20anObject%20appendToJQuery%3A%20self'),
  13. messageSends: ["appendToJQuery:"],
  14. referencedClasses: []
  15. }),
  16. smalltalk.JQuery);
  17. smalltalk.addMethod(
  18. unescape('_appendElement_'),
  19. smalltalk.method({
  20. selector: unescape('appendElement%3A'),
  21. category: 'DOM insertion',
  22. fn: function (anElement){
  23. var self=this;
  24. smalltalk.send(self, "_call_withArgument_", ["append", anElement]);
  25. return self;},
  26. args: ["anElement"],
  27. source: unescape('appendElement%3A%20anElement%0A%20%20%20%20%22Append%20anElement%20at%20the%20end%20of%20the%20element.%0A%20%20%20%20%20Dont%27t%20call%20this%20method%20directly%2C%20use%20%23append%3A%20instead%22%0A%20%20%20%20self%20call%3A%20%27append%27%20withArgument%3A%20anElement'),
  28. messageSends: ["call:withArgument:"],
  29. referencedClasses: []
  30. }),
  31. smalltalk.JQuery);
  32. smalltalk.addMethod(
  33. unescape('_appendToJQuery_'),
  34. smalltalk.method({
  35. selector: unescape('appendToJQuery%3A'),
  36. category: 'DOM insertion',
  37. fn: function (aJQuery){
  38. var self=this;
  39. smalltalk.send(aJQuery, "_appendElement_", [self['@jquery']]);
  40. return self;},
  41. args: ["aJQuery"],
  42. source: unescape('appendToJQuery%3A%20aJQuery%0A%20%20%20%20aJQuery%20appendElement%3A%20jquery'),
  43. messageSends: ["appendElement:"],
  44. referencedClasses: []
  45. }),
  46. smalltalk.JQuery);
  47. smalltalk.addMethod(
  48. unescape('_contents_'),
  49. smalltalk.method({
  50. selector: unescape('contents%3A'),
  51. category: 'DOM insertion',
  52. fn: function (anObject){
  53. var self=this;
  54. smalltalk.send(self, "_empty", []);
  55. smalltalk.send(self, "_append_", [anObject]);
  56. return self;},
  57. args: ["anObject"],
  58. source: unescape('contents%3A%20anObject%0A%20%20%20%20self%20empty.%0A%20%20%20%20self%20append%3A%20anObject'),
  59. messageSends: ["empty", "append:"],
  60. referencedClasses: []
  61. }),
  62. smalltalk.JQuery);
  63. smalltalk.addMethod(
  64. unescape('_empty'),
  65. smalltalk.method({
  66. selector: unescape('empty'),
  67. category: 'DOM insertion',
  68. fn: function (){
  69. var self=this;
  70. return smalltalk.send(self, "_call_", ["empty"]);
  71. return self;},
  72. args: [],
  73. source: unescape('empty%0A%20%20%20%20%5Eself%20call%3A%20%27empty%27'),
  74. messageSends: ["call:"],
  75. referencedClasses: []
  76. }),
  77. smalltalk.JQuery);
  78. smalltalk.addMethod(
  79. unescape('_jquery'),
  80. smalltalk.method({
  81. selector: unescape('jquery'),
  82. category: 'accessing',
  83. fn: function (){
  84. var self=this;
  85. return self['@jquery'];
  86. return self;},
  87. args: [],
  88. source: unescape('jquery%0A%09%5Ejquery'),
  89. messageSends: [],
  90. referencedClasses: []
  91. }),
  92. smalltalk.JQuery);
  93. smalltalk.addMethod(
  94. unescape('_removeAttribute_'),
  95. smalltalk.method({
  96. selector: unescape('removeAttribute%3A'),
  97. category: 'attributes',
  98. fn: function (aString){
  99. var self=this;
  100. return smalltalk.send(self, "_call_withArgument_", ["removeAttribute", aString]);
  101. return self;},
  102. args: ["aString"],
  103. source: unescape('removeAttribute%3A%20aString%0A%20%20%20%20%22Remove%20an%20attribute%20from%20each%20element%20in%20the%20set%20of%20matched%20elements.%22%0A%20%20%20%20%5Eself%20call%3A%20%27removeAttribute%27%20withArgument%3A%20aString'),
  104. messageSends: ["call:withArgument:"],
  105. referencedClasses: []
  106. }),
  107. smalltalk.JQuery);
  108. smalltalk.addMethod(
  109. unescape('_attr_'),
  110. smalltalk.method({
  111. selector: unescape('attr%3A'),
  112. category: 'attributes',
  113. fn: function (aString){
  114. var self=this;
  115. return smalltalk.send(self, "_call_withArgument_", ["attr", aString]);
  116. return self;},
  117. args: ["aString"],
  118. source: unescape('attr%3A%20aString%0A%20%20%20%20%22Get%20the%20value%20of%20an%20attribute%20for%20the%20first%20element%20in%20the%20set%20of%20matched%20elements.%22%0A%20%20%20%20%5Eself%20call%3A%20%27attr%27%20withArgument%3A%20aString'),
  119. messageSends: ["call:withArgument:"],
  120. referencedClasses: []
  121. }),
  122. smalltalk.JQuery);
  123. smalltalk.addMethod(
  124. unescape('_val'),
  125. smalltalk.method({
  126. selector: unescape('val'),
  127. category: 'attributes',
  128. fn: function (){
  129. var self=this;
  130. return smalltalk.send(self, "_call_", ["val"]);
  131. return self;},
  132. args: [],
  133. source: unescape('val%0A%20%20%20%20%22Get%20the%20current%20value%20of%20the%20first%20element%20in%20the%20set%20of%20matched%20elements.%22%0A%20%20%20%20%5Eself%20call%3A%20%27val%27'),
  134. messageSends: ["call:"],
  135. referencedClasses: []
  136. }),
  137. smalltalk.JQuery);
  138. smalltalk.addMethod(
  139. unescape('_val_'),
  140. smalltalk.method({
  141. selector: unescape('val%3A'),
  142. category: 'attributes',
  143. fn: function (aString){
  144. var self=this;
  145. smalltalk.send(self, "_call_withArgument_", ["val", aString]);
  146. return self;},
  147. args: ["aString"],
  148. source: unescape('val%3A%20aString%0A%20%20%20%20self%20call%3A%20%27val%27%20withArgument%3A%20aString'),
  149. messageSends: ["call:withArgument:"],
  150. referencedClasses: []
  151. }),
  152. smalltalk.JQuery);
  153. smalltalk.addMethod(
  154. unescape('_attrAt_put_'),
  155. smalltalk.method({
  156. selector: unescape('attrAt%3Aput%3A'),
  157. category: 'attributes',
  158. fn: function (aString, anotherString){
  159. var self=this;
  160. self['@jquery'].attr(aString, anotherString);
  161. return self;},
  162. args: ["aString", "anotherString"],
  163. source: unescape('attrAt%3A%20aString%20put%3A%20anotherString%0A%20%20%20%20%22Set%20the%20value%20of%20an%20attribute%20for%20the%20first%20element%20in%20the%20set%20of%20matched%20elements.%22%0A%20%20%20%20%3Cself%5B%27@jquery%27%5D.attr%28aString%2C%20anotherString%29%3E'),
  164. messageSends: [],
  165. referencedClasses: []
  166. }),
  167. smalltalk.JQuery);
  168. smalltalk.addMethod(
  169. unescape('_cssAt_'),
  170. smalltalk.method({
  171. selector: unescape('cssAt%3A'),
  172. category: 'css',
  173. fn: function (aString){
  174. var self=this;
  175. return self['@jquery'].css(aString);
  176. return self;},
  177. args: ["aString"],
  178. source: unescape('cssAt%3A%20aString%0A%09%3Creturn%20self%5B%27@jquery%27%5D.css%28aString%29%3E'),
  179. messageSends: [],
  180. referencedClasses: []
  181. }),
  182. smalltalk.JQuery);
  183. smalltalk.addMethod(
  184. unescape('_cssAt_put_'),
  185. smalltalk.method({
  186. selector: unescape('cssAt%3Aput%3A'),
  187. category: 'css',
  188. fn: function (aString, anotherString){
  189. var self=this;
  190. self['@jquery'].css(aString, anotherString);
  191. return self;},
  192. args: ["aString", "anotherString"],
  193. source: unescape('cssAt%3A%20aString%20put%3A%20anotherString%0A%20%20%20%20%3Cself%5B%27@jquery%27%5D.css%28aString%2C%20anotherString%29%3E'),
  194. messageSends: [],
  195. referencedClasses: []
  196. }),
  197. smalltalk.JQuery);
  198. smalltalk.addMethod(
  199. unescape('_addClass_'),
  200. smalltalk.method({
  201. selector: unescape('addClass%3A'),
  202. category: 'css',
  203. fn: function (aString){
  204. var self=this;
  205. smalltalk.send(self, "_call_withArgument_", ["addClass", aString]);
  206. return self;},
  207. args: ["aString"],
  208. source: unescape('addClass%3A%20aString%0A%20%20%20%20%22Adds%20the%20specified%20class%28es%29%20to%20each%20of%20the%20set%20of%20matched%20elements.%22%0A%20%20%20%20self%20call%3A%20%27addClass%27%20withArgument%3A%20aString'),
  209. messageSends: ["call:withArgument:"],
  210. referencedClasses: []
  211. }),
  212. smalltalk.JQuery);
  213. smalltalk.addMethod(
  214. unescape('_removeClass_'),
  215. smalltalk.method({
  216. selector: unescape('removeClass%3A'),
  217. category: 'css',
  218. fn: function (aString){
  219. var self=this;
  220. smalltalk.send(self, "_call_withArgument_", ["removeClass", aString]);
  221. return self;},
  222. args: ["aString"],
  223. source: unescape('removeClass%3A%20aString%0A%20%20%20%20%22Remove%20a%20single%20class%2C%20multiple%20classes%2C%20or%20all%20classes%20from%20each%20element%20in%20the%20set%20of%20matched%20elements.%22%0A%20%20%20%20self%20call%3A%20%27removeClass%27%20withArgument%3A%20aString'),
  224. messageSends: ["call:withArgument:"],
  225. referencedClasses: []
  226. }),
  227. smalltalk.JQuery);
  228. smalltalk.addMethod(
  229. unescape('_toggleClass_'),
  230. smalltalk.method({
  231. selector: unescape('toggleClass%3A'),
  232. category: 'css',
  233. fn: function (aString){
  234. var self=this;
  235. smalltalk.send(self, "_call_withArgument_", ["toggleClass", aString]);
  236. return self;},
  237. args: ["aString"],
  238. source: unescape('toggleClass%3A%20aString%0A%20%20%20%20%22Add%20or%20remove%20one%20or%20more%20classes%20from%20each%20element%20in%20the%20set%20of%20matched%20elements%2C%20depending%20on%20either%20the%20class%27s%20presence%20or%20the%20value%20of%20the%20switch%20argument.%22%0A%20%20%20%20self%20call%3A%20%27toggleClass%27%20withArgument%3A%20aString'),
  239. messageSends: ["call:withArgument:"],
  240. referencedClasses: []
  241. }),
  242. smalltalk.JQuery);
  243. smalltalk.addMethod(
  244. unescape('_height'),
  245. smalltalk.method({
  246. selector: unescape('height'),
  247. category: 'css',
  248. fn: function (){
  249. var self=this;
  250. return smalltalk.send(self, "_call_", ["height"]);
  251. return self;},
  252. args: [],
  253. source: unescape('height%20%0A%20%20%20%20%22Get%20the%20current%20computed%20height%20for%20the%20first%20element%20in%20the%20set%20of%20matched%20elements.%22%0A%20%20%20%20%5Eself%20call%3A%20%27height%27'),
  254. messageSends: ["call:"],
  255. referencedClasses: []
  256. }),
  257. smalltalk.JQuery);
  258. smalltalk.addMethod(
  259. unescape('_height_'),
  260. smalltalk.method({
  261. selector: unescape('height%3A'),
  262. category: 'css',
  263. fn: function (anInteger){
  264. var self=this;
  265. smalltalk.send(self, "_call_withArgument_", ["height", anInteger]);
  266. return self;},
  267. args: ["anInteger"],
  268. source: unescape('height%3A%20anInteger%0A%20%20%20%20self%20call%3A%20%27height%27%20withArgument%3A%20anInteger'),
  269. messageSends: ["call:withArgument:"],
  270. referencedClasses: []
  271. }),
  272. smalltalk.JQuery);
  273. smalltalk.addMethod(
  274. unescape('_width_'),
  275. smalltalk.method({
  276. selector: unescape('width%3A'),
  277. category: 'css',
  278. fn: function (anInteger){
  279. var self=this;
  280. smalltalk.send(self, "_call_withArgument_", ["width", anInteger]);
  281. return self;},
  282. args: ["anInteger"],
  283. source: unescape('width%3A%20anInteger%0A%20%20%20%20self%20call%3A%20%27width%27%20withArgument%3A%20anInteger'),
  284. messageSends: ["call:withArgument:"],
  285. referencedClasses: []
  286. }),
  287. smalltalk.JQuery);
  288. smalltalk.addMethod(
  289. unescape('_width'),
  290. smalltalk.method({
  291. selector: unescape('width'),
  292. category: 'css',
  293. fn: function (){
  294. var self=this;
  295. return smalltalk.send(self, "_call_", ["width"]);
  296. return self;},
  297. args: [],
  298. source: unescape('width%0A%20%20%20%20%22Get%20the%20current%20computed%20width%20for%20the%20first%20element%20in%20the%20set%20of%20matched%20elements.%22%0A%20%20%20%20%5Eself%20call%3A%20%27width%27'),
  299. messageSends: ["call:"],
  300. referencedClasses: []
  301. }),
  302. smalltalk.JQuery);
  303. smalltalk.addMethod(
  304. unescape('_innerHeight'),
  305. smalltalk.method({
  306. selector: unescape('innerHeight'),
  307. category: 'css',
  308. fn: function (){
  309. var self=this;
  310. return smalltalk.send(self, "_call_", ["innerHeight"]);
  311. return self;},
  312. args: [],
  313. source: unescape('innerHeight%0A%20%20%20%20%22Get%20the%20current%20computed%20height%20for%20the%20first%20element%20in%20the%20set%20of%20matched%20elements%2C%20including%20padding%20but%20not%20border.%22%0A%20%20%20%20%5Eself%20call%3A%20%27innerHeight%27'),
  314. messageSends: ["call:"],
  315. referencedClasses: []
  316. }),
  317. smalltalk.JQuery);
  318. smalltalk.addMethod(
  319. unescape('_innerWidth'),
  320. smalltalk.method({
  321. selector: unescape('innerWidth'),
  322. category: 'css',
  323. fn: function (){
  324. var self=this;
  325. return smalltalk.send(self, "_call_", ["innerWidth"]);
  326. return self;},
  327. args: [],
  328. source: unescape('innerWidth%0A%20%20%20%20%22Get%20the%20current%20computed%20width%20for%20the%20first%20element%20in%20the%20set%20of%20matched%20elements%2C%20including%20padding%20but%20not%20border.%22%0A%20%20%20%20%5Eself%20call%3A%20%27innerWidth%27'),
  329. messageSends: ["call:"],
  330. referencedClasses: []
  331. }),
  332. smalltalk.JQuery);
  333. smalltalk.addMethod(
  334. unescape('_outerHeight'),
  335. smalltalk.method({
  336. selector: unescape('outerHeight'),
  337. category: 'css',
  338. fn: function (){
  339. var self=this;
  340. return smalltalk.send(self, "_call_", ["outerHeight"]);
  341. return self;},
  342. args: [],
  343. source: unescape('outerHeight%0A%20%20%20%20%22Get%20the%20current%20computed%20height%20for%20the%20first%20element%20in%20the%20set%20of%20matched%20elements%2C%20including%20padding%2C%20border%2C%20and%20optionally%20margin.%22%0A%20%20%20%20%5Eself%20call%3A%20%27outerHeight%27'),
  344. messageSends: ["call:"],
  345. referencedClasses: []
  346. }),
  347. smalltalk.JQuery);
  348. smalltalk.addMethod(
  349. unescape('_outerWidth'),
  350. smalltalk.method({
  351. selector: unescape('outerWidth'),
  352. category: 'css',
  353. fn: function (){
  354. var self=this;
  355. return smalltalk.send(self, "_call_", ["outerWidth"]);
  356. return self;},
  357. args: [],
  358. source: unescape('outerWidth%0A%20%20%20%20%22Get%20the%20current%20computed%20width%20for%20the%20first%20element%20in%20the%20set%20of%20matched%20elements%2C%20including%20padding%20and%20border.%22%0A%20%20%20%20%5Eself%20call%3A%20%27outerWidth%27'),
  359. messageSends: ["call:"],
  360. referencedClasses: []
  361. }),
  362. smalltalk.JQuery);
  363. smalltalk.addMethod(
  364. unescape('_top'),
  365. smalltalk.method({
  366. selector: unescape('top'),
  367. category: 'css',
  368. fn: function (){
  369. var self=this;
  370. return smalltalk.send(smalltalk.send(self, "_call_", ["position"]), "_basicAt_", ["top"]);
  371. return self;},
  372. args: [],
  373. source: unescape('top%0A%20%20%20%20%22Get%20the%20current%20y%20coordinate%20of%20the%20first%20element%20in%20the%20set%20of%20matched%20elements%2C%20relative%20to%20the%20offset%20parent.%22%0A%20%20%20%20%5E%28self%20call%3A%20%27position%27%29%20basicAt%3A%20%27top%27'),
  374. messageSends: ["basicAt:", "call:"],
  375. referencedClasses: []
  376. }),
  377. smalltalk.JQuery);
  378. smalltalk.addMethod(
  379. unescape('_left'),
  380. smalltalk.method({
  381. selector: unescape('left'),
  382. category: 'css',
  383. fn: function (){
  384. var self=this;
  385. return smalltalk.send(smalltalk.send(self, "_call_", ["position"]), "_basicAt_", ["left"]);
  386. return self;},
  387. args: [],
  388. source: unescape('left%0A%20%20%20%20%22Get%20the%20current%20x%20coordinate%20of%20the%20first%20element%20in%20the%20set%20of%20matched%20elements%2C%20relative%20to%20the%20offset%20parent.%22%0A%20%20%20%20%5E%28self%20call%3A%20%27position%27%29%20basicAt%3A%20%27left%27'),
  389. messageSends: ["basicAt:", "call:"],
  390. referencedClasses: []
  391. }),
  392. smalltalk.JQuery);
  393. smalltalk.addMethod(
  394. unescape('_offsetLeft'),
  395. smalltalk.method({
  396. selector: unescape('offsetLeft'),
  397. category: 'css',
  398. fn: function (){
  399. var self=this;
  400. return smalltalk.send(smalltalk.send(self, "_call_", ["offset"]), "_basicAt_", ["left"]);
  401. return self;},
  402. args: [],
  403. source: unescape('offsetLeft%0A%20%20%20%20%22Get%20the%20current%20coordinates%20of%20the%20first%20element%20in%20the%20set%20of%20matched%20elements%2C%20relative%20to%20the%20document.%22%0A%20%20%20%20%5E%28self%20call%3A%20%27offset%27%29%20basicAt%3A%20%27left%27'),
  404. messageSends: ["basicAt:", "call:"],
  405. referencedClasses: []
  406. }),
  407. smalltalk.JQuery);
  408. smalltalk.addMethod(
  409. unescape('_offsetTop'),
  410. smalltalk.method({
  411. selector: unescape('offsetTop'),
  412. category: 'css',
  413. fn: function (){
  414. var self=this;
  415. return smalltalk.send(smalltalk.send(self, "_call_", ["offset"]), "_basicAt_", ["top"]);
  416. return self;},
  417. args: [],
  418. source: unescape('offsetTop%0A%20%20%20%20%22Get%20the%20current%20coordinates%20of%20the%20first%20element%20in%20the%20set%20of%20matched%20elements%2C%20relative%20to%20the%20document.%22%0A%20%20%20%20%5E%28self%20call%3A%20%27offset%27%29%20basicAt%3A%20%27top%27'),
  419. messageSends: ["basicAt:", "call:"],
  420. referencedClasses: []
  421. }),
  422. smalltalk.JQuery);
  423. smalltalk.addMethod(
  424. unescape('_scrollLeft'),
  425. smalltalk.method({
  426. selector: unescape('scrollLeft'),
  427. category: 'css',
  428. fn: function (){
  429. var self=this;
  430. return smalltalk.send(self, "_call_", ["scrollLeft"]);
  431. return self;},
  432. args: [],
  433. source: unescape('scrollLeft%0A%20%20%20%20%22Get%20the%20current%20horizontal%20position%20of%20the%20scroll%20bar%20for%20the%20first%20element%20in%20the%20set%20of%20matched%20elements.%22%0A%20%20%20%20%5Eself%20call%3A%20%27scrollLeft%27'),
  434. messageSends: ["call:"],
  435. referencedClasses: []
  436. }),
  437. smalltalk.JQuery);
  438. smalltalk.addMethod(
  439. unescape('_scrollTop'),
  440. smalltalk.method({
  441. selector: unescape('scrollTop'),
  442. category: 'css',
  443. fn: function (){
  444. var self=this;
  445. return smalltalk.send(self, "_call_", ["scrollTop"]);
  446. return self;},
  447. args: [],
  448. source: unescape('scrollTop%0A%20%20%20%20%22Get%20the%20current%20vertical%20position%20of%20the%20scroll%20bar%20for%20the%20first%20element%20in%20the%20set%20of%20matched%20elements.%22%0A%20%20%20%20%5Eself%20call%3A%20%27scrollTop%27'),
  449. messageSends: ["call:"],
  450. referencedClasses: []
  451. }),
  452. smalltalk.JQuery);
  453. smalltalk.addMethod(
  454. unescape('_scrollLeft_'),
  455. smalltalk.method({
  456. selector: unescape('scrollLeft%3A'),
  457. category: 'css',
  458. fn: function (anInteger){
  459. var self=this;
  460. smalltalk.send(self, "_call_withArgument_", ["scrollLeft", anInteger]);
  461. return self;},
  462. args: ["anInteger"],
  463. source: unescape('scrollLeft%3A%20anInteger%0A%20%20%20%20self%20call%3A%20%27scrollLeft%27%20withArgument%3A%20anInteger'),
  464. messageSends: ["call:withArgument:"],
  465. referencedClasses: []
  466. }),
  467. smalltalk.JQuery);
  468. smalltalk.addMethod(
  469. unescape('_scrollTop_'),
  470. smalltalk.method({
  471. selector: unescape('scrollTop%3A'),
  472. category: 'css',
  473. fn: function (anInteger){
  474. var self=this;
  475. smalltalk.send(self, "_call_withArgument_", ["scrollTop", anInteger]);
  476. return self;},
  477. args: ["anInteger"],
  478. source: unescape('scrollTop%3A%20anInteger%0A%20%20%20%20self%20call%3A%20%27scrollTop%27%20withArgument%3A%20anInteger'),
  479. messageSends: ["call:withArgument:"],
  480. referencedClasses: []
  481. }),
  482. smalltalk.JQuery);
  483. smalltalk.addMethod(
  484. unescape('_fadeIn'),
  485. smalltalk.method({
  486. selector: unescape('fadeIn'),
  487. category: 'effects',
  488. fn: function (){
  489. var self=this;
  490. smalltalk.send(self, "_call_", ["fadeIn"]);
  491. return self;},
  492. args: [],
  493. source: unescape('fadeIn%0A%20%09self%20call%3A%20%27fadeIn%27'),
  494. messageSends: ["call:"],
  495. referencedClasses: []
  496. }),
  497. smalltalk.JQuery);
  498. smalltalk.addMethod(
  499. unescape('_slideDown'),
  500. smalltalk.method({
  501. selector: unescape('slideDown'),
  502. category: 'effects',
  503. fn: function (){
  504. var self=this;
  505. smalltalk.send(self, "_call_", ["slideDown"]);
  506. return self;},
  507. args: [],
  508. source: unescape('slideDown%0A%20%09self%20call%3A%20%27slideDown%27'),
  509. messageSends: ["call:"],
  510. referencedClasses: []
  511. }),
  512. smalltalk.JQuery);
  513. smalltalk.addMethod(
  514. unescape('_fadeInSlow'),
  515. smalltalk.method({
  516. selector: unescape('fadeInSlow'),
  517. category: 'effects',
  518. fn: function (){
  519. var self=this;
  520. smalltalk.send(self, "_call_withArgument_", ["fadeIn", "slow"]);
  521. return self;},
  522. args: [],
  523. source: unescape('fadeInSlow%0A%20%09self%20call%3A%20%27fadeIn%27%20withArgument%3A%20%27slow%27'),
  524. messageSends: ["call:withArgument:"],
  525. referencedClasses: []
  526. }),
  527. smalltalk.JQuery);
  528. smalltalk.addMethod(
  529. unescape('_fadeOut'),
  530. smalltalk.method({
  531. selector: unescape('fadeOut'),
  532. category: 'effects',
  533. fn: function (){
  534. var self=this;
  535. smalltalk.send(self, "_call_", ["fadeOut"]);
  536. return self;},
  537. args: [],
  538. source: unescape('fadeOut%0A%20%09self%20call%3A%20%27fadeOut%27'),
  539. messageSends: ["call:"],
  540. referencedClasses: []
  541. }),
  542. smalltalk.JQuery);
  543. smalltalk.addMethod(
  544. unescape('_fadeOutSlow'),
  545. smalltalk.method({
  546. selector: unescape('fadeOutSlow'),
  547. category: 'effects',
  548. fn: function (){
  549. var self=this;
  550. smalltalk.send(self, "_call_withArgument_", ["fadeOut", "slow"]);
  551. return self;},
  552. args: [],
  553. source: unescape('fadeOutSlow%0A%20%09self%20call%3A%20%27fadeOut%27%20withArgument%3A%20%27slow%27'),
  554. messageSends: ["call:withArgument:"],
  555. referencedClasses: []
  556. }),
  557. smalltalk.JQuery);
  558. smalltalk.addMethod(
  559. unescape('_slideUp'),
  560. smalltalk.method({
  561. selector: unescape('slideUp'),
  562. category: 'effects',
  563. fn: function (){
  564. var self=this;
  565. smalltalk.send(self, "_call_", ["slideUp"]);
  566. return self;},
  567. args: [],
  568. source: unescape('slideUp%0A%20%09self%20call%3A%20%27slideUp%27'),
  569. messageSends: ["call:"],
  570. referencedClasses: []
  571. }),
  572. smalltalk.JQuery);
  573. smalltalk.addMethod(
  574. unescape('_fadeOut_do_'),
  575. smalltalk.method({
  576. selector: unescape('fadeOut%3Ado%3A'),
  577. category: 'effects',
  578. fn: function (aString, aBlock){
  579. var self=this;
  580. self['@jquery'].fadeOut(aString, aBlock);
  581. return self;},
  582. args: ["aString", "aBlock"],
  583. source: unescape('fadeOut%3A%20aString%20do%3A%20aBlock%0A%20%20%20%20%3Cself%5B%27@jquery%27%5D.fadeOut%28aString%2C%20aBlock%29%3E'),
  584. messageSends: [],
  585. referencedClasses: []
  586. }),
  587. smalltalk.JQuery);
  588. smalltalk.addMethod(
  589. unescape('_do_'),
  590. smalltalk.method({
  591. selector: unescape('do%3A'),
  592. category: 'enumerating',
  593. fn: function (aBlock){
  594. var self=this;
  595. smalltalk.send(self, "_elementsDo_", [(function(anElement){return smalltalk.send(aBlock, "_value_", [smalltalk.send((smalltalk.JQuery || JQuery), "_fromElement_", [anElement])]);})]);
  596. return self;},
  597. args: ["aBlock"],
  598. source: unescape('do%3A%20aBlock%0A%20%20%20%20self%20elementsDo%3A%20%5B%3AanElement%7C%20%20aBlock%20value%3A%20%28JQuery%20fromElement%3A%20anElement%29%5D'),
  599. messageSends: ["elementsDo:", "value:", "fromElement:"],
  600. referencedClasses: [smalltalk.JQuery]
  601. }),
  602. smalltalk.JQuery);
  603. smalltalk.addMethod(
  604. unescape('_focus'),
  605. smalltalk.method({
  606. selector: unescape('focus'),
  607. category: 'events',
  608. fn: function (){
  609. var self=this;
  610. smalltalk.send(self, "_call_", ["focus"]);
  611. return self;},
  612. args: [],
  613. source: unescape('focus%0A%20%20%20%20self%20call%3A%20%27focus%27'),
  614. messageSends: ["call:"],
  615. referencedClasses: []
  616. }),
  617. smalltalk.JQuery);
  618. smalltalk.addMethod(
  619. unescape('_show'),
  620. smalltalk.method({
  621. selector: unescape('show'),
  622. category: 'events',
  623. fn: function (){
  624. var self=this;
  625. smalltalk.send(self, "_call_", ["show"]);
  626. return self;},
  627. args: [],
  628. source: unescape('show%0A%20%20%20%20self%20call%3A%20%27show%27'),
  629. messageSends: ["call:"],
  630. referencedClasses: []
  631. }),
  632. smalltalk.JQuery);
  633. smalltalk.addMethod(
  634. unescape('_hide'),
  635. smalltalk.method({
  636. selector: unescape('hide'),
  637. category: 'events',
  638. fn: function (){
  639. var self=this;
  640. smalltalk.send(self, "_call_", ["hide"]);
  641. return self;},
  642. args: [],
  643. source: unescape('hide%0A%20%20%20%20self%20call%3A%20%27hide%27'),
  644. messageSends: ["call:"],
  645. referencedClasses: []
  646. }),
  647. smalltalk.JQuery);
  648. smalltalk.addMethod(
  649. unescape('_remove'),
  650. smalltalk.method({
  651. selector: unescape('remove'),
  652. category: 'events',
  653. fn: function (){
  654. var self=this;
  655. smalltalk.send(self, "_call_", ["remove"]);
  656. return self;},
  657. args: [],
  658. source: unescape('remove%0A%20%20%20%20self%20call%3A%20%27remove%27'),
  659. messageSends: ["call:"],
  660. referencedClasses: []
  661. }),
  662. smalltalk.JQuery);
  663. smalltalk.addMethod(
  664. unescape('_on_do_'),
  665. smalltalk.method({
  666. selector: unescape('on%3Ado%3A'),
  667. category: 'events',
  668. fn: function (anEventString, aBlock){
  669. var self=this;
  670. self['@jquery'].bind(anEventString, function(e){aBlock(e, self)});
  671. return self;},
  672. args: ["anEventString", "aBlock"],
  673. source: unescape('on%3A%20anEventString%20do%3A%20aBlock%0A%20%20%20%20%22Attach%20aBlock%20for%20anEventString%20on%20the%20element%22%0A%20%20%20%20%3Cself%5B%27@jquery%27%5D.bind%28anEventString%2C%20function%28e%29%7BaBlock%28e%2C%20self%29%7D%29%3E'),
  674. messageSends: [],
  675. referencedClasses: []
  676. }),
  677. smalltalk.JQuery);
  678. smalltalk.addMethod(
  679. unescape('_removeEvents_'),
  680. smalltalk.method({
  681. selector: unescape('removeEvents%3A'),
  682. category: 'events',
  683. fn: function (aString){
  684. var self=this;
  685. smalltalk.send(self, "_call_withArgument_", ["unbind", aString]);
  686. return self;},
  687. args: ["aString"],
  688. source: unescape('removeEvents%3A%20aString%0A%20%20%20%20%22Unbind%20all%20handlers%20attached%20to%20the%20event%20aString%22%0A%20%20%20%20self%20call%3A%20%27unbind%27%20withArgument%3A%20aString'),
  689. messageSends: ["call:withArgument:"],
  690. referencedClasses: []
  691. }),
  692. smalltalk.JQuery);
  693. smalltalk.addMethod(
  694. unescape('_onLoadDo_'),
  695. smalltalk.method({
  696. selector: unescape('onLoadDo%3A'),
  697. category: 'events',
  698. fn: function (aBlock){
  699. var self=this;
  700. smalltalk.send(self, "_call_withArgument_", ["load", aBlock]);
  701. return self;},
  702. args: ["aBlock"],
  703. source: unescape('onLoadDo%3A%20aBlock%0A%09%22Bind%20an%20event%20handler%20to%20the%20%27load%27%20JavaScript%20event.%22%0A%09self%20call%3A%20%27load%27%20withArgument%3A%20aBlock'),
  704. messageSends: ["call:withArgument:"],
  705. referencedClasses: []
  706. }),
  707. smalltalk.JQuery);
  708. smalltalk.addMethod(
  709. unescape('_initializeWithJQueryObject_'),
  710. smalltalk.method({
  711. selector: unescape('initializeWithJQueryObject%3A'),
  712. category: 'initialization',
  713. fn: function (anObject){
  714. var self=this;
  715. self['@jquery']=anObject;
  716. return self;},
  717. args: ["anObject"],
  718. source: unescape('initializeWithJQueryObject%3A%20anObject%0A%20%20%20%20jquery%20%3A%3D%20anObject'),
  719. messageSends: [],
  720. referencedClasses: []
  721. }),
  722. smalltalk.JQuery);
  723. smalltalk.addMethod(
  724. unescape('_call_'),
  725. smalltalk.method({
  726. selector: unescape('call%3A'),
  727. category: 'private',
  728. fn: function (aString){
  729. var self=this;
  730. return self['@jquery'][aString]();
  731. return self;},
  732. args: ["aString"],
  733. source: unescape('call%3A%20aString%0A%09%3Creturn%20self%5B%27@jquery%27%5D%5BaString%5D%28%29%3E'),
  734. messageSends: [],
  735. referencedClasses: []
  736. }),
  737. smalltalk.JQuery);
  738. smalltalk.addMethod(
  739. unescape('_call_withArgument_'),
  740. smalltalk.method({
  741. selector: unescape('call%3AwithArgument%3A'),
  742. category: 'private',
  743. fn: function (aString, anObject){
  744. var self=this;
  745. return self['@jquery'][aString](anObject);
  746. return self;},
  747. args: ["aString", "anObject"],
  748. source: unescape('call%3A%20aString%20withArgument%3A%20anObject%0A%20%20%20%20%3Creturn%20self%5B%27@jquery%27%5D%5BaString%5D%28anObject%29%3E'),
  749. messageSends: [],
  750. referencedClasses: []
  751. }),
  752. smalltalk.JQuery);
  753. smalltalk.addMethod(
  754. unescape('_elementsDo_'),
  755. smalltalk.method({
  756. selector: unescape('elementsDo%3A'),
  757. category: 'private',
  758. fn: function (aBlock){
  759. var self=this;
  760. self['@jquery'].each(function(index, element){aBlock(element, self)});
  761. return self;},
  762. args: ["aBlock"],
  763. source: unescape('elementsDo%3A%20aBlock%0A%20%20%20%20%22Iterate%20over%20a%20jQuery%20object%2C%20executing%20a%20function%20for%20each%20matched%20element.%22%0A%20%20%20%20%3Cself%5B%27@jquery%27%5D.each%28function%28index%2C%20element%29%7BaBlock%28element%2C%20self%29%7D%29%3E'),
  764. messageSends: [],
  765. referencedClasses: []
  766. }),
  767. smalltalk.JQuery);
  768. smalltalk.addMethod(
  769. unescape('_hasClass_'),
  770. smalltalk.method({
  771. selector: unescape('hasClass%3A'),
  772. category: 'testing',
  773. fn: function (aString){
  774. var self=this;
  775. return smalltalk.send(self, "_call_withArgument_", ["hasClass", aString]);
  776. return self;},
  777. args: ["aString"],
  778. source: unescape('hasClass%3A%20aString%0A%20%20%20%20%22Determine%20whether%20any%20of%20the%20matched%20elements%20are%20assigned%20the%20given%20class.%22%0A%20%20%20%20%5Eself%20call%3A%20%27hasClass%27%20withArgument%3A%20aString'),
  779. messageSends: ["call:withArgument:"],
  780. referencedClasses: []
  781. }),
  782. smalltalk.JQuery);
  783. smalltalk.addMethod(
  784. unescape('_find_'),
  785. smalltalk.method({
  786. selector: unescape('find%3A'),
  787. category: 'traversing',
  788. fn: function (aSelector){
  789. var self=this;
  790. return smalltalk.send(self, "_call_withArgument_", ["find", aSelector]);
  791. return self;},
  792. args: ["aSelector"],
  793. source: unescape('find%3A%20aSelector%0A%20%20%20%20%22Get%20the%20descendants%20of%20each%20element%20in%20the%20current%20set%20of%20matched%20elements%2C%20filtered%20by%20a%20selector%2C%20jQuery%20object%2C%20or%20element.%22%0A%20%20%20%20%5E%20self%20call%3A%20%27find%27%20withArgument%3A%20aSelector'),
  794. messageSends: ["call:withArgument:"],
  795. referencedClasses: []
  796. }),
  797. smalltalk.JQuery);
  798. smalltalk.addMethod(
  799. unescape('_fromString_'),
  800. smalltalk.method({
  801. selector: unescape('fromString%3A'),
  802. category: 'instance creation',
  803. fn: function (aString){
  804. var self=this;
  805. var newJQuery=nil;
  806. newJQuery = jQuery(String(aString));
  807. return smalltalk.send(self, "_from_", [newJQuery]);
  808. return self;},
  809. args: ["aString"],
  810. source: unescape('fromString%3A%20aString%0A%20%20%20%20%7C%20newJQuery%20%7C%0A%20%20%20%20%3CnewJQuery%20%3D%20jQuery%28String%28aString%29%29%3E.%0A%20%20%20%20%5Eself%20from%3A%20newJQuery'),
  811. messageSends: ["from:"],
  812. referencedClasses: []
  813. }),
  814. smalltalk.JQuery.klass);
  815. smalltalk.addMethod(
  816. unescape('_from_'),
  817. smalltalk.method({
  818. selector: unescape('from%3A'),
  819. category: 'instance creation',
  820. fn: function (anObject){
  821. var self=this;
  822. return (function($rec){smalltalk.send($rec, "_initializeWithJQueryObject_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  823. return self;},
  824. args: ["anObject"],
  825. source: unescape('from%3A%20anObject%0A%20%20%20%20%5Eself%20new%0A%09initializeWithJQueryObject%3A%20anObject%3B%0A%09yourself'),
  826. messageSends: ["initializeWithJQueryObject:", "yourself", "new"],
  827. referencedClasses: []
  828. }),
  829. smalltalk.JQuery.klass);
  830. smalltalk.addMethod(
  831. unescape('_window'),
  832. smalltalk.method({
  833. selector: unescape('window'),
  834. category: 'instance creation',
  835. fn: function (){
  836. var self=this;
  837. return self._from_(jQuery(window));
  838. return self;},
  839. args: [],
  840. source: unescape('window%0A%09%3Creturn%20self._from_%28jQuery%28window%29%29%3E'),
  841. messageSends: [],
  842. referencedClasses: []
  843. }),
  844. smalltalk.JQuery.klass);
  845. smalltalk.addMethod(
  846. unescape('_body'),
  847. smalltalk.method({
  848. selector: unescape('body'),
  849. category: 'instance creation',
  850. fn: function (){
  851. var self=this;
  852. return self._from_(jQuery('body'));
  853. return self;},
  854. args: [],
  855. source: unescape('body%0A%09%3Creturn%20self._from_%28jQuery%28%27body%27%29%29%3E'),
  856. messageSends: [],
  857. referencedClasses: []
  858. }),
  859. smalltalk.JQuery.klass);
  860. smalltalk.addMethod(
  861. unescape('_document'),
  862. smalltalk.method({
  863. selector: unescape('document'),
  864. category: 'instance creation',
  865. fn: function (){
  866. var self=this;
  867. return self._from_(jQuery(document));
  868. return self;},
  869. args: [],
  870. source: unescape('document%0A%09%3Creturn%20self._from_%28jQuery%28document%29%29%3E'),
  871. messageSends: [],
  872. referencedClasses: []
  873. }),
  874. smalltalk.JQuery.klass);
  875. smalltalk.addMethod(
  876. unescape('_fromElement_'),
  877. smalltalk.method({
  878. selector: unescape('fromElement%3A'),
  879. category: 'instance creation',
  880. fn: function (anElement){
  881. var self=this;
  882. var newJQuery=nil;
  883. newJQuery = jQuery(anElement);
  884. return smalltalk.send(self, "_from_", [newJQuery]);
  885. return self;},
  886. args: ["anElement"],
  887. source: unescape('fromElement%3A%20anElement%0A%20%20%20%20%7C%20newJQuery%20%7C%0A%20%20%20%20%3CnewJQuery%20%3D%20jQuery%28anElement%29%3E.%0A%20%20%20%20%5Eself%20from%3A%20newJQuery'),
  888. messageSends: ["from:"],
  889. referencedClasses: []
  890. }),
  891. smalltalk.JQuery.klass);
  892. smalltalk.addMethod(
  893. unescape('_documentReady_'),
  894. smalltalk.method({
  895. selector: unescape('documentReady%3A'),
  896. category: 'instance creation',
  897. fn: function (aBlock){
  898. var self=this;
  899. jQuery(document).ready(aBlock);
  900. return self;},
  901. args: ["aBlock"],
  902. source: unescape('documentReady%3A%20aBlock%0A%09%3CjQuery%28document%29.ready%28aBlock%29%3E'),
  903. messageSends: [],
  904. referencedClasses: []
  905. }),
  906. smalltalk.JQuery.klass);
  907. smalltalk.addClass('Ajax', smalltalk.Object, ['settings'], 'JQuery');
  908. smalltalk.Ajax.comment=unescape('instance%20variable%20names%3A%0A-%20settings%20%20A%20set%20of%20key/value%20pairs%20that%20configure%20the%20Ajax%20request.%20All%20settings%20are%20optional.%0A%0AFull%20list%20of%20settings%20options%20at%20http%3A//api.jquery.com/jQuery.ajax/')
  909. smalltalk.addMethod(
  910. unescape('_at_'),
  911. smalltalk.method({
  912. selector: unescape('at%3A'),
  913. category: 'accessing',
  914. fn: function (aKey){
  915. var self=this;
  916. return smalltalk.send(self['@settings'], "_at_ifAbsent_", [aKey, (function(){return nil;})]);
  917. return self;},
  918. args: ["aKey"],
  919. source: unescape('at%3A%20aKey%0A%20%20%20%20%5Esettings%20at%3A%20aKey%20ifAbsent%3A%20%5Bnil%5D'),
  920. messageSends: ["at:ifAbsent:"],
  921. referencedClasses: []
  922. }),
  923. smalltalk.Ajax);
  924. smalltalk.addMethod(
  925. unescape('_at_put_'),
  926. smalltalk.method({
  927. selector: unescape('at%3Aput%3A'),
  928. category: 'accessing',
  929. fn: function (aKey, aValue){
  930. var self=this;
  931. smalltalk.send(self['@settings'], "_at_put_", [aKey, aValue]);
  932. return self;},
  933. args: ["aKey", "aValue"],
  934. source: unescape('at%3A%20aKey%20put%3A%20aValue%0A%20%20%20%20settings%20at%3A%20aKey%20put%3A%20aValue'),
  935. messageSends: ["at:put:"],
  936. referencedClasses: []
  937. }),
  938. smalltalk.Ajax);
  939. smalltalk.addMethod(
  940. unescape('_url'),
  941. smalltalk.method({
  942. selector: unescape('url'),
  943. category: 'accessing',
  944. fn: function (){
  945. var self=this;
  946. return smalltalk.send(self, "_at_", ["url"]);
  947. return self;},
  948. args: [],
  949. source: unescape('url%0A%20%20%20%20%5Eself%20at%3A%20%27url%27'),
  950. messageSends: ["at:"],
  951. referencedClasses: []
  952. }),
  953. smalltalk.Ajax);
  954. smalltalk.addMethod(
  955. unescape('_url_'),
  956. smalltalk.method({
  957. selector: unescape('url%3A'),
  958. category: 'accessing',
  959. fn: function (aString){
  960. var self=this;
  961. smalltalk.send(self, "_at_put_", ["url", aString]);
  962. return self;},
  963. args: ["aString"],
  964. source: unescape('url%3A%20aString%0A%20%20%20%20self%20at%3A%20%27url%27%20put%3A%20aString'),
  965. messageSends: ["at:put:"],
  966. referencedClasses: []
  967. }),
  968. smalltalk.Ajax);
  969. smalltalk.addMethod(
  970. unescape('_send'),
  971. smalltalk.method({
  972. selector: unescape('send'),
  973. category: 'actions',
  974. fn: function (){
  975. var self=this;
  976. jQuery.ajax(self['@settings']);
  977. return self;},
  978. args: [],
  979. source: unescape('send%0A%20%20%20%20%3CjQuery.ajax%28self%5B%27@settings%27%5D%29%3E'),
  980. messageSends: [],
  981. referencedClasses: []
  982. }),
  983. smalltalk.Ajax);
  984. smalltalk.addMethod(
  985. unescape('_onSuccessDo_'),
  986. smalltalk.method({
  987. selector: unescape('onSuccessDo%3A'),
  988. category: 'callbacks',
  989. fn: function (aBlock){
  990. var self=this;
  991. smalltalk.send(self, "_at_put_", ["success", aBlock]);
  992. return self;},
  993. args: ["aBlock"],
  994. source: unescape('onSuccessDo%3A%20aBlock%0A%09%22Set%20action%20to%20execute%20when%20Ajax%20request%20is%20successful.%20Pass%20received%20data%20as%20block%20argument.%20Block%20arguments%3A%20data%2C%20textStatus%2C%20jqXHR%22%0A%09self%20at%3A%20%27success%27%20put%3A%20aBlock'),
  995. messageSends: ["at:put:"],
  996. referencedClasses: []
  997. }),
  998. smalltalk.Ajax);
  999. smalltalk.addMethod(
  1000. unescape('_onCompleteDo_'),
  1001. smalltalk.method({
  1002. selector: unescape('onCompleteDo%3A'),
  1003. category: 'callbacks',
  1004. fn: function (aBlock){
  1005. var self=this;
  1006. smalltalk.send(self, "_at_put_", ["complete", aBlock]);
  1007. return self;},
  1008. args: ["aBlock"],
  1009. source: unescape('onCompleteDo%3A%20aBlock%0A%09%22A%20block%20to%20be%20called%20when%20the%20request%20finishes%20%28after%20success%20and%20error%20callbacks%20are%20executed%29.%20Block%20arguments%3A%20jqXHR%2C%20textStatus%22%0A%09self%20at%3A%20%27complete%27%20put%3A%20aBlock'),
  1010. messageSends: ["at:put:"],
  1011. referencedClasses: []
  1012. }),
  1013. smalltalk.Ajax);
  1014. smalltalk.addMethod(
  1015. unescape('_onErrorDo_'),
  1016. smalltalk.method({
  1017. selector: unescape('onErrorDo%3A'),
  1018. category: 'callbacks',
  1019. fn: function (aBlock){
  1020. var self=this;
  1021. smalltalk.send(self, "_at_put_", ["error", aBlock]);
  1022. return self;},
  1023. args: ["aBlock"],
  1024. source: unescape('onErrorDo%3A%20aBlock%0A%09%22A%20block%20to%20be%20called%20if%20the%20request%20fails.Block%20arguments%3A%20jqXHR%2C%20textStatus%2C%20errorThrown%22%0A%09self%20at%3A%20%27error%27%20put%3A%20aBlock'),
  1025. messageSends: ["at:put:"],
  1026. referencedClasses: []
  1027. }),
  1028. smalltalk.Ajax);
  1029. smalltalk.addMethod(
  1030. unescape('_initialize'),
  1031. smalltalk.method({
  1032. selector: unescape('initialize'),
  1033. category: 'initialization',
  1034. fn: function (){
  1035. var self=this;
  1036. smalltalk.send(self, "_initialize", [], smalltalk.Object);
  1037. self['@settings']=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  1038. return self;},
  1039. args: [],
  1040. source: unescape('initialize%0A%20%20%20%20super%20initialize.%0A%20%20%20%20settings%20%3A%3D%20Dictionary%20new'),
  1041. messageSends: ["initialize", "new"],
  1042. referencedClasses: [smalltalk.Dictionary]
  1043. }),
  1044. smalltalk.Ajax);
  1045. smalltalk.addMethod(
  1046. unescape('_url_'),
  1047. smalltalk.method({
  1048. selector: unescape('url%3A'),
  1049. category: 'instance creation',
  1050. fn: function (aString){
  1051. var self=this;
  1052. return (function($rec){smalltalk.send($rec, "_url_", [aString]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  1053. return self;},
  1054. args: ["aString"],
  1055. source: unescape('url%3A%20aString%0A%20%20%20%20%5Eself%20new%0A%09url%3A%20aString%3B%0A%09yourself'),
  1056. messageSends: ["url:", "yourself", "new"],
  1057. referencedClasses: []
  1058. }),
  1059. smalltalk.Ajax.klass);
  1060. smalltalk.addMethod(
  1061. unescape('_appendToJQuery_'),
  1062. smalltalk.method({
  1063. selector: unescape('appendToJQuery%3A'),
  1064. category: '*JQuery',
  1065. fn: function (aJQuery){
  1066. var self=this;
  1067. smalltalk.send(self, "_value_", [smalltalk.send((smalltalk.HTMLCanvas || HTMLCanvas), "_onJQuery_", [aJQuery])]);
  1068. return self;},
  1069. args: ["aJQuery"],
  1070. source: unescape('appendToJQuery%3A%20aJQuery%0A%09self%20value%3A%20%28HTMLCanvas%20onJQuery%3A%20aJQuery%29'),
  1071. messageSends: ["value:", "onJQuery:"],
  1072. referencedClasses: [smalltalk.HTMLCanvas]
  1073. }),
  1074. smalltalk.BlockClosure);
  1075. smalltalk.addMethod(
  1076. unescape('_asJQuery'),
  1077. smalltalk.method({
  1078. selector: unescape('asJQuery'),
  1079. category: '*JQuery',
  1080. fn: function (){
  1081. var self=this;
  1082. return smalltalk.send((smalltalk.JQuery || JQuery), "_fromString_", [self]);
  1083. return self;},
  1084. args: [],
  1085. source: unescape('asJQuery%0A%20%20%20%20%5EJQuery%20fromString%3A%20self'),
  1086. messageSends: ["fromString:"],
  1087. referencedClasses: [smalltalk.JQuery]
  1088. }),
  1089. smalltalk.String);
  1090. smalltalk.addMethod(
  1091. unescape('_appendToJQuery_'),
  1092. smalltalk.method({
  1093. selector: unescape('appendToJQuery%3A'),
  1094. category: '*JQuery',
  1095. fn: function (aJQuery){
  1096. var self=this;
  1097. aJQuery._appendElement_(String(self));
  1098. return self;},
  1099. args: ["aJQuery"],
  1100. source: unescape('appendToJQuery%3A%20aJQuery%0A%20%20%20%20%3CaJQuery._appendElement_%28String%28self%29%29%3E'),
  1101. messageSends: [],
  1102. referencedClasses: []
  1103. }),
  1104. smalltalk.String);
  1105. smalltalk.addMethod(
  1106. unescape('_appendToJQuery_'),
  1107. smalltalk.method({
  1108. selector: unescape('appendToJQuery%3A'),
  1109. category: '*JQuery',
  1110. fn: function (aJQuery){
  1111. var self=this;
  1112. smalltalk.send(aJQuery, "_appendElement_", [smalltalk.send(self['@root'], "_element", [])]);
  1113. return self;},
  1114. args: ["aJQuery"],
  1115. source: unescape('appendToJQuery%3A%20aJQuery%0A%20%20%20%20aJQuery%20appendElement%3A%20root%20element'),
  1116. messageSends: ["appendElement:", "element"],
  1117. referencedClasses: []
  1118. }),
  1119. smalltalk.HTMLCanvas);