amber-rails 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. data/.gitignore +2 -0
  2. data/.rvmrc +4 -0
  3. data/CHANGELOG.md +3 -0
  4. data/Gemfile +2 -0
  5. data/Gemfile.lock +96 -0
  6. data/LICENSE +7 -0
  7. data/README.md +13 -0
  8. data/Rakefile +15 -0
  9. data/amber-rails.gemspec +21 -0
  10. data/app/assets/.DS_Store +0 -0
  11. data/app/assets/javascripts/.DS_Store +0 -0
  12. data/app/assets/javascripts/codemirror/codemirror.js +2144 -0
  13. data/app/assets/javascripts/codemirror/overlay.js +51 -0
  14. data/app/assets/javascripts/codemirror/runmode.js +27 -0
  15. data/app/assets/javascripts/codemirror/smalltalk/index.html +56 -0
  16. data/app/assets/javascripts/codemirror/smalltalk/smalltalk.js +134 -0
  17. data/app/assets/javascripts/html5.js +35 -0
  18. data/app/assets/javascripts/jquery.js +8981 -0
  19. data/app/assets/javascripts/jquery.textarea.js +267 -0
  20. data/app/assets/javascripts/jquery.tmpl.js +503 -0
  21. data/app/assets/javascripts/jquery.ui.js +272 -0
  22. data/app/assets/javascripts/json2.js +481 -0
  23. data/app/assets/javascripts/jtalk-development.js.coffee +4 -0
  24. data/app/assets/javascripts/jtalk-todos.js.coffee +4 -0
  25. data/app/assets/javascripts/jtalk.js.coffee +16 -0
  26. data/app/assets/javascripts/jtalk_core/boot.js +466 -0
  27. data/app/assets/javascripts/jtalk_core/st/.DS_Store +0 -0
  28. data/app/assets/javascripts/jtalk_core/st/Benchfib.js +159 -0
  29. data/app/assets/javascripts/jtalk_core/st/Canvas.js +1479 -0
  30. data/app/assets/javascripts/jtalk_core/st/Compiler.js +1587 -0
  31. data/app/assets/javascripts/jtalk_core/st/Examples.js +863 -0
  32. data/app/assets/javascripts/jtalk_core/st/HTML5.js +54 -0
  33. data/app/assets/javascripts/jtalk_core/st/IDE.js +3457 -0
  34. data/app/assets/javascripts/jtalk_core/st/JQuery.js +898 -0
  35. data/app/assets/javascripts/jtalk_core/st/Kernel.js +6761 -0
  36. data/app/assets/javascripts/jtalk_core/st/Parser.js +1655 -0
  37. data/app/assets/javascripts/jtalk_core/st/SUnit.js +1059 -0
  38. data/app/assets/stylesheets/codemirror.css +67 -0
  39. data/app/assets/stylesheets/codemirror_jtalk.css +21 -0
  40. data/app/assets/stylesheets/jtalk.css +369 -0
  41. data/app/assets/stylesheets/sunit.css +65 -0
  42. data/config/routes.rb +10 -0
  43. data/examples/todos/.gitignore +5 -0
  44. data/examples/todos/.rvmrc +4 -0
  45. data/examples/todos/Gemfile +12 -0
  46. data/examples/todos/Gemfile.lock +126 -0
  47. data/examples/todos/README +261 -0
  48. data/examples/todos/Rakefile +15 -0
  49. data/examples/todos/app/assets/images/rails.png +0 -0
  50. data/examples/todos/app/assets/javascripts/application.js.coffee +5 -0
  51. data/examples/todos/app/assets/javascripts/jtalk/Examples.deploy.js +863 -0
  52. data/examples/todos/app/assets/javascripts/jtalk/Examples.js +863 -0
  53. data/examples/todos/app/assets/smalltalk/Examples.st +397 -0
  54. data/examples/todos/app/assets/stylesheets/application.css +8 -0
  55. data/examples/todos/app/assets/stylesheets/jtalk-todos.css +154 -0
  56. data/examples/todos/app/controllers/application_controller.rb +3 -0
  57. data/examples/todos/app/controllers/todos_controller.rb +5 -0
  58. data/examples/todos/app/helpers/application_helper.rb +2 -0
  59. data/examples/todos/app/models/.gitkeep +0 -0
  60. data/examples/todos/app/views/todos/index.html.haml +16 -0
  61. data/examples/todos/config.ru +4 -0
  62. data/examples/todos/config/application.rb +31 -0
  63. data/examples/todos/config/boot.rb +6 -0
  64. data/examples/todos/config/database.yml +25 -0
  65. data/examples/todos/config/environment.rb +5 -0
  66. data/examples/todos/config/environments/development.rb +27 -0
  67. data/examples/todos/config/environments/production.rb +60 -0
  68. data/examples/todos/config/environments/test.rb +42 -0
  69. data/examples/todos/config/initializers/backtrace_silencers.rb +7 -0
  70. data/examples/todos/config/initializers/inflections.rb +10 -0
  71. data/examples/todos/config/initializers/mime_types.rb +5 -0
  72. data/examples/todos/config/initializers/secret_token.rb +7 -0
  73. data/examples/todos/config/initializers/session_store.rb +8 -0
  74. data/examples/todos/config/initializers/wrap_parameters.rb +14 -0
  75. data/examples/todos/config/locales/en.yml +5 -0
  76. data/examples/todos/config/routes.rb +3 -0
  77. data/examples/todos/log/.gitkeep +0 -0
  78. data/examples/todos/public/404.html +26 -0
  79. data/examples/todos/public/422.html +26 -0
  80. data/examples/todos/public/500.html +26 -0
  81. data/examples/todos/public/favicon.ico +0 -0
  82. data/examples/todos/public/robots.txt +5 -0
  83. data/examples/todos/script/rails +6 -0
  84. data/examples/todos/vendor/assets/stylesheets/.gitkeep +0 -0
  85. data/examples/todos/vendor/plugins/.gitkeep +0 -0
  86. data/lib/amber-rails.rb +1 -0
  87. data/lib/amber/rails.rb +30 -0
  88. data/lib/amber/rails/engine.rb +12 -0
  89. data/lib/amber/rails/version.rb +5 -0
  90. metadata +167 -0
@@ -0,0 +1,898 @@
1
+ smalltalk.addClass('JQuery', smalltalk.Object, ['jquery'], 'JQuery');
2
+ smalltalk.addMethod(
3
+ '_append_',
4
+ smalltalk.method({
5
+ selector: 'append:',
6
+ category: 'DOM insertion',
7
+ fn: function (anObject){
8
+ var self=this;
9
+ smalltalk.send(anObject, "_appendToJQuery_", [self]);
10
+ return self;},
11
+ 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'),
12
+ messageSends: ["appendToJQuery:"],
13
+ referencedClasses: []
14
+ }),
15
+ smalltalk.JQuery);
16
+
17
+ smalltalk.addMethod(
18
+ '_appendElement_',
19
+ smalltalk.method({
20
+ selector: 'appendElement:',
21
+ category: 'DOM insertion',
22
+ fn: function (anElement){
23
+ var self=this;
24
+ smalltalk.send(self, "_call_withArgument_", ["append", anElement]);
25
+ return self;},
26
+ 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'),
27
+ messageSends: ["call:withArgument:"],
28
+ referencedClasses: []
29
+ }),
30
+ smalltalk.JQuery);
31
+
32
+ smalltalk.addMethod(
33
+ '_appendToJQuery_',
34
+ smalltalk.method({
35
+ selector: 'appendToJQuery:',
36
+ category: 'DOM insertion',
37
+ fn: function (aJQuery){
38
+ var self=this;
39
+ smalltalk.send(aJQuery, "_appendElement_", [self['@jquery']]);
40
+ return self;},
41
+ source: unescape('appendToJQuery%3A%20aJQuery%0A%20%20%20%20aJQuery%20appendElement%3A%20jquery'),
42
+ messageSends: ["appendElement:"],
43
+ referencedClasses: []
44
+ }),
45
+ smalltalk.JQuery);
46
+
47
+ smalltalk.addMethod(
48
+ '_contents_',
49
+ smalltalk.method({
50
+ selector: 'contents:',
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
+ source: unescape('contents%3A%20anObject%0A%20%20%20%20self%20empty.%0A%20%20%20%20self%20append%3A%20anObject'),
58
+ messageSends: ["empty", "append:"],
59
+ referencedClasses: []
60
+ }),
61
+ smalltalk.JQuery);
62
+
63
+ smalltalk.addMethod(
64
+ '_empty',
65
+ smalltalk.method({
66
+ selector: 'empty',
67
+ category: 'DOM insertion',
68
+ fn: function (){
69
+ var self=this;
70
+ return smalltalk.send(self, "_call_", ["empty"]);
71
+ return self;},
72
+ source: unescape('empty%0A%20%20%20%20%5Eself%20call%3A%20%27empty%27'),
73
+ messageSends: ["call:"],
74
+ referencedClasses: []
75
+ }),
76
+ smalltalk.JQuery);
77
+
78
+ smalltalk.addMethod(
79
+ '_jquery',
80
+ smalltalk.method({
81
+ selector: 'jquery',
82
+ category: 'accessing',
83
+ fn: function (){
84
+ var self=this;
85
+ return self['@jquery'];
86
+ return self;},
87
+ source: unescape('jquery%0A%09%5Ejquery'),
88
+ messageSends: [],
89
+ referencedClasses: []
90
+ }),
91
+ smalltalk.JQuery);
92
+
93
+ smalltalk.addMethod(
94
+ '_removeAttribute_',
95
+ smalltalk.method({
96
+ selector: 'removeAttribute:',
97
+ category: 'attributes',
98
+ fn: function (aString){
99
+ var self=this;
100
+ return smalltalk.send(self, "_call_withArgument_", ["removeAttribute", aString]);
101
+ return self;},
102
+ 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'),
103
+ messageSends: ["call:withArgument:"],
104
+ referencedClasses: []
105
+ }),
106
+ smalltalk.JQuery);
107
+
108
+ smalltalk.addMethod(
109
+ '_attr_',
110
+ smalltalk.method({
111
+ selector: 'attr:',
112
+ category: 'attributes',
113
+ fn: function (aString){
114
+ var self=this;
115
+ return smalltalk.send(self, "_call_withArgument_", ["attr", aString]);
116
+ return self;},
117
+ 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'),
118
+ messageSends: ["call:withArgument:"],
119
+ referencedClasses: []
120
+ }),
121
+ smalltalk.JQuery);
122
+
123
+ smalltalk.addMethod(
124
+ '_val',
125
+ smalltalk.method({
126
+ selector: 'val',
127
+ category: 'attributes',
128
+ fn: function (){
129
+ var self=this;
130
+ return smalltalk.send(self, "_call_", ["val"]);
131
+ return self;},
132
+ 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'),
133
+ messageSends: ["call:"],
134
+ referencedClasses: []
135
+ }),
136
+ smalltalk.JQuery);
137
+
138
+ smalltalk.addMethod(
139
+ '_val_',
140
+ smalltalk.method({
141
+ selector: 'val:',
142
+ category: 'attributes',
143
+ fn: function (aString){
144
+ var self=this;
145
+ smalltalk.send(self, "_call_withArgument_", ["val", aString]);
146
+ return self;},
147
+ source: unescape('val%3A%20aString%0A%20%20%20%20self%20call%3A%20%27val%27%20withArgument%3A%20aString'),
148
+ messageSends: ["call:withArgument:"],
149
+ referencedClasses: []
150
+ }),
151
+ smalltalk.JQuery);
152
+
153
+ smalltalk.addMethod(
154
+ '_cssAt_',
155
+ smalltalk.method({
156
+ selector: 'cssAt:',
157
+ category: 'css',
158
+ fn: function (aString){
159
+ var self=this;
160
+ return self['@jquery'].css(aString);
161
+ return self;},
162
+ source: unescape('cssAt%3A%20aString%0A%09%3Creturn%20self%5B%27@jquery%27%5D.css%28aString%29%3E'),
163
+ messageSends: [],
164
+ referencedClasses: []
165
+ }),
166
+ smalltalk.JQuery);
167
+
168
+ smalltalk.addMethod(
169
+ '_cssAt_put_',
170
+ smalltalk.method({
171
+ selector: 'cssAt:put:',
172
+ category: 'css',
173
+ fn: function (aString, anotherString){
174
+ var self=this;
175
+ self['@jquery'].css(aString, anotherString);
176
+ return self;},
177
+ 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'),
178
+ messageSends: [],
179
+ referencedClasses: []
180
+ }),
181
+ smalltalk.JQuery);
182
+
183
+ smalltalk.addMethod(
184
+ '_addClass_',
185
+ smalltalk.method({
186
+ selector: 'addClass:',
187
+ category: 'css',
188
+ fn: function (aString){
189
+ var self=this;
190
+ smalltalk.send(self, "_call_withArgument_", ["addClass", aString]);
191
+ return self;},
192
+ 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'),
193
+ messageSends: ["call:withArgument:"],
194
+ referencedClasses: []
195
+ }),
196
+ smalltalk.JQuery);
197
+
198
+ smalltalk.addMethod(
199
+ '_removeClass_',
200
+ smalltalk.method({
201
+ selector: 'removeClass:',
202
+ category: 'css',
203
+ fn: function (aString){
204
+ var self=this;
205
+ smalltalk.send(self, "_call_withArgument_", ["removeClass", aString]);
206
+ return self;},
207
+ 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'),
208
+ messageSends: ["call:withArgument:"],
209
+ referencedClasses: []
210
+ }),
211
+ smalltalk.JQuery);
212
+
213
+ smalltalk.addMethod(
214
+ '_toggleClass_',
215
+ smalltalk.method({
216
+ selector: 'toggleClass:',
217
+ category: 'css',
218
+ fn: function (aString){
219
+ var self=this;
220
+ smalltalk.send(self, "_call_withArgument_", ["toggleClass", aString]);
221
+ return self;},
222
+ 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'),
223
+ messageSends: ["call:withArgument:"],
224
+ referencedClasses: []
225
+ }),
226
+ smalltalk.JQuery);
227
+
228
+ smalltalk.addMethod(
229
+ '_height',
230
+ smalltalk.method({
231
+ selector: 'height',
232
+ category: 'css',
233
+ fn: function (){
234
+ var self=this;
235
+ return smalltalk.send(self, "_call_", ["height"]);
236
+ return self;},
237
+ 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'),
238
+ messageSends: ["call:"],
239
+ referencedClasses: []
240
+ }),
241
+ smalltalk.JQuery);
242
+
243
+ smalltalk.addMethod(
244
+ '_height_',
245
+ smalltalk.method({
246
+ selector: 'height:',
247
+ category: 'css',
248
+ fn: function (anInteger){
249
+ var self=this;
250
+ smalltalk.send(self, "_call_withArgument_", ["height", anInteger]);
251
+ return self;},
252
+ source: unescape('height%3A%20anInteger%0A%20%20%20%20self%20call%3A%20%27height%27%20withArgument%3A%20anInteger'),
253
+ messageSends: ["call:withArgument:"],
254
+ referencedClasses: []
255
+ }),
256
+ smalltalk.JQuery);
257
+
258
+ smalltalk.addMethod(
259
+ '_width_',
260
+ smalltalk.method({
261
+ selector: 'width:',
262
+ category: 'css',
263
+ fn: function (anInteger){
264
+ var self=this;
265
+ smalltalk.send(self, "_call_withArgument_", ["width", anInteger]);
266
+ return self;},
267
+ source: unescape('width%3A%20anInteger%0A%20%20%20%20self%20call%3A%20%27width%27%20withArgument%3A%20anInteger'),
268
+ messageSends: ["call:withArgument:"],
269
+ referencedClasses: []
270
+ }),
271
+ smalltalk.JQuery);
272
+
273
+ smalltalk.addMethod(
274
+ '_width',
275
+ smalltalk.method({
276
+ selector: 'width',
277
+ category: 'css',
278
+ fn: function (){
279
+ var self=this;
280
+ return smalltalk.send(self, "_call_", ["width"]);
281
+ return self;},
282
+ 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'),
283
+ messageSends: ["call:"],
284
+ referencedClasses: []
285
+ }),
286
+ smalltalk.JQuery);
287
+
288
+ smalltalk.addMethod(
289
+ '_innerHeight',
290
+ smalltalk.method({
291
+ selector: 'innerHeight',
292
+ category: 'css',
293
+ fn: function (){
294
+ var self=this;
295
+ return smalltalk.send(self, "_call_", ["innerHeight"]);
296
+ return self;},
297
+ 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'),
298
+ messageSends: ["call:"],
299
+ referencedClasses: []
300
+ }),
301
+ smalltalk.JQuery);
302
+
303
+ smalltalk.addMethod(
304
+ '_innerWidth',
305
+ smalltalk.method({
306
+ selector: 'innerWidth',
307
+ category: 'css',
308
+ fn: function (){
309
+ var self=this;
310
+ return smalltalk.send(self, "_call_", ["innerWidth"]);
311
+ return self;},
312
+ 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'),
313
+ messageSends: ["call:"],
314
+ referencedClasses: []
315
+ }),
316
+ smalltalk.JQuery);
317
+
318
+ smalltalk.addMethod(
319
+ '_outerHeight',
320
+ smalltalk.method({
321
+ selector: 'outerHeight',
322
+ category: 'css',
323
+ fn: function (){
324
+ var self=this;
325
+ return smalltalk.send(self, "_call_", ["outerHeight"]);
326
+ return self;},
327
+ 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'),
328
+ messageSends: ["call:"],
329
+ referencedClasses: []
330
+ }),
331
+ smalltalk.JQuery);
332
+
333
+ smalltalk.addMethod(
334
+ '_outerWidth',
335
+ smalltalk.method({
336
+ selector: 'outerWidth',
337
+ category: 'css',
338
+ fn: function (){
339
+ var self=this;
340
+ return smalltalk.send(self, "_call_", ["outerWidth"]);
341
+ return self;},
342
+ 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'),
343
+ messageSends: ["call:"],
344
+ referencedClasses: []
345
+ }),
346
+ smalltalk.JQuery);
347
+
348
+ smalltalk.addMethod(
349
+ '_top',
350
+ smalltalk.method({
351
+ selector: 'top',
352
+ category: 'css',
353
+ fn: function (){
354
+ var self=this;
355
+ return smalltalk.send(smalltalk.send(self, "_call_", ["position"]), "_basicAt_", ["top"]);
356
+ return self;},
357
+ 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'),
358
+ messageSends: ["basicAt:", "call:"],
359
+ referencedClasses: []
360
+ }),
361
+ smalltalk.JQuery);
362
+
363
+ smalltalk.addMethod(
364
+ '_left',
365
+ smalltalk.method({
366
+ selector: 'left',
367
+ category: 'css',
368
+ fn: function (){
369
+ var self=this;
370
+ return smalltalk.send(smalltalk.send(self, "_call_", ["position"]), "_basicAt_", ["left"]);
371
+ return self;},
372
+ 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'),
373
+ messageSends: ["basicAt:", "call:"],
374
+ referencedClasses: []
375
+ }),
376
+ smalltalk.JQuery);
377
+
378
+ smalltalk.addMethod(
379
+ '_offsetLeft',
380
+ smalltalk.method({
381
+ selector: 'offsetLeft',
382
+ category: 'css',
383
+ fn: function (){
384
+ var self=this;
385
+ return smalltalk.send(smalltalk.send(self, "_call_", ["offset"]), "_basicAt_", ["left"]);
386
+ return self;},
387
+ 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'),
388
+ messageSends: ["basicAt:", "call:"],
389
+ referencedClasses: []
390
+ }),
391
+ smalltalk.JQuery);
392
+
393
+ smalltalk.addMethod(
394
+ '_offsetTop',
395
+ smalltalk.method({
396
+ selector: 'offsetTop',
397
+ category: 'css',
398
+ fn: function (){
399
+ var self=this;
400
+ return smalltalk.send(smalltalk.send(self, "_call_", ["offset"]), "_basicAt_", ["top"]);
401
+ return self;},
402
+ 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'),
403
+ messageSends: ["basicAt:", "call:"],
404
+ referencedClasses: []
405
+ }),
406
+ smalltalk.JQuery);
407
+
408
+ smalltalk.addMethod(
409
+ '_scrollLeft',
410
+ smalltalk.method({
411
+ selector: 'scrollLeft',
412
+ category: 'css',
413
+ fn: function (){
414
+ var self=this;
415
+ return smalltalk.send(self, "_call_", ["scrollLeft"]);
416
+ return self;},
417
+ 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'),
418
+ messageSends: ["call:"],
419
+ referencedClasses: []
420
+ }),
421
+ smalltalk.JQuery);
422
+
423
+ smalltalk.addMethod(
424
+ '_scrollTop',
425
+ smalltalk.method({
426
+ selector: 'scrollTop',
427
+ category: 'css',
428
+ fn: function (){
429
+ var self=this;
430
+ return smalltalk.send(self, "_call_", ["scrollTop"]);
431
+ return self;},
432
+ 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'),
433
+ messageSends: ["call:"],
434
+ referencedClasses: []
435
+ }),
436
+ smalltalk.JQuery);
437
+
438
+ smalltalk.addMethod(
439
+ '_scrollLeft_',
440
+ smalltalk.method({
441
+ selector: 'scrollLeft:',
442
+ category: 'css',
443
+ fn: function (anInteger){
444
+ var self=this;
445
+ smalltalk.send(self, "_call_withArgument_", ["scrollLeft", anInteger]);
446
+ return self;},
447
+ source: unescape('scrollLeft%3A%20anInteger%0A%20%20%20%20self%20call%3A%20%27scrollLeft%27%20withArgument%3A%20anInteger'),
448
+ messageSends: ["call:withArgument:"],
449
+ referencedClasses: []
450
+ }),
451
+ smalltalk.JQuery);
452
+
453
+ smalltalk.addMethod(
454
+ '_scrollTop_',
455
+ smalltalk.method({
456
+ selector: 'scrollTop:',
457
+ category: 'css',
458
+ fn: function (anInteger){
459
+ var self=this;
460
+ smalltalk.send(self, "_call_withArgument_", ["scrollTop", anInteger]);
461
+ return self;},
462
+ source: unescape('scrollTop%3A%20anInteger%0A%20%20%20%20self%20call%3A%20%27scrollTop%27%20withArgument%3A%20anInteger'),
463
+ messageSends: ["call:withArgument:"],
464
+ referencedClasses: []
465
+ }),
466
+ smalltalk.JQuery);
467
+
468
+ smalltalk.addMethod(
469
+ '_focus',
470
+ smalltalk.method({
471
+ selector: 'focus',
472
+ category: 'events',
473
+ fn: function (){
474
+ var self=this;
475
+ smalltalk.send(self, "_call_", ["focus"]);
476
+ return self;},
477
+ source: unescape('focus%0A%20%20%20%20self%20call%3A%20%27focus%27'),
478
+ messageSends: ["call:"],
479
+ referencedClasses: []
480
+ }),
481
+ smalltalk.JQuery);
482
+
483
+ smalltalk.addMethod(
484
+ '_show',
485
+ smalltalk.method({
486
+ selector: 'show',
487
+ category: 'events',
488
+ fn: function (){
489
+ var self=this;
490
+ smalltalk.send(self, "_call_", ["show"]);
491
+ return self;},
492
+ source: unescape('show%0A%20%20%20%20self%20call%3A%20%27show%27'),
493
+ messageSends: ["call:"],
494
+ referencedClasses: []
495
+ }),
496
+ smalltalk.JQuery);
497
+
498
+ smalltalk.addMethod(
499
+ '_hide',
500
+ smalltalk.method({
501
+ selector: 'hide',
502
+ category: 'events',
503
+ fn: function (){
504
+ var self=this;
505
+ smalltalk.send(self, "_call_", ["hide"]);
506
+ return self;},
507
+ source: unescape('hide%0A%20%20%20%20self%20call%3A%20%27hide%27'),
508
+ messageSends: ["call:"],
509
+ referencedClasses: []
510
+ }),
511
+ smalltalk.JQuery);
512
+
513
+ smalltalk.addMethod(
514
+ '_remove',
515
+ smalltalk.method({
516
+ selector: 'remove',
517
+ category: 'events',
518
+ fn: function (){
519
+ var self=this;
520
+ smalltalk.send(self, "_call_", ["remove"]);
521
+ return self;},
522
+ source: unescape('remove%0A%20%20%20%20self%20call%3A%20%27remove%27'),
523
+ messageSends: ["call:"],
524
+ referencedClasses: []
525
+ }),
526
+ smalltalk.JQuery);
527
+
528
+ smalltalk.addMethod(
529
+ '_on_do_',
530
+ smalltalk.method({
531
+ selector: 'on:do:',
532
+ category: 'events',
533
+ fn: function (anEventString, aBlock){
534
+ var self=this;
535
+ self['@jquery'].bind(anEventString, function(e){aBlock(e, self)});
536
+ return self;},
537
+ 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'),
538
+ messageSends: [],
539
+ referencedClasses: []
540
+ }),
541
+ smalltalk.JQuery);
542
+
543
+ smalltalk.addMethod(
544
+ '_removeEvents_',
545
+ smalltalk.method({
546
+ selector: 'removeEvents:',
547
+ category: 'events',
548
+ fn: function (aString){
549
+ var self=this;
550
+ smalltalk.send(self, "_call_withArgument_", ["unbind", aString]);
551
+ return self;},
552
+ 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'),
553
+ messageSends: ["call:withArgument:"],
554
+ referencedClasses: []
555
+ }),
556
+ smalltalk.JQuery);
557
+
558
+ smalltalk.addMethod(
559
+ '_initializeWithJQueryObject_',
560
+ smalltalk.method({
561
+ selector: 'initializeWithJQueryObject:',
562
+ category: 'initialization',
563
+ fn: function (anObject){
564
+ var self=this;
565
+ self['@jquery']=anObject;
566
+ return self;},
567
+ source: unescape('initializeWithJQueryObject%3A%20anObject%0A%20%20%20%20jquery%20%3A%3D%20anObject'),
568
+ messageSends: [],
569
+ referencedClasses: []
570
+ }),
571
+ smalltalk.JQuery);
572
+
573
+ smalltalk.addMethod(
574
+ '_call_',
575
+ smalltalk.method({
576
+ selector: 'call:',
577
+ category: 'private',
578
+ fn: function (aString){
579
+ var self=this;
580
+ return self['@jquery'][aString]();
581
+ return self;},
582
+ source: unescape('call%3A%20aString%0A%09%3Creturn%20self%5B%27@jquery%27%5D%5BaString%5D%28%29%3E'),
583
+ messageSends: [],
584
+ referencedClasses: []
585
+ }),
586
+ smalltalk.JQuery);
587
+
588
+ smalltalk.addMethod(
589
+ '_call_withArgument_',
590
+ smalltalk.method({
591
+ selector: 'call:withArgument:',
592
+ category: 'private',
593
+ fn: function (aString, anObject){
594
+ var self=this;
595
+ return self['@jquery'][aString](anObject);
596
+ return self;},
597
+ 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'),
598
+ messageSends: [],
599
+ referencedClasses: []
600
+ }),
601
+ smalltalk.JQuery);
602
+
603
+ smalltalk.addMethod(
604
+ '_hasClass_',
605
+ smalltalk.method({
606
+ selector: 'hasClass:',
607
+ category: 'testing',
608
+ fn: function (aString){
609
+ var self=this;
610
+ return smalltalk.send(self, "_call_withArgument_", ["hasClass", aString]);
611
+ return self;},
612
+ 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'),
613
+ messageSends: ["call:withArgument:"],
614
+ referencedClasses: []
615
+ }),
616
+ smalltalk.JQuery);
617
+
618
+
619
+ smalltalk.addMethod(
620
+ '_fromString_',
621
+ smalltalk.method({
622
+ selector: 'fromString:',
623
+ category: 'instance creation',
624
+ fn: function (aString){
625
+ var self=this;
626
+ var newJQuery=nil;
627
+ newJQuery = jQuery(String(aString));
628
+ return smalltalk.send(self, "_from_", [newJQuery]);
629
+ return self;},
630
+ 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'),
631
+ messageSends: ["from:"],
632
+ referencedClasses: []
633
+ }),
634
+ smalltalk.JQuery.klass);
635
+
636
+ smalltalk.addMethod(
637
+ '_from_',
638
+ smalltalk.method({
639
+ selector: 'from:',
640
+ category: 'instance creation',
641
+ fn: function (anObject){
642
+ var self=this;
643
+ return (function($rec){smalltalk.send($rec, "_initializeWithJQueryObject_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
644
+ return self;},
645
+ source: unescape('from%3A%20anObject%0A%20%20%20%20%5Eself%20new%0A%09initializeWithJQueryObject%3A%20anObject%3B%0A%09yourself'),
646
+ messageSends: ["initializeWithJQueryObject:", "yourself", "new"],
647
+ referencedClasses: []
648
+ }),
649
+ smalltalk.JQuery.klass);
650
+
651
+ smalltalk.addMethod(
652
+ '_window',
653
+ smalltalk.method({
654
+ selector: 'window',
655
+ category: 'instance creation',
656
+ fn: function (){
657
+ var self=this;
658
+ return self._from_(jQuery(window));
659
+ return self;},
660
+ source: unescape('window%0A%09%3Creturn%20self._from_%28jQuery%28window%29%29%3E'),
661
+ messageSends: [],
662
+ referencedClasses: []
663
+ }),
664
+ smalltalk.JQuery.klass);
665
+
666
+ smalltalk.addMethod(
667
+ '_body',
668
+ smalltalk.method({
669
+ selector: 'body',
670
+ category: 'instance creation',
671
+ fn: function (){
672
+ var self=this;
673
+ return self._from_(jQuery('body'));
674
+ return self;},
675
+ source: unescape('body%0A%09%3Creturn%20self._from_%28jQuery%28%27body%27%29%29%3E'),
676
+ messageSends: [],
677
+ referencedClasses: []
678
+ }),
679
+ smalltalk.JQuery.klass);
680
+
681
+ smalltalk.addMethod(
682
+ '_document',
683
+ smalltalk.method({
684
+ selector: 'document',
685
+ category: 'instance creation',
686
+ fn: function (){
687
+ var self=this;
688
+ return self._from_(jQuery(document));
689
+ return self;},
690
+ source: unescape('document%0A%09%3Creturn%20self._from_%28jQuery%28document%29%29%3E'),
691
+ messageSends: [],
692
+ referencedClasses: []
693
+ }),
694
+ smalltalk.JQuery.klass);
695
+
696
+ smalltalk.addMethod(
697
+ '_fromElement_',
698
+ smalltalk.method({
699
+ selector: 'fromElement:',
700
+ category: 'instance creation',
701
+ fn: function (anElement){
702
+ var self=this;
703
+ var newJQuery=nil;
704
+ newJQuery = jQuery(anElement);
705
+ return smalltalk.send(self, "_from_", [newJQuery]);
706
+ return self;},
707
+ 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'),
708
+ messageSends: ["from:"],
709
+ referencedClasses: []
710
+ }),
711
+ smalltalk.JQuery.klass);
712
+
713
+ smalltalk.addMethod(
714
+ '_documentReady_',
715
+ smalltalk.method({
716
+ selector: 'documentReady:',
717
+ category: 'instance creation',
718
+ fn: function (aBlock){
719
+ var self=this;
720
+ jQuery(document).ready(aBlock);
721
+ return self;},
722
+ source: unescape('documentReady%3A%20aBlock%0A%09%3CjQuery%28document%29.ready%28aBlock%29%3E'),
723
+ messageSends: [],
724
+ referencedClasses: []
725
+ }),
726
+ smalltalk.JQuery.klass);
727
+
728
+
729
+ smalltalk.addClass('Ajax', smalltalk.Object, ['settings'], 'JQuery');
730
+ 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/')
731
+ smalltalk.addMethod(
732
+ '_at_',
733
+ smalltalk.method({
734
+ selector: 'at:',
735
+ category: 'accessing',
736
+ fn: function (aKey){
737
+ var self=this;
738
+ return smalltalk.send(self['@settings'], "_at_ifAbsent_", [aKey, (function(){return nil;})]);
739
+ return self;},
740
+ source: unescape('at%3A%20aKey%0A%20%20%20%20%5Esettings%20at%3A%20aKey%20ifAbsent%3A%20%5Bnil%5D'),
741
+ messageSends: ["at:ifAbsent:"],
742
+ referencedClasses: []
743
+ }),
744
+ smalltalk.Ajax);
745
+
746
+ smalltalk.addMethod(
747
+ '_at_put_',
748
+ smalltalk.method({
749
+ selector: 'at:put:',
750
+ category: 'accessing',
751
+ fn: function (aKey, aValue){
752
+ var self=this;
753
+ smalltalk.send(self['@settings'], "_at_put_", [aKey, aValue]);
754
+ return self;},
755
+ source: unescape('at%3A%20aKey%20put%3A%20aValue%0A%20%20%20%20settings%20at%3A%20aKey%20put%3A%20aValue'),
756
+ messageSends: ["at:put:"],
757
+ referencedClasses: []
758
+ }),
759
+ smalltalk.Ajax);
760
+
761
+ smalltalk.addMethod(
762
+ '_url',
763
+ smalltalk.method({
764
+ selector: 'url',
765
+ category: 'accessing',
766
+ fn: function (){
767
+ var self=this;
768
+ return smalltalk.send(self, "_at_", ["url"]);
769
+ return self;},
770
+ source: unescape('url%0A%20%20%20%20%5Eself%20at%3A%20%27url%27'),
771
+ messageSends: ["at:"],
772
+ referencedClasses: []
773
+ }),
774
+ smalltalk.Ajax);
775
+
776
+ smalltalk.addMethod(
777
+ '_url_',
778
+ smalltalk.method({
779
+ selector: 'url:',
780
+ category: 'accessing',
781
+ fn: function (aString){
782
+ var self=this;
783
+ smalltalk.send(self, "_at_put_", ["url", aString]);
784
+ return self;},
785
+ source: unescape('url%3A%20aString%0A%20%20%20%20self%20at%3A%20%27url%27%20put%3A%20aString'),
786
+ messageSends: ["at:put:"],
787
+ referencedClasses: []
788
+ }),
789
+ smalltalk.Ajax);
790
+
791
+ smalltalk.addMethod(
792
+ '_send',
793
+ smalltalk.method({
794
+ selector: 'send',
795
+ category: 'actions',
796
+ fn: function (){
797
+ var self=this;
798
+ jQuery.ajax(self['@settings']);
799
+ return self;},
800
+ source: unescape('send%0A%20%20%20%20%3CjQuery.ajax%28self%5B%27@settings%27%5D%29%3E'),
801
+ messageSends: [],
802
+ referencedClasses: []
803
+ }),
804
+ smalltalk.Ajax);
805
+
806
+ smalltalk.addMethod(
807
+ '_initialize',
808
+ smalltalk.method({
809
+ selector: 'initialize',
810
+ category: 'initialization',
811
+ fn: function (){
812
+ var self=this;
813
+ smalltalk.send(self, "_initialize", [], smalltalk.Object);
814
+ self['@settings']=smalltalk.send(smalltalk.Dictionary, "_new", []);
815
+ return self;},
816
+ source: unescape('initialize%0A%20%20%20%20super%20initialize.%0A%20%20%20%20settings%20%3A%3D%20Dictionary%20new'),
817
+ messageSends: ["initialize", "new"],
818
+ referencedClasses: [smalltalk.Dictionary]
819
+ }),
820
+ smalltalk.Ajax);
821
+
822
+
823
+ smalltalk.addMethod(
824
+ '_url_',
825
+ smalltalk.method({
826
+ selector: 'url:',
827
+ category: 'instance creation',
828
+ fn: function (aString){
829
+ var self=this;
830
+ return (function($rec){smalltalk.send($rec, "_url_", [aString]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
831
+ return self;},
832
+ source: unescape('url%3A%20aString%0A%20%20%20%20%5Eself%20new%0A%09url%3A%20aString%3B%0A%09yourself'),
833
+ messageSends: ["url:", "yourself", "new"],
834
+ referencedClasses: []
835
+ }),
836
+ smalltalk.Ajax.klass);
837
+
838
+
839
+ smalltalk.addMethod(
840
+ '_appendToJQuery_',
841
+ smalltalk.method({
842
+ selector: 'appendToJQuery:',
843
+ category: '*JQuery',
844
+ fn: function (aJQuery){
845
+ var self=this;
846
+ smalltalk.send(self, "_value_", [smalltalk.send(smalltalk.HTMLCanvas, "_onJQuery_", [aJQuery])]);
847
+ return self;},
848
+ source: unescape('appendToJQuery%3A%20aJQuery%0A%09self%20value%3A%20%28HTMLCanvas%20onJQuery%3A%20aJQuery%29'),
849
+ messageSends: ["value:", "onJQuery:"],
850
+ referencedClasses: [smalltalk.HTMLCanvas]
851
+ }),
852
+ smalltalk.BlockClosure);
853
+
854
+ smalltalk.addMethod(
855
+ '_asJQuery',
856
+ smalltalk.method({
857
+ selector: 'asJQuery',
858
+ category: '*JQuery',
859
+ fn: function (){
860
+ var self=this;
861
+ return smalltalk.send(smalltalk.JQuery, "_fromString_", [self]);
862
+ return self;},
863
+ source: unescape('asJQuery%0A%20%20%20%20%5EJQuery%20fromString%3A%20self'),
864
+ messageSends: ["fromString:"],
865
+ referencedClasses: [smalltalk.JQuery]
866
+ }),
867
+ smalltalk.String);
868
+
869
+ smalltalk.addMethod(
870
+ '_appendToJQuery_',
871
+ smalltalk.method({
872
+ selector: 'appendToJQuery:',
873
+ category: '*JQuery',
874
+ fn: function (aJQuery){
875
+ var self=this;
876
+ aJQuery._appendElement_(String(self));
877
+ return self;},
878
+ source: unescape('appendToJQuery%3A%20aJQuery%0A%20%20%20%20%3CaJQuery._appendElement_%28String%28self%29%29%3E'),
879
+ messageSends: [],
880
+ referencedClasses: []
881
+ }),
882
+ smalltalk.String);
883
+
884
+ smalltalk.addMethod(
885
+ '_appendToJQuery_',
886
+ smalltalk.method({
887
+ selector: 'appendToJQuery:',
888
+ category: '*JQuery',
889
+ fn: function (aJQuery){
890
+ var self=this;
891
+ smalltalk.send(aJQuery, "_appendElement_", [smalltalk.send(self['@root'], "_element", [])]);
892
+ return self;},
893
+ source: unescape('appendToJQuery%3A%20aJQuery%0A%20%20%20%20aJQuery%20appendElement%3A%20root%20element'),
894
+ messageSends: ["appendElement:", "element"],
895
+ referencedClasses: []
896
+ }),
897
+ smalltalk.HTMLCanvas);
898
+