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,159 @@
1
+ smalltalk.addClass('Benchfib', smalltalk.Object, [], 'Benchfib');
2
+
3
+ smalltalk.addMethod(
4
+ '_main',
5
+ smalltalk.method({
6
+ selector: 'main',
7
+ category: 'not yet classified',
8
+ fn: function (){
9
+ var self=this;
10
+ var result=nil;
11
+ result=smalltalk.send((0), "_tinyBenchmarks", []);
12
+ smalltalk.send(console, "_log_", [smalltalk.send(unescape("0%20tinyBenchmarks%20%3D%3E%20"), "__plus", [result])]);
13
+ return self;},
14
+ source: unescape('main%0A%0A%09%7C%20result%20%7C%0A%09result%20%3A%3D%200%20tinyBenchmarks.%0A%09console%20log%3A%20%270%20tinyBenchmarks%20%3D%3E%20%27%20+%20result'),
15
+ messageSends: ["tinyBenchmarks", "log:", unescape("+")],
16
+ referencedClasses: []
17
+ }),
18
+ smalltalk.Benchfib.klass);
19
+
20
+
21
+ smalltalk.addMethod(
22
+ '_benchFib',
23
+ smalltalk.method({
24
+ selector: 'benchFib',
25
+ category: '*Benchfib',
26
+ fn: function (){
27
+ var self=this;
28
+ return smalltalk.send(smalltalk.send(self, "__lt", [(2)]), "_ifTrue_ifFalse_", [(function(){return (1);}), (function(){return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "__minus", [(1)]), "_benchFib", []), "__plus", [smalltalk.send(smalltalk.send(self, "__minus", [(2)]), "_benchFib", [])]), "__plus", [(1)]);})]);
29
+ return self;},
30
+ source: unescape('benchFib%0A%09%22Handy%20send-heavy%20benchmark%22%0A%09%22%28result%20//%20seconds%20to%20run%29%20%3D%20approx%20calls%20per%20second%22%0A%09%22%20%7C%20r%20t%20%7C%0A%09%20%20t%20%3A%3D%20Time%20millisecondsToRun%3A%20%5Br%20%3A%3D%2026%20benchFib%5D.%0A%09%20%20%28r%20*%201000%29%20//%20t%22%0A%09%22138000%20on%20a%20Mac%208100/100%22%0A%09%5E%20self%20%3C%202%0A%09%09ifTrue%3A%20%5B1%5D%20%0A%09%09ifFalse%3A%20%5B%28self-1%29%20benchFib%20+%20%28self-2%29%20benchFib%20+%201%5D'),
31
+ messageSends: ["ifTrue:ifFalse:", unescape("%3C"), unescape("+"), "benchFib", unescape("-")],
32
+ referencedClasses: []
33
+ }),
34
+ smalltalk.Number);
35
+
36
+ smalltalk.addMethod(
37
+ '_benchmark',
38
+ smalltalk.method({
39
+ selector: 'benchmark',
40
+ category: '*Benchfib',
41
+ fn: function (){
42
+ var self=this;
43
+ var size=nil;
44
+ var flags=nil;
45
+ var prime=nil;
46
+ var k=nil;
47
+ var count=nil;
48
+ size=(8190);
49
+ smalltalk.send((1), "_to_do_", [self, (function(iter){count=(0);flags=smalltalk.send(smalltalk.Array, "_new", []);smalltalk.send(size, "_timesRepeat_", [(function(){return smalltalk.send(flags, "_add_", [true]);})]);return smalltalk.send((1), "_to_do_", [size, (function(i){return smalltalk.send(smalltalk.send(flags, "_at_", [i]), "_ifTrue_", [(function(){prime=smalltalk.send(i, "__plus", [(1)]);k=smalltalk.send(i, "__plus", [prime]);smalltalk.send((function(){return smalltalk.send(k, "__lt_eq", [size]);}), "_whileTrue_", [(function(){smalltalk.send(flags, "_at_put_", [k, false]);return k=smalltalk.send(k, "__plus", [prime]);})]);return count=smalltalk.send(count, "__plus", [(1)]);})]);})]);})]);
50
+ return count;
51
+ return self;},
52
+ source: unescape('benchmark%20%20%22Handy%20bytecode-heavy%20benchmark%22%0A%09%22%28500000%20//%20time%20to%20run%29%20%3D%20approx%20bytecodes%20per%20second%22%0A%09%225000000%20//%20%28Time%20millisecondsToRun%3A%20%5B10%20benchmark%5D%29%20*%201000%22%0A%09%223059000%20on%20a%20Mac%208100/100%22%0A%20%20%20%20%7C%20size%20flags%20prime%20k%20count%20%7C%0A%20%20%20%20size%20%3A%3D%208190.%0A%20%20%20%201%20to%3A%20self%20do%3A%0A%20%20%20%20%20%20%20%20%5B%3Aiter%20%7C%0A%20%20%20%20%20%20%20%20count%20%3A%3D%200.%0A%20%20%20%20%20%20%20%20flags%20%3A%3D%20Array%20new.%0A%20%20%20%20%20%20%20%20size%20timesRepeat%3A%20%5B%20flags%20add%3A%20true%5D.%0A%20%20%20%20%20%20%20%201%20to%3A%20size%20do%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20%5B%3Ai%20%7C%20%28flags%20at%3A%20i%29%20ifTrue%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5Bprime%20%3A%3D%20i+1.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20k%20%3A%3D%20i%20+%20prime.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5Bk%20%3C%3D%20size%5D%20whileTrue%3A%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5Bflags%20at%3A%20k%20put%3A%20false.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20k%20%3A%3D%20k%20+%20prime%5D.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20count%20%3A%3D%20count%20+%201%5D%5D%5D.%0A%20%20%20%20%5E%20count'),
53
+ messageSends: ["to:do:", "new", "timesRepeat:", "add:", "ifTrue:", "at:", unescape("+"), "whileTrue:", unescape("%3C%3D"), "at:put:"],
54
+ referencedClasses: [smalltalk.Array]
55
+ }),
56
+ smalltalk.Number);
57
+
58
+ smalltalk.addMethod(
59
+ '_tinyBenchmarks',
60
+ smalltalk.method({
61
+ selector: 'tinyBenchmarks',
62
+ category: '*Benchfib',
63
+ fn: function (){
64
+ var self=this;
65
+ var t1=nil;
66
+ var t2=nil;
67
+ var r=nil;
68
+ var n1=nil;
69
+ var n2=nil;
70
+ n1=(1);
71
+ smalltalk.send((function(){t1=smalltalk.send(smalltalk.Date, "_millisecondsToRun_", [(function(){return smalltalk.send(n1, "_benchmark", []);})]);return smalltalk.send(t1, "__lt", [(1000)]);}), "_whileTrue_", [(function(){return n1=smalltalk.send(n1, "__star", [(2)]);})]);
72
+ n2=(28);
73
+ smalltalk.send((function(){t2=smalltalk.send(smalltalk.Date, "_millisecondsToRun_", [(function(){return r=smalltalk.send(n2, "_benchFib", []);})]);return smalltalk.send(t2, "__lt", [(1000)]);}), "_whileTrue_", [(function(){return n2=smalltalk.send(n2, "__plus", [(1)]);})]);
74
+ return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(n1, "__star", [(500000)]), "__star", [(1000)]), "__slash", [t1]), "_printString", []), "__comma", [unescape("%20bytecodes/sec%3B%20")]), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send(r, "__star", [(1000)]), "__slash", [t2]), "_printString", [])]), "__comma", [unescape("%20sends/sec")]);
75
+ return self;},
76
+ source: unescape('tinyBenchmarks%0A%09%22Report%20the%20results%20of%20running%20the%20two%20tiny%20Squeak%20benchmarks.%0A%09ar%209/10/1999%3A%20Adjusted%20to%20run%20at%20least%201%20sec%20to%20get%20more%20stable%20results%22%0A%09%220%20tinyBenchmarks%22%0A%09%22On%20a%20292%20MHz%20G3%20Mac%3A%2022727272%20bytecodes/sec%3B%20984169%20sends/sec%22%0A%09%22On%20a%20400%20MHz%20PII/Win98%3A%20%2018028169%20bytecodes/sec%3B%201081272%20sends/sec%22%0A%09%7C%20t1%20t2%20r%20n1%20n2%20%7C%0A%09n1%20%3A%3D%201.%0A%09%5Bt1%20%3A%3D%20Date%20millisecondsToRun%3A%20%5Bn1%20benchmark%5D.%0A%09t1%20%3C%201000%5D%20whileTrue%3A%5Bn1%20%3A%3D%20n1%20*%202%5D.%20%22Note%3A%20%23benchmark%27s%20runtime%20is%20about%20O%28n%29%22%0A%0A%09n2%20%3A%3D%2028.%0A%09%5Bt2%20%3A%3D%20Date%20millisecondsToRun%3A%20%5Br%20%3A%3D%20n2%20benchFib%5D.%0A%09t2%20%3C%201000%5D%20whileTrue%3A%5Bn2%20%3A%3D%20n2%20+%201%5D.%20%0A%09%22Note%3A%20%23benchFib%27s%20runtime%20is%20about%20O%28k%5En%29%2C%0A%09%09where%20k%20is%20the%20golden%20number%20%3D%20%281%20+%205%20sqrt%29%20/%202%20%3D%201.618....%22%0A%0A%09%5E%20%28%28n1%20*%20500000%20*%201000%29%20/%20t1%29%20printString%2C%20%27%20bytecodes/sec%3B%20%27%2C%0A%09%20%20%28%28r%20*%201000%29%20/%20t2%29%20printString%2C%20%27%20sends/sec%27'),
77
+ messageSends: ["whileTrue:", "millisecondsToRun:", "benchmark", unescape("%3C"), unescape("*"), "benchFib", unescape("+"), unescape("%2C"), "printString", unescape("/")],
78
+ referencedClasses: [smalltalk.Date]
79
+ }),
80
+ smalltalk.Number);
81
+
82
+ smalltalk.addMethod(
83
+ '_jsbenchFib',
84
+ smalltalk.method({
85
+ selector: 'jsbenchFib',
86
+ category: '*Benchfib',
87
+ fn: function (){
88
+ var self=this;
89
+ if (this < 2) {
90
+ return 1;
91
+ } else {
92
+ return (this-1)._jsbenchFib() + (this-2)._jsbenchFib() + 1;};
93
+ return self;},
94
+ source: unescape('jsbenchFib%0A%20%0A%09%3Cif%20%28this%20%3C%202%29%20%7B%0Areturn%201%3B%0A%7D%20else%20%7B%0Areturn%20%28this-1%29._jsbenchFib%28%29%20+%20%28this-2%29._jsbenchFib%28%29%20+%201%3B%7D%3E'),
95
+ messageSends: [],
96
+ referencedClasses: []
97
+ }),
98
+ smalltalk.Number);
99
+
100
+ smalltalk.addMethod(
101
+ '_jsbenchmark',
102
+ smalltalk.method({
103
+ selector: 'jsbenchmark',
104
+ category: '*Benchfib',
105
+ fn: function (){
106
+ var self=this;
107
+
108
+ var size = 8190;
109
+ var count;
110
+ for (var z=0;z<this;z++) {
111
+ count = 0;
112
+ var flags = new Array();
113
+ for (var p=0; p<size; p++) {
114
+ flags[p] = true;
115
+ }
116
+ for (var i=1;i<=size;i++) {
117
+ if (flags[i-1]) {
118
+ var prime = i+1;
119
+ var k = i + prime;
120
+ while (k <= size) {
121
+ flags[k-1] = false;
122
+ k = k + prime;
123
+ }
124
+ count = count + 1;
125
+ }
126
+ }
127
+ }
128
+ return count;
129
+ return self;},
130
+ source: unescape('jsbenchmark%0A%0A%3C%0Avar%20size%20%3D%208190%3B%0Avar%20count%3B%0Afor%20%28var%20z%3D0%3Bz%3Cthis%3Bz++%29%20%7B%0A%20%20count%20%3D%200%3B%0A%20%20var%20flags%20%3D%20new%20Array%28%29%3B%0A%20%20for%20%28var%20p%3D0%3B%20p%3Csize%3B%20p++%29%20%7B%0A%20%20%20%20flags%5Bp%5D%20%3D%20true%3B%0A%20%20%7D%0A%20%20for%20%28var%20i%3D1%3Bi%3C%3Dsize%3Bi++%29%20%7B%0A%20%20%20%20if%20%28flags%5Bi-1%5D%29%20%7B%0A%20%20%20%20%20%20var%20prime%20%3D%20i+1%3B%0A%20%20%20%20%20%20var%20k%20%3D%20i%20+%20prime%3B%0A%20%20%20%20%20%20while%20%28k%20%3C%3D%20size%29%20%7B%0A%20%20%20%20%20%20%20%20flags%5Bk-1%5D%20%3D%20false%3B%0A%20%20%20%20%20%20%20%20k%20%3D%20k%20+%20prime%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20count%20%3D%20count%20+%201%3B%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D%0Areturn%20count%3E'),
131
+ messageSends: [],
132
+ referencedClasses: []
133
+ }),
134
+ smalltalk.Number);
135
+
136
+ smalltalk.addMethod(
137
+ '_jstinyBenchmarks',
138
+ smalltalk.method({
139
+ selector: 'jstinyBenchmarks',
140
+ category: '*Benchfib',
141
+ fn: function (){
142
+ var self=this;
143
+ var t1=nil;
144
+ var t2=nil;
145
+ var r=nil;
146
+ var n1=nil;
147
+ var n2=nil;
148
+ n1=(1);
149
+ smalltalk.send((function(){t1=smalltalk.send(smalltalk.Date, "_millisecondsToRun_", [(function(){return smalltalk.send(n1, "_jsbenchmark", []);})]);return smalltalk.send(t1, "__lt", [(1000)]);}), "_whileTrue_", [(function(){return n1=smalltalk.send(n1, "__star", [(2)]);})]);
150
+ n2=(28);
151
+ smalltalk.send((function(){t2=smalltalk.send(smalltalk.Date, "_millisecondsToRun_", [(function(){return r=smalltalk.send(n2, "_jsbenchFib", []);})]);return smalltalk.send(t2, "__lt", [(1000)]);}), "_whileTrue_", [(function(){return n2=smalltalk.send(n2, "__plus", [(1)]);})]);
152
+ return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(n1, "__star", [(500000)]), "__star", [(1000)]), "__slash", [t1]), "_printString", []), "__comma", [unescape("%20bytecodes/sec%3B%20")]), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send(r, "__star", [(1000)]), "__slash", [t2]), "_printString", [])]), "__comma", [unescape("%20sends/sec")]);
153
+ return self;},
154
+ source: unescape('jstinyBenchmarks%0A%09%220%20jstinyBenchmarks%22%0A%0A%09%7C%20t1%20t2%20r%20n1%20n2%20%7C%0A%09n1%20%3A%3D%201.%0A%09%5Bt1%20%3A%3D%20Date%20millisecondsToRun%3A%20%5Bn1%20jsbenchmark%5D.%0A%09t1%20%3C%201000%5D%20whileTrue%3A%5Bn1%20%3A%3D%20n1%20*%202%5D.%20%22Note%3A%20%23benchmark%27s%20runtime%20is%20about%20O%28n%29%22%0A%0A%09n2%20%3A%3D%2028.%0A%09%5Bt2%20%3A%3D%20Date%20millisecondsToRun%3A%20%5Br%20%3A%3D%20n2%20jsbenchFib%5D.%0A%09t2%20%3C%201000%5D%20whileTrue%3A%5Bn2%20%3A%3D%20n2%20+%201%5D.%20%0A%09%22Note%3A%20%23jsbenchFib%27s%20runtime%20is%20about%20O%28k%5En%29%2C%0A%09%09where%20k%20is%20the%20golden%20number%20%3D%20%281%20+%205%20sqrt%29%20/%202%20%3D%201.618....%22%0A%0A%09%5E%20%28%28n1%20*%20500000%20*%201000%29%20/%20t1%29%20printString%2C%20%27%20bytecodes/sec%3B%20%27%2C%0A%09%20%20%28%28r%20*%201000%29%20/%20t2%29%20printString%2C%20%27%20sends/sec%27'),
155
+ messageSends: ["whileTrue:", "millisecondsToRun:", "jsbenchmark", unescape("%3C"), unescape("*"), "jsbenchFib", unescape("+"), unescape("%2C"), "printString", unescape("/")],
156
+ referencedClasses: [smalltalk.Date]
157
+ }),
158
+ smalltalk.Number);
159
+
@@ -0,0 +1,1479 @@
1
+ smalltalk.addClass('CanvasRenderingContext', smalltalk.Object, [], 'Canvas');
2
+ smalltalk.addMethod(
3
+ '_fillStyle_',
4
+ smalltalk.method({
5
+ selector: 'fillStyle:',
6
+ category: 'drawing paths',
7
+ fn: function (aString){
8
+ var self=this;
9
+ self.fillStyle = String(aString);
10
+ return self;},
11
+ source: unescape('fillStyle%3A%20aString%0A%09%3Cself.fillStyle%20%3D%20String%28aString%29%3E'),
12
+ messageSends: [],
13
+ referencedClasses: []
14
+ }),
15
+ smalltalk.CanvasRenderingContext);
16
+
17
+ smalltalk.addMethod(
18
+ '_beginPath',
19
+ smalltalk.method({
20
+ selector: 'beginPath',
21
+ category: 'drawing paths',
22
+ fn: function (){
23
+ var self=this;
24
+ self.beginPath();
25
+ return self;},
26
+ source: unescape('beginPath%0A%09%3Cself.beginPath%28%29%3E'),
27
+ messageSends: [],
28
+ referencedClasses: []
29
+ }),
30
+ smalltalk.CanvasRenderingContext);
31
+
32
+ smalltalk.addMethod(
33
+ '_closePath',
34
+ smalltalk.method({
35
+ selector: 'closePath',
36
+ category: 'drawing paths',
37
+ fn: function (){
38
+ var self=this;
39
+ self.closePath();
40
+ return self;},
41
+ source: unescape('closePath%0A%09%3Cself.closePath%28%29%3E'),
42
+ messageSends: [],
43
+ referencedClasses: []
44
+ }),
45
+ smalltalk.CanvasRenderingContext);
46
+
47
+ smalltalk.addMethod(
48
+ '_fill',
49
+ smalltalk.method({
50
+ selector: 'fill',
51
+ category: 'drawing paths',
52
+ fn: function (){
53
+ var self=this;
54
+ self.fill();
55
+ return self;},
56
+ source: unescape('fill%0A%09%3Cself.fill%28%29%3E'),
57
+ messageSends: [],
58
+ referencedClasses: []
59
+ }),
60
+ smalltalk.CanvasRenderingContext);
61
+
62
+ smalltalk.addMethod(
63
+ '_stroke',
64
+ smalltalk.method({
65
+ selector: 'stroke',
66
+ category: 'drawing paths',
67
+ fn: function (){
68
+ var self=this;
69
+ self.stroke();
70
+ return self;},
71
+ source: unescape('stroke%0A%09%3Cself.stroke%28%29%3E'),
72
+ messageSends: [],
73
+ referencedClasses: []
74
+ }),
75
+ smalltalk.CanvasRenderingContext);
76
+
77
+ smalltalk.addMethod(
78
+ '_moveTo_',
79
+ smalltalk.method({
80
+ selector: 'moveTo:',
81
+ category: 'drawing paths',
82
+ fn: function (aPoint){
83
+ var self=this;
84
+ self.moveTo(aPoint._x(), aPoint._y());
85
+ return self;},
86
+ source: unescape('moveTo%3A%20aPoint%0A%09%3Cself.moveTo%28aPoint._x%28%29%2C%20aPoint._y%28%29%29%3E'),
87
+ messageSends: [],
88
+ referencedClasses: []
89
+ }),
90
+ smalltalk.CanvasRenderingContext);
91
+
92
+ smalltalk.addMethod(
93
+ '_lineTo_',
94
+ smalltalk.method({
95
+ selector: 'lineTo:',
96
+ category: 'drawing paths',
97
+ fn: function (aPoint){
98
+ var self=this;
99
+ self.lineTo(aPoint._x(), aPoint._y());
100
+ return self;},
101
+ source: unescape('lineTo%3A%20aPoint%0A%09%3Cself.lineTo%28aPoint._x%28%29%2C%20aPoint._y%28%29%29%3E'),
102
+ messageSends: [],
103
+ referencedClasses: []
104
+ }),
105
+ smalltalk.CanvasRenderingContext);
106
+
107
+ smalltalk.addMethod(
108
+ '_arcTo_radius_startAngle_endAngle_anticlockwise_',
109
+ smalltalk.method({
110
+ selector: 'arcTo:radius:startAngle:endAngle:anticlockwise:',
111
+ category: 'drawing arcs',
112
+ fn: function (aPoint, aNumber, aNumber2, aNumber3, aBoolean){
113
+ var self=this;
114
+ self.arc(aPoint._x(), aPoint._y(), aNumber, aNumber2, aNumber3, aBoolean);
115
+ return self;},
116
+ source: unescape('arcTo%3A%20aPoint%20radius%3A%20aNumber%20startAngle%3A%20aNumber2%20endAngle%3A%20aNumber3%20anticlockwise%3A%20aBoolean%0A%09%3Cself.arc%28aPoint._x%28%29%2C%20aPoint._y%28%29%2C%20aNumber%2C%20aNumber2%2C%20aNumber3%2C%20aBoolean%29%3E'),
117
+ messageSends: [],
118
+ referencedClasses: []
119
+ }),
120
+ smalltalk.CanvasRenderingContext);
121
+
122
+ smalltalk.addMethod(
123
+ '_arcTo_radius_',
124
+ smalltalk.method({
125
+ selector: 'arcTo:radius:',
126
+ category: 'drawing arcs',
127
+ fn: function (aPoint, aNumber){
128
+ var self=this;
129
+ smalltalk.send(self, "_arcTo_radius_startAngle_endAngle_anticlockwise_", [aPoint, aNumber, (0), smalltalk.send(smalltalk.send(smalltalk.Number, "_pi", []), "__star", [(2)]), false]);
130
+ return self;},
131
+ source: unescape('arcTo%3A%20aPoint%20radius%3A%20aNumber%0A%09self%20arcTo%3A%20aPoint%20radius%3A%20aNumber%20startAngle%3A%200%20endAngle%3A%20Number%20pi%20*%202%20anticlockwise%3A%20false'),
132
+ messageSends: ["arcTo:radius:startAngle:endAngle:anticlockwise:", unescape("*"), "pi"],
133
+ referencedClasses: [smalltalk.Number]
134
+ }),
135
+ smalltalk.CanvasRenderingContext);
136
+
137
+ smalltalk.addMethod(
138
+ '_fillRectFrom_to_',
139
+ smalltalk.method({
140
+ selector: 'fillRectFrom:to:',
141
+ category: 'drawing rectangles',
142
+ fn: function (aPoint, anotherPoint){
143
+ var self=this;
144
+ self.fillRect(aPoint._x(), aPoint._y(), anotherPoint._x(), anotherPoint._y());
145
+ return self;},
146
+ source: unescape('fillRectFrom%3A%20aPoint%20to%3A%20anotherPoint%0A%09%3Cself.fillRect%28aPoint._x%28%29%2C%20aPoint._y%28%29%2C%20anotherPoint._x%28%29%2C%20anotherPoint._y%28%29%29%3E'),
147
+ messageSends: [],
148
+ referencedClasses: []
149
+ }),
150
+ smalltalk.CanvasRenderingContext);
151
+
152
+ smalltalk.addMethod(
153
+ '_strokeRectFrom_to_',
154
+ smalltalk.method({
155
+ selector: 'strokeRectFrom:to:',
156
+ category: 'drawing rectangles',
157
+ fn: function (aPoint, anotherPoint){
158
+ var self=this;
159
+ self.strokeRect(aPoint._x(), aPoint._y(), anotherPoint._x(), anotherPoint._y());
160
+ return self;},
161
+ source: unescape('strokeRectFrom%3A%20aPoint%20to%3A%20anotherPoint%0A%09%3Cself.strokeRect%28aPoint._x%28%29%2C%20aPoint._y%28%29%2C%20anotherPoint._x%28%29%2C%20anotherPoint._y%28%29%29%3E'),
162
+ messageSends: [],
163
+ referencedClasses: []
164
+ }),
165
+ smalltalk.CanvasRenderingContext);
166
+
167
+ smalltalk.addMethod(
168
+ '_clearRectFrom_to_',
169
+ smalltalk.method({
170
+ selector: 'clearRectFrom:to:',
171
+ category: 'drawing rectangles',
172
+ fn: function (aPoint, anotherPoint){
173
+ var self=this;
174
+ self.fillRect(aPoint._x(), aPoint._y(), anotherPoint._x(), anotherPoint._y());
175
+ return self;},
176
+ source: unescape('clearRectFrom%3A%20aPoint%20to%3A%20anotherPoint%0A%09%3Cself.fillRect%28aPoint._x%28%29%2C%20aPoint._y%28%29%2C%20anotherPoint._x%28%29%2C%20anotherPoint._y%28%29%29%3E'),
177
+ messageSends: [],
178
+ referencedClasses: []
179
+ }),
180
+ smalltalk.CanvasRenderingContext);
181
+
182
+ smalltalk.addMethod(
183
+ '_strokeStyle_',
184
+ smalltalk.method({
185
+ selector: 'strokeStyle:',
186
+ category: 'drawing paths',
187
+ fn: function (aString){
188
+ var self=this;
189
+ self.strokeStyle = String(aString);
190
+ return self;},
191
+ source: unescape('strokeStyle%3A%20aString%0A%09%3Cself.strokeStyle%20%3D%20String%28aString%29%3E'),
192
+ messageSends: [],
193
+ referencedClasses: []
194
+ }),
195
+ smalltalk.CanvasRenderingContext);
196
+
197
+ smalltalk.addMethod(
198
+ '_lineWidth_',
199
+ smalltalk.method({
200
+ selector: 'lineWidth:',
201
+ category: 'drawing paths',
202
+ fn: function (aNumber){
203
+ var self=this;
204
+ self.lineWidth = aNumber;
205
+ return self;},
206
+ source: unescape('lineWidth%3A%20aNumber%0A%09%3Cself.lineWidth%20%3D%20aNumber%3E'),
207
+ messageSends: [],
208
+ referencedClasses: []
209
+ }),
210
+ smalltalk.CanvasRenderingContext);
211
+
212
+
213
+ smalltalk.addMethod(
214
+ '_tagBrush_',
215
+ smalltalk.method({
216
+ selector: 'tagBrush:',
217
+ category: 'instance creation',
218
+ fn: function (aTagBrush){
219
+ var self=this;
220
+ return aTagBrush._element().getContext('2d');
221
+ return self;},
222
+ source: unescape('tagBrush%3A%20aTagBrush%0A%09%3Creturn%20aTagBrush._element%28%29.getContext%28%272d%27%29%3E'),
223
+ messageSends: [],
224
+ referencedClasses: []
225
+ }),
226
+ smalltalk.CanvasRenderingContext.klass);
227
+
228
+
229
+ smalltalk.addClass('HTMLCanvas', smalltalk.Object, ['root'], 'Canvas');
230
+ smalltalk.addMethod(
231
+ '_root_',
232
+ smalltalk.method({
233
+ selector: 'root:',
234
+ category: 'accessing',
235
+ fn: function (aTagBrush){
236
+ var self=this;
237
+ self['@root']=aTagBrush;
238
+ return self;},
239
+ source: unescape('root%3A%20aTagBrush%0A%20%20%20%20root%20%3A%3D%20aTagBrush'),
240
+ messageSends: [],
241
+ referencedClasses: []
242
+ }),
243
+ smalltalk.HTMLCanvas);
244
+
245
+ smalltalk.addMethod(
246
+ '_root',
247
+ smalltalk.method({
248
+ selector: 'root',
249
+ category: 'accessing',
250
+ fn: function (){
251
+ var self=this;
252
+ return self['@root'];
253
+ return self;},
254
+ source: unescape('root%0A%20%20%20%20%5Eroot'),
255
+ messageSends: [],
256
+ referencedClasses: []
257
+ }),
258
+ smalltalk.HTMLCanvas);
259
+
260
+ smalltalk.addMethod(
261
+ '_initialize',
262
+ smalltalk.method({
263
+ selector: 'initialize',
264
+ category: 'initialization',
265
+ fn: function (){
266
+ var self=this;
267
+ smalltalk.send(self, "_initialize", [], smalltalk.Object);
268
+ smalltalk.send(self['@root'], "_ifNil_", [(function(){return self['@root']=smalltalk.send(smalltalk.TagBrush, "_fromString_canvas_", ["div", self]);})]);
269
+ return self;},
270
+ source: unescape('initialize%0A%20%20%20%20super%20initialize.%0A%20%20%20%20root%20ifNil%3A%20%5Broot%20%3A%3D%20TagBrush%20fromString%3A%20%27div%27%20canvas%3A%20self%5D'),
271
+ messageSends: ["initialize", "ifNil:", "fromString:canvas:"],
272
+ referencedClasses: [smalltalk.nil]
273
+ }),
274
+ smalltalk.HTMLCanvas);
275
+
276
+ smalltalk.addMethod(
277
+ '_with_',
278
+ smalltalk.method({
279
+ selector: 'with:',
280
+ category: 'adding',
281
+ fn: function (anObject){
282
+ var self=this;
283
+ return smalltalk.send(smalltalk.send(self, "_root", []), "_with_", [anObject]);
284
+ return self;},
285
+ source: unescape('with%3A%20anObject%0A%20%20%20%20%5Eself%20root%20with%3A%20anObject'),
286
+ messageSends: ["with:", "root"],
287
+ referencedClasses: []
288
+ }),
289
+ smalltalk.HTMLCanvas);
290
+
291
+ smalltalk.addMethod(
292
+ '_newTag_',
293
+ smalltalk.method({
294
+ selector: 'newTag:',
295
+ category: 'tags',
296
+ fn: function (aString){
297
+ var self=this;
298
+ return smalltalk.send(smalltalk.TagBrush, "_fromString_canvas_", [aString, self]);
299
+ return self;},
300
+ source: unescape('newTag%3A%20aString%0A%20%20%20%20%5ETagBrush%20fromString%3A%20aString%20canvas%3A%20self'),
301
+ messageSends: ["fromString:canvas:"],
302
+ referencedClasses: [smalltalk.nil]
303
+ }),
304
+ smalltalk.HTMLCanvas);
305
+
306
+ smalltalk.addMethod(
307
+ '_tag_',
308
+ smalltalk.method({
309
+ selector: 'tag:',
310
+ category: 'tags',
311
+ fn: function (aString){
312
+ var self=this;
313
+ return smalltalk.send(self['@root'], "_addBrush_", [smalltalk.send(self, "_newTag_", [aString])]);
314
+ return self;},
315
+ source: unescape('tag%3A%20aString%0A%20%20%20%20%5Eroot%20addBrush%3A%20%28self%20newTag%3A%20aString%29'),
316
+ messageSends: ["addBrush:", "newTag:"],
317
+ referencedClasses: []
318
+ }),
319
+ smalltalk.HTMLCanvas);
320
+
321
+ smalltalk.addMethod(
322
+ '_h1',
323
+ smalltalk.method({
324
+ selector: 'h1',
325
+ category: 'tags',
326
+ fn: function (){
327
+ var self=this;
328
+ return smalltalk.send(self, "_tag_", ["h1"]);
329
+ return self;},
330
+ source: unescape('h1%0A%20%20%20%20%5Eself%20tag%3A%20%27h1%27'),
331
+ messageSends: ["tag:"],
332
+ referencedClasses: []
333
+ }),
334
+ smalltalk.HTMLCanvas);
335
+
336
+ smalltalk.addMethod(
337
+ '_h2',
338
+ smalltalk.method({
339
+ selector: 'h2',
340
+ category: 'tags',
341
+ fn: function (){
342
+ var self=this;
343
+ return smalltalk.send(self, "_tag_", ["h2"]);
344
+ return self;},
345
+ source: unescape('h2%0A%20%20%20%20%5Eself%20tag%3A%20%27h2%27'),
346
+ messageSends: ["tag:"],
347
+ referencedClasses: []
348
+ }),
349
+ smalltalk.HTMLCanvas);
350
+
351
+ smalltalk.addMethod(
352
+ '_h3',
353
+ smalltalk.method({
354
+ selector: 'h3',
355
+ category: 'tags',
356
+ fn: function (){
357
+ var self=this;
358
+ return smalltalk.send(self, "_tag_", ["h3"]);
359
+ return self;},
360
+ source: unescape('h3%0A%20%20%20%20%5Eself%20tag%3A%20%27h3%27'),
361
+ messageSends: ["tag:"],
362
+ referencedClasses: []
363
+ }),
364
+ smalltalk.HTMLCanvas);
365
+
366
+ smalltalk.addMethod(
367
+ '_h4',
368
+ smalltalk.method({
369
+ selector: 'h4',
370
+ category: 'tags',
371
+ fn: function (){
372
+ var self=this;
373
+ return smalltalk.send(self, "_tag_", ["h4"]);
374
+ return self;},
375
+ source: unescape('h4%0A%20%20%20%20%5Eself%20tag%3A%20%27h4%27'),
376
+ messageSends: ["tag:"],
377
+ referencedClasses: []
378
+ }),
379
+ smalltalk.HTMLCanvas);
380
+
381
+ smalltalk.addMethod(
382
+ '_h5',
383
+ smalltalk.method({
384
+ selector: 'h5',
385
+ category: 'tags',
386
+ fn: function (){
387
+ var self=this;
388
+ return smalltalk.send(self, "_tag_", ["h5"]);
389
+ return self;},
390
+ source: unescape('h5%0A%20%20%20%20%5Eself%20tag%3A%20%27h5%27'),
391
+ messageSends: ["tag:"],
392
+ referencedClasses: []
393
+ }),
394
+ smalltalk.HTMLCanvas);
395
+
396
+ smalltalk.addMethod(
397
+ '_h6',
398
+ smalltalk.method({
399
+ selector: 'h6',
400
+ category: 'tags',
401
+ fn: function (){
402
+ var self=this;
403
+ return smalltalk.send(self, "_tag_", ["h6"]);
404
+ return self;},
405
+ source: unescape('h6%0A%20%20%20%20%5Eself%20tag%3A%20%27h6%27'),
406
+ messageSends: ["tag:"],
407
+ referencedClasses: []
408
+ }),
409
+ smalltalk.HTMLCanvas);
410
+
411
+ smalltalk.addMethod(
412
+ '_p',
413
+ smalltalk.method({
414
+ selector: 'p',
415
+ category: 'tags',
416
+ fn: function (){
417
+ var self=this;
418
+ return smalltalk.send(self, "_tag_", ["p"]);
419
+ return self;},
420
+ source: unescape('p%0A%20%20%20%20%5Eself%20tag%3A%20%27p%27'),
421
+ messageSends: ["tag:"],
422
+ referencedClasses: []
423
+ }),
424
+ smalltalk.HTMLCanvas);
425
+
426
+ smalltalk.addMethod(
427
+ '_div',
428
+ smalltalk.method({
429
+ selector: 'div',
430
+ category: 'tags',
431
+ fn: function (){
432
+ var self=this;
433
+ return smalltalk.send(self, "_tag_", ["div"]);
434
+ return self;},
435
+ source: unescape('div%0A%20%20%20%20%5Eself%20tag%3A%20%27div%27'),
436
+ messageSends: ["tag:"],
437
+ referencedClasses: []
438
+ }),
439
+ smalltalk.HTMLCanvas);
440
+
441
+ smalltalk.addMethod(
442
+ '_span',
443
+ smalltalk.method({
444
+ selector: 'span',
445
+ category: 'tags',
446
+ fn: function (){
447
+ var self=this;
448
+ return smalltalk.send(self, "_tag_", ["span"]);
449
+ return self;},
450
+ source: unescape('span%0A%20%20%20%20%5Eself%20tag%3A%20%27span%27'),
451
+ messageSends: ["tag:"],
452
+ referencedClasses: []
453
+ }),
454
+ smalltalk.HTMLCanvas);
455
+
456
+ smalltalk.addMethod(
457
+ '_img',
458
+ smalltalk.method({
459
+ selector: 'img',
460
+ category: 'tags',
461
+ fn: function (){
462
+ var self=this;
463
+ return smalltalk.send(self, "_tag_", ["img"]);
464
+ return self;},
465
+ source: unescape('img%0A%20%20%20%20%5Eself%20tag%3A%20%27img%27'),
466
+ messageSends: ["tag:"],
467
+ referencedClasses: []
468
+ }),
469
+ smalltalk.HTMLCanvas);
470
+
471
+ smalltalk.addMethod(
472
+ '_ul',
473
+ smalltalk.method({
474
+ selector: 'ul',
475
+ category: 'tags',
476
+ fn: function (){
477
+ var self=this;
478
+ return smalltalk.send(self, "_tag_", ["ul"]);
479
+ return self;},
480
+ source: unescape('ul%0A%20%20%20%20%5Eself%20tag%3A%20%27ul%27'),
481
+ messageSends: ["tag:"],
482
+ referencedClasses: []
483
+ }),
484
+ smalltalk.HTMLCanvas);
485
+
486
+ smalltalk.addMethod(
487
+ '_ol',
488
+ smalltalk.method({
489
+ selector: 'ol',
490
+ category: 'tags',
491
+ fn: function (){
492
+ var self=this;
493
+ return smalltalk.send(self, "_tag_", ["ol"]);
494
+ return self;},
495
+ source: unescape('ol%0A%20%20%20%20%5Eself%20tag%3A%20%27ol%27'),
496
+ messageSends: ["tag:"],
497
+ referencedClasses: []
498
+ }),
499
+ smalltalk.HTMLCanvas);
500
+
501
+ smalltalk.addMethod(
502
+ '_li',
503
+ smalltalk.method({
504
+ selector: 'li',
505
+ category: 'tags',
506
+ fn: function (){
507
+ var self=this;
508
+ return smalltalk.send(self, "_tag_", ["li"]);
509
+ return self;},
510
+ source: unescape('li%0A%20%20%20%20%5Eself%20tag%3A%20%27li%27'),
511
+ messageSends: ["tag:"],
512
+ referencedClasses: []
513
+ }),
514
+ smalltalk.HTMLCanvas);
515
+
516
+ smalltalk.addMethod(
517
+ '_table',
518
+ smalltalk.method({
519
+ selector: 'table',
520
+ category: 'tags',
521
+ fn: function (){
522
+ var self=this;
523
+ return smalltalk.send(self, "_tag_", ["table"]);
524
+ return self;},
525
+ source: unescape('table%0A%20%20%20%20%5Eself%20tag%3A%20%27table%27'),
526
+ messageSends: ["tag:"],
527
+ referencedClasses: []
528
+ }),
529
+ smalltalk.HTMLCanvas);
530
+
531
+ smalltalk.addMethod(
532
+ '_tr',
533
+ smalltalk.method({
534
+ selector: 'tr',
535
+ category: 'tags',
536
+ fn: function (){
537
+ var self=this;
538
+ return smalltalk.send(self, "_tag_", ["tr"]);
539
+ return self;},
540
+ source: unescape('tr%0A%20%20%20%20%5Eself%20tag%3A%20%27tr%27'),
541
+ messageSends: ["tag:"],
542
+ referencedClasses: []
543
+ }),
544
+ smalltalk.HTMLCanvas);
545
+
546
+ smalltalk.addMethod(
547
+ '_td',
548
+ smalltalk.method({
549
+ selector: 'td',
550
+ category: 'tags',
551
+ fn: function (){
552
+ var self=this;
553
+ return smalltalk.send(self, "_tag_", ["td"]);
554
+ return self;},
555
+ source: unescape('td%20%0A%20%20%20%20%5Eself%20tag%3A%20%27td%27'),
556
+ messageSends: ["tag:"],
557
+ referencedClasses: []
558
+ }),
559
+ smalltalk.HTMLCanvas);
560
+
561
+ smalltalk.addMethod(
562
+ '_th',
563
+ smalltalk.method({
564
+ selector: 'th',
565
+ category: 'tags',
566
+ fn: function (){
567
+ var self=this;
568
+ return smalltalk.send(self, "_tag_", ["th"]);
569
+ return self;},
570
+ source: unescape('th%0A%20%20%20%20%5Eself%20tag%3A%20%27th%27'),
571
+ messageSends: ["tag:"],
572
+ referencedClasses: []
573
+ }),
574
+ smalltalk.HTMLCanvas);
575
+
576
+ smalltalk.addMethod(
577
+ '_form',
578
+ smalltalk.method({
579
+ selector: 'form',
580
+ category: 'tags',
581
+ fn: function (){
582
+ var self=this;
583
+ return smalltalk.send(self, "_tag_", ["form"]);
584
+ return self;},
585
+ source: unescape('form%0A%20%20%20%20%5Eself%20tag%3A%20%27form%27'),
586
+ messageSends: ["tag:"],
587
+ referencedClasses: []
588
+ }),
589
+ smalltalk.HTMLCanvas);
590
+
591
+ smalltalk.addMethod(
592
+ '_input',
593
+ smalltalk.method({
594
+ selector: 'input',
595
+ category: 'tags',
596
+ fn: function (){
597
+ var self=this;
598
+ return smalltalk.send(self, "_tag_", ["input"]);
599
+ return self;},
600
+ source: unescape('input%0A%20%20%20%20%5Eself%20tag%3A%20%27input%27'),
601
+ messageSends: ["tag:"],
602
+ referencedClasses: []
603
+ }),
604
+ smalltalk.HTMLCanvas);
605
+
606
+ smalltalk.addMethod(
607
+ '_button',
608
+ smalltalk.method({
609
+ selector: 'button',
610
+ category: 'tags',
611
+ fn: function (){
612
+ var self=this;
613
+ return smalltalk.send(self, "_tag_", ["button"]);
614
+ return self;},
615
+ source: unescape('button%0A%0A%20%20%20%20%5Eself%20tag%3A%20%27button%27'),
616
+ messageSends: ["tag:"],
617
+ referencedClasses: []
618
+ }),
619
+ smalltalk.HTMLCanvas);
620
+
621
+ smalltalk.addMethod(
622
+ '_select',
623
+ smalltalk.method({
624
+ selector: 'select',
625
+ category: 'tags',
626
+ fn: function (){
627
+ var self=this;
628
+ return smalltalk.send(self, "_tag_", ["select"]);
629
+ return self;},
630
+ source: unescape('select%0A%20%20%20%20%5Eself%20tag%3A%20%27select%27'),
631
+ messageSends: ["tag:"],
632
+ referencedClasses: []
633
+ }),
634
+ smalltalk.HTMLCanvas);
635
+
636
+ smalltalk.addMethod(
637
+ '_option',
638
+ smalltalk.method({
639
+ selector: 'option',
640
+ category: 'tags',
641
+ fn: function (){
642
+ var self=this;
643
+ return smalltalk.send(self, "_tag_", ["option"]);
644
+ return self;},
645
+ source: unescape('option%0A%20%20%20%20%5Eself%20tag%3A%20%27option%27'),
646
+ messageSends: ["tag:"],
647
+ referencedClasses: []
648
+ }),
649
+ smalltalk.HTMLCanvas);
650
+
651
+ smalltalk.addMethod(
652
+ '_textarea',
653
+ smalltalk.method({
654
+ selector: 'textarea',
655
+ category: 'tags',
656
+ fn: function (){
657
+ var self=this;
658
+ return smalltalk.send(self, "_tag_", ["textarea"]);
659
+ return self;},
660
+ source: unescape('textarea%0A%20%20%20%20%5Eself%20tag%3A%20%27textarea%27'),
661
+ messageSends: ["tag:"],
662
+ referencedClasses: []
663
+ }),
664
+ smalltalk.HTMLCanvas);
665
+
666
+ smalltalk.addMethod(
667
+ '_a',
668
+ smalltalk.method({
669
+ selector: 'a',
670
+ category: 'tags',
671
+ fn: function (){
672
+ var self=this;
673
+ return smalltalk.send(self, "_tag_", ["a"]);
674
+ return self;},
675
+ source: unescape('a%0A%20%20%20%20%5Eself%20tag%3A%20%27a%27'),
676
+ messageSends: ["tag:"],
677
+ referencedClasses: []
678
+ }),
679
+ smalltalk.HTMLCanvas);
680
+
681
+ smalltalk.addMethod(
682
+ '_canvas',
683
+ smalltalk.method({
684
+ selector: 'canvas',
685
+ category: 'tags',
686
+ fn: function (){
687
+ var self=this;
688
+ return smalltalk.send(self, "_tag_", ["canvas"]);
689
+ return self;},
690
+ source: unescape('canvas%0A%09%5Eself%20tag%3A%20%27canvas%27'),
691
+ messageSends: ["tag:"],
692
+ referencedClasses: []
693
+ }),
694
+ smalltalk.HTMLCanvas);
695
+
696
+ smalltalk.addMethod(
697
+ '_initializeFromJQuery_',
698
+ smalltalk.method({
699
+ selector: 'initializeFromJQuery:',
700
+ category: 'initialization',
701
+ fn: function (aJQuery){
702
+ var self=this;
703
+ self['@root']=smalltalk.send(smalltalk.TagBrush, "_fromJQuery_canvas_", [aJQuery, self]);
704
+ return self;},
705
+ source: unescape('initializeFromJQuery%3A%20aJQuery%0A%20%20%20%20root%20%3A%3D%20TagBrush%20fromJQuery%3A%20aJQuery%20canvas%3A%20self'),
706
+ messageSends: ["fromJQuery:canvas:"],
707
+ referencedClasses: [smalltalk.nil]
708
+ }),
709
+ smalltalk.HTMLCanvas);
710
+
711
+ smalltalk.addMethod(
712
+ '_pre',
713
+ smalltalk.method({
714
+ selector: 'pre',
715
+ category: 'tags',
716
+ fn: function (){
717
+ var self=this;
718
+ return smalltalk.send(self, "_tag_", ["pre"]);
719
+ return self;},
720
+ source: unescape('pre%0A%20%20%20%20%5Eself%20tag%3A%20%27pre%27'),
721
+ messageSends: ["tag:"],
722
+ referencedClasses: []
723
+ }),
724
+ smalltalk.HTMLCanvas);
725
+
726
+ smalltalk.addMethod(
727
+ '_code',
728
+ smalltalk.method({
729
+ selector: 'code',
730
+ category: 'tags',
731
+ fn: function (){
732
+ var self=this;
733
+ return smalltalk.send(self, "_tag_", ["code"]);
734
+ return self;},
735
+ source: unescape('code%0A%20%20%20%20%5Eself%20tag%3A%20%27code%27'),
736
+ messageSends: ["tag:"],
737
+ referencedClasses: []
738
+ }),
739
+ smalltalk.HTMLCanvas);
740
+
741
+ smalltalk.addMethod(
742
+ '_br',
743
+ smalltalk.method({
744
+ selector: 'br',
745
+ category: 'tags',
746
+ fn: function (){
747
+ var self=this;
748
+ return smalltalk.send(self, "_tag_", ["br"]);
749
+ return self;},
750
+ source: unescape('br%0A%20%20%20%20%5Eself%20tag%3A%20%27br%27'),
751
+ messageSends: ["tag:"],
752
+ referencedClasses: []
753
+ }),
754
+ smalltalk.HTMLCanvas);
755
+
756
+
757
+ smalltalk.addMethod(
758
+ '_onJQuery_',
759
+ smalltalk.method({
760
+ selector: 'onJQuery:',
761
+ category: 'instance creation',
762
+ fn: function (aJQuery){
763
+ var self=this;
764
+ return (function($rec){smalltalk.send($rec, "_initializeFromJQuery_", [aJQuery]);smalltalk.send($rec, "_initialize", []);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_basicNew", []));
765
+ return self;},
766
+ source: unescape('onJQuery%3A%20aJQuery%0A%09%5Eself%20basicNew%0A%09%09initializeFromJQuery%3A%20aJQuery%3B%0A%09%09initialize%3B%0A%09%09yourself'),
767
+ messageSends: ["initializeFromJQuery:", "initialize", "yourself", "basicNew"],
768
+ referencedClasses: []
769
+ }),
770
+ smalltalk.HTMLCanvas.klass);
771
+
772
+
773
+ smalltalk.addClass('TagBrush', smalltalk.Object, ['canvas', 'element'], 'Canvas');
774
+ smalltalk.addMethod(
775
+ '_contents_',
776
+ smalltalk.method({
777
+ selector: 'contents:',
778
+ category: 'adding',
779
+ fn: function (anObject){
780
+ var self=this;
781
+ smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_empty", []);
782
+ smalltalk.send(self, "_append_", [anObject]);
783
+ return self;},
784
+ source: unescape('contents%3A%20anObject%0A%20%20%20%20self%20asJQuery%20empty.%0A%20%20%20%20self%20append%3A%20anObject'),
785
+ messageSends: ["empty", "asJQuery", "append:"],
786
+ referencedClasses: []
787
+ }),
788
+ smalltalk.TagBrush);
789
+
790
+ smalltalk.addMethod(
791
+ '_addBrush_',
792
+ smalltalk.method({
793
+ selector: 'addBrush:',
794
+ category: 'adding',
795
+ fn: function (aTagBrush){
796
+ var self=this;
797
+ smalltalk.send(self, "_appendChild_", [smalltalk.send(aTagBrush, "_element", [])]);
798
+ return aTagBrush;
799
+ return self;},
800
+ source: unescape('addBrush%3A%20aTagBrush%0A%0A%20%20%20%20self%20appendChild%3A%20aTagBrush%20element.%0A%20%20%20%20%5EaTagBrush'),
801
+ messageSends: ["appendChild:", "element"],
802
+ referencedClasses: []
803
+ }),
804
+ smalltalk.TagBrush);
805
+
806
+ smalltalk.addMethod(
807
+ '_with_',
808
+ smalltalk.method({
809
+ selector: 'with:',
810
+ category: 'adding',
811
+ fn: function (anObject){
812
+ var self=this;
813
+ smalltalk.send(self, "_append_", [anObject]);
814
+ return self;},
815
+ source: unescape('with%3A%20anObject%0A%20%20%20%20self%20append%3A%20anObject'),
816
+ messageSends: ["append:"],
817
+ referencedClasses: []
818
+ }),
819
+ smalltalk.TagBrush);
820
+
821
+ smalltalk.addMethod(
822
+ '_append_',
823
+ smalltalk.method({
824
+ selector: 'append:',
825
+ category: 'adding',
826
+ fn: function (anObject){
827
+ var self=this;
828
+ smalltalk.send(anObject, "_appendToBrush_", [self]);
829
+ return self;},
830
+ source: unescape('append%3A%20anObject%0A%0A%0A%20%20%20%20anObject%20appendToBrush%3A%20self'),
831
+ messageSends: ["appendToBrush:"],
832
+ referencedClasses: []
833
+ }),
834
+ smalltalk.TagBrush);
835
+
836
+ smalltalk.addMethod(
837
+ '_appendToBrush_',
838
+ smalltalk.method({
839
+ selector: 'appendToBrush:',
840
+ category: 'adding',
841
+ fn: function (aTagBrush){
842
+ var self=this;
843
+ smalltalk.send(aTagBrush, "_addBrush_", [self]);
844
+ return self;},
845
+ source: unescape('appendToBrush%3A%20aTagBrush%0A%20%20%20%20aTagBrush%20addBrush%3A%20self'),
846
+ messageSends: ["addBrush:"],
847
+ referencedClasses: []
848
+ }),
849
+ smalltalk.TagBrush);
850
+
851
+ smalltalk.addMethod(
852
+ '_appendBlock_',
853
+ smalltalk.method({
854
+ selector: 'appendBlock:',
855
+ category: 'adding',
856
+ fn: function (aBlock){
857
+ var self=this;
858
+ var root=nil;
859
+ root=smalltalk.send(self['@canvas'], "_root", []);
860
+ smalltalk.send(self['@canvas'], "_root_", [self]);
861
+ smalltalk.send(aBlock, "_value_", [self['@canvas']]);
862
+ smalltalk.send(self['@canvas'], "_root_", [root]);
863
+ return self;},
864
+ source: unescape('appendBlock%3A%20aBlock%0A%20%20%20%20%7C%20root%20%7C%0A%20%20%20%20root%20%3A%3D%20canvas%20root.%0A%20%20%20%20canvas%20root%3A%20self.%0A%20%20%20%20aBlock%20value%3A%20canvas.%0A%20%20%20%20canvas%20root%3A%20root'),
865
+ messageSends: ["root", "root:", "value:"],
866
+ referencedClasses: []
867
+ }),
868
+ smalltalk.TagBrush);
869
+
870
+ smalltalk.addMethod(
871
+ '_appendChild_',
872
+ smalltalk.method({
873
+ selector: 'appendChild:',
874
+ category: 'adding',
875
+ fn: function (anElement){
876
+ var self=this;
877
+ self['@element'].appendChild(anElement);
878
+ return self;},
879
+ source: unescape('appendChild%3A%20anElement%0A%20%20%20%20%3Cself%5B%27@element%27%5D.appendChild%28anElement%29%3E'),
880
+ messageSends: [],
881
+ referencedClasses: []
882
+ }),
883
+ smalltalk.TagBrush);
884
+
885
+ smalltalk.addMethod(
886
+ '_appendString_',
887
+ smalltalk.method({
888
+ selector: 'appendString:',
889
+ category: 'adding',
890
+ fn: function (aString){
891
+ var self=this;
892
+ smalltalk.send(self, "_appendChild_", [smalltalk.send(self, "_createTextNodeFor_", [aString])]);
893
+ return self;},
894
+ source: unescape('appendString%3A%20aString%0A%20%20%20%20self%20appendChild%3A%20%28self%20createTextNodeFor%3A%20aString%29'),
895
+ messageSends: ["appendChild:", "createTextNodeFor:"],
896
+ referencedClasses: []
897
+ }),
898
+ smalltalk.TagBrush);
899
+
900
+ smalltalk.addMethod(
901
+ '_at_put_',
902
+ smalltalk.method({
903
+ selector: 'at:put:',
904
+ category: 'attributes',
905
+ fn: function (aString, aValue){
906
+ var self=this;
907
+ self['@element'].setAttribute(aString, aValue);
908
+ return self;},
909
+ source: unescape('at%3A%20aString%20put%3A%20aValue%0A%20%20%20%20%3Cself%5B%27@element%27%5D.setAttribute%28aString%2C%20aValue%29%3E'),
910
+ messageSends: [],
911
+ referencedClasses: []
912
+ }),
913
+ smalltalk.TagBrush);
914
+
915
+ smalltalk.addMethod(
916
+ '_removeAt_',
917
+ smalltalk.method({
918
+ selector: 'removeAt:',
919
+ category: 'attributes',
920
+ fn: function (aString){
921
+ var self=this;
922
+ self['@element'].removeAttribute(aString);
923
+ return self;},
924
+ source: unescape('removeAt%3A%20aString%0A%20%20%20%20%3Cself%5B%27@element%27%5D.removeAttribute%28aString%29%3E'),
925
+ messageSends: [],
926
+ referencedClasses: []
927
+ }),
928
+ smalltalk.TagBrush);
929
+
930
+ smalltalk.addMethod(
931
+ '_class_',
932
+ smalltalk.method({
933
+ selector: 'class:',
934
+ category: 'attributes',
935
+ fn: function (aString){
936
+ var self=this;
937
+ smalltalk.send(self, "_at_put_", ["class", aString]);
938
+ return self;},
939
+ source: unescape('class%3A%20aString%0A%20%20%20%20self%20at%3A%20%27class%27%20put%3A%20aString'),
940
+ messageSends: ["at:put:"],
941
+ referencedClasses: []
942
+ }),
943
+ smalltalk.TagBrush);
944
+
945
+ smalltalk.addMethod(
946
+ '_id_',
947
+ smalltalk.method({
948
+ selector: 'id:',
949
+ category: 'attributes',
950
+ fn: function (aString){
951
+ var self=this;
952
+ smalltalk.send(self, "_at_put_", ["id", aString]);
953
+ return self;},
954
+ source: unescape('id%3A%20aString%0A%20%20%20%20self%20at%3A%20%27id%27%20put%3A%20aString'),
955
+ messageSends: ["at:put:"],
956
+ referencedClasses: []
957
+ }),
958
+ smalltalk.TagBrush);
959
+
960
+ smalltalk.addMethod(
961
+ '_src_',
962
+ smalltalk.method({
963
+ selector: 'src:',
964
+ category: 'attributes',
965
+ fn: function (aString){
966
+ var self=this;
967
+ smalltalk.send(self, "_at_put_", ["src", aString]);
968
+ return self;},
969
+ source: unescape('src%3A%20aString%0A%20%20%20%20self%20%20at%3A%20%27src%27%20put%3A%20aString'),
970
+ messageSends: ["at:put:"],
971
+ referencedClasses: []
972
+ }),
973
+ smalltalk.TagBrush);
974
+
975
+ smalltalk.addMethod(
976
+ '_href_',
977
+ smalltalk.method({
978
+ selector: 'href:',
979
+ category: 'attributes',
980
+ fn: function (aString){
981
+ var self=this;
982
+ smalltalk.send(self, "_at_put_", ["href", aString]);
983
+ return self;},
984
+ source: unescape('href%3A%20aString%0A%20%20%20%20self%20at%3A%20%27href%27%20put%3A%20aString'),
985
+ messageSends: ["at:put:"],
986
+ referencedClasses: []
987
+ }),
988
+ smalltalk.TagBrush);
989
+
990
+ smalltalk.addMethod(
991
+ '_title_',
992
+ smalltalk.method({
993
+ selector: 'title:',
994
+ category: 'attributes',
995
+ fn: function (aString){
996
+ var self=this;
997
+ smalltalk.send(self, "_at_put_", ["title", aString]);
998
+ return self;},
999
+ source: unescape('title%3A%20aString%0A%20%20%20%20self%20at%3A%20%27title%27%20put%3A%20aString'),
1000
+ messageSends: ["at:put:"],
1001
+ referencedClasses: []
1002
+ }),
1003
+ smalltalk.TagBrush);
1004
+
1005
+ smalltalk.addMethod(
1006
+ '_style_',
1007
+ smalltalk.method({
1008
+ selector: 'style:',
1009
+ category: 'attributes',
1010
+ fn: function (aString){
1011
+ var self=this;
1012
+ smalltalk.send(self, "_at_put_", ["style", aString]);
1013
+ return self;},
1014
+ source: unescape('style%3A%20aString%0A%20%20%20%20self%20at%3A%20%27style%27%20put%3A%20aString'),
1015
+ messageSends: ["at:put:"],
1016
+ referencedClasses: []
1017
+ }),
1018
+ smalltalk.TagBrush);
1019
+
1020
+ smalltalk.addMethod(
1021
+ '_initializeFromString_canvas_',
1022
+ smalltalk.method({
1023
+ selector: 'initializeFromString:canvas:',
1024
+ category: 'initialization',
1025
+ fn: function (aString, aCanvas){
1026
+ var self=this;
1027
+ self['@element']=smalltalk.send(self, "_createElementFor_", [aString]);
1028
+ self['@canvas']=aCanvas;
1029
+ return self;},
1030
+ source: unescape('initializeFromString%3A%20aString%20canvas%3A%20aCanvas%0A%20%20%20%20element%20%3A%3D%20self%20createElementFor%3A%20aString.%0A%20%20%20%20canvas%20%3A%3D%20aCanvas'),
1031
+ messageSends: ["createElementFor:"],
1032
+ referencedClasses: []
1033
+ }),
1034
+ smalltalk.TagBrush);
1035
+
1036
+ smalltalk.addMethod(
1037
+ '_element',
1038
+ smalltalk.method({
1039
+ selector: 'element',
1040
+ category: 'accessing',
1041
+ fn: function (){
1042
+ var self=this;
1043
+ return self['@element'];
1044
+ return self;},
1045
+ source: unescape('element%0A%20%20%20%20%5Eelement'),
1046
+ messageSends: [],
1047
+ referencedClasses: []
1048
+ }),
1049
+ smalltalk.TagBrush);
1050
+
1051
+ smalltalk.addMethod(
1052
+ '_asJQuery',
1053
+ smalltalk.method({
1054
+ selector: 'asJQuery',
1055
+ category: 'converting',
1056
+ fn: function (){
1057
+ var self=this;
1058
+ return smalltalk.JQuery._from_(jQuery(self['@element']));
1059
+ return self;},
1060
+ source: unescape('asJQuery%0A%09%3Creturn%20smalltalk.JQuery._from_%28jQuery%28self%5B%27@element%27%5D%29%29%3E'),
1061
+ messageSends: [],
1062
+ referencedClasses: []
1063
+ }),
1064
+ smalltalk.TagBrush);
1065
+
1066
+ smalltalk.addMethod(
1067
+ '_asJQueryDo_',
1068
+ smalltalk.method({
1069
+ selector: 'asJQueryDo:',
1070
+ category: 'converting',
1071
+ fn: function (aBlock){
1072
+ var self=this;
1073
+ smalltalk.send(aBlock, "_value_", [smalltalk.send(self, "_asJQuery", [])]);
1074
+ return self;},
1075
+ source: unescape('asJQueryDo%3A%20aBlock%0A%20%20%20%20aBlock%20value%3A%20self%20asJQuery'),
1076
+ messageSends: ["value:", "asJQuery"],
1077
+ referencedClasses: []
1078
+ }),
1079
+ smalltalk.TagBrush);
1080
+
1081
+ smalltalk.addMethod(
1082
+ '_onKeyDown_',
1083
+ smalltalk.method({
1084
+ selector: 'onKeyDown:',
1085
+ category: 'events',
1086
+ fn: function (aBlock){
1087
+ var self=this;
1088
+ smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_on_do_", ["keydown", aBlock]);
1089
+ return self;},
1090
+ source: unescape('onKeyDown%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20on%3A%20%27keydown%27%20do%3A%20aBlock'),
1091
+ messageSends: ["on:do:", "asJQuery"],
1092
+ referencedClasses: []
1093
+ }),
1094
+ smalltalk.TagBrush);
1095
+
1096
+ smalltalk.addMethod(
1097
+ '_onKeyPress_',
1098
+ smalltalk.method({
1099
+ selector: 'onKeyPress:',
1100
+ category: 'events',
1101
+ fn: function (aBlock){
1102
+ var self=this;
1103
+ smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_on_do_", ["keypress", aBlock]);
1104
+ return self;},
1105
+ source: unescape('onKeyPress%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20on%3A%20%27keypress%27%20do%3A%20aBlock'),
1106
+ messageSends: ["on:do:", "asJQuery"],
1107
+ referencedClasses: []
1108
+ }),
1109
+ smalltalk.TagBrush);
1110
+
1111
+ smalltalk.addMethod(
1112
+ '_onKeyUp_',
1113
+ smalltalk.method({
1114
+ selector: 'onKeyUp:',
1115
+ category: 'events',
1116
+ fn: function (aBlock){
1117
+ var self=this;
1118
+ smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_on_do_", ["keyup", aBlock]);
1119
+ return self;},
1120
+ source: unescape('onKeyUp%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20on%3A%20%27keyup%27%20do%3A%20aBlock'),
1121
+ messageSends: ["on:do:", "asJQuery"],
1122
+ referencedClasses: []
1123
+ }),
1124
+ smalltalk.TagBrush);
1125
+
1126
+ smalltalk.addMethod(
1127
+ '_onFocus_',
1128
+ smalltalk.method({
1129
+ selector: 'onFocus:',
1130
+ category: 'events',
1131
+ fn: function (aBlock){
1132
+ var self=this;
1133
+ smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_on_do_", ["focus", aBlock]);
1134
+ return self;},
1135
+ source: unescape('onFocus%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20on%3A%20%27focus%27%20do%3A%20aBlock'),
1136
+ messageSends: ["on:do:", "asJQuery"],
1137
+ referencedClasses: []
1138
+ }),
1139
+ smalltalk.TagBrush);
1140
+
1141
+ smalltalk.addMethod(
1142
+ '_onBlur_',
1143
+ smalltalk.method({
1144
+ selector: 'onBlur:',
1145
+ category: 'events',
1146
+ fn: function (aBlock){
1147
+ var self=this;
1148
+ smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_on_do_", ["blur", aBlock]);
1149
+ return self;},
1150
+ source: unescape('onBlur%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20on%3A%20%27blur%27%20do%3A%20aBlock'),
1151
+ messageSends: ["on:do:", "asJQuery"],
1152
+ referencedClasses: []
1153
+ }),
1154
+ smalltalk.TagBrush);
1155
+
1156
+ smalltalk.addMethod(
1157
+ '_onChange_',
1158
+ smalltalk.method({
1159
+ selector: 'onChange:',
1160
+ category: 'events',
1161
+ fn: function (aBlock){
1162
+ var self=this;
1163
+ smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_on_do_", ["change", aBlock]);
1164
+ return self;},
1165
+ source: unescape('onChange%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20on%3A%20%27change%27%20do%3A%20aBlock'),
1166
+ messageSends: ["on:do:", "asJQuery"],
1167
+ referencedClasses: []
1168
+ }),
1169
+ smalltalk.TagBrush);
1170
+
1171
+ smalltalk.addMethod(
1172
+ '_onClick_',
1173
+ smalltalk.method({
1174
+ selector: 'onClick:',
1175
+ category: 'events',
1176
+ fn: function (aBlock){
1177
+ var self=this;
1178
+ smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_on_do_", ["click", aBlock]);
1179
+ return self;},
1180
+ source: unescape('onClick%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20on%3A%20%27click%27%20do%3A%20aBlock'),
1181
+ messageSends: ["on:do:", "asJQuery"],
1182
+ referencedClasses: []
1183
+ }),
1184
+ smalltalk.TagBrush);
1185
+
1186
+ smalltalk.addMethod(
1187
+ '_createElementFor_',
1188
+ smalltalk.method({
1189
+ selector: 'createElementFor:',
1190
+ category: 'private',
1191
+ fn: function (aString){
1192
+ var self=this;
1193
+ return document.createElement(String(aString));
1194
+ return self;},
1195
+ source: unescape('createElementFor%3A%20aString%0A%09%3Creturn%20document.createElement%28String%28aString%29%29%3E'),
1196
+ messageSends: [],
1197
+ referencedClasses: []
1198
+ }),
1199
+ smalltalk.TagBrush);
1200
+
1201
+ smalltalk.addMethod(
1202
+ '_createTextNodeFor_',
1203
+ smalltalk.method({
1204
+ selector: 'createTextNodeFor:',
1205
+ category: 'private',
1206
+ fn: function (aString){
1207
+ var self=this;
1208
+ return document.createTextNode(String(aString));
1209
+ return self;},
1210
+ source: unescape('createTextNodeFor%3A%20aString%0A%09%3Creturn%20document.createTextNode%28String%28aString%29%29%3E'),
1211
+ messageSends: [],
1212
+ referencedClasses: []
1213
+ }),
1214
+ smalltalk.TagBrush);
1215
+
1216
+ smalltalk.addMethod(
1217
+ '_initializeFromJQuery_canvas_',
1218
+ smalltalk.method({
1219
+ selector: 'initializeFromJQuery:canvas:',
1220
+ category: 'initialization',
1221
+ fn: function (aJQuery, aCanvas){
1222
+ var self=this;
1223
+ self['@element']=smalltalk.send(smalltalk.send(aJQuery, "_jquery", []), "_get_", [(0)]);
1224
+ self['@canvas']=aCanvas;
1225
+ return self;},
1226
+ source: unescape('initializeFromJQuery%3A%20aJQuery%20canvas%3A%20aCanvas%0A%20%20%20%20element%20%3A%3D%20aJQuery%20jquery%20get%3A%200.%0A%20%20%20%20canvas%20%3A%3D%20aCanvas'),
1227
+ messageSends: ["get:", "jquery"],
1228
+ referencedClasses: []
1229
+ }),
1230
+ smalltalk.TagBrush);
1231
+
1232
+ smalltalk.addMethod(
1233
+ '_onSubmit_',
1234
+ smalltalk.method({
1235
+ selector: 'onSubmit:',
1236
+ category: 'events',
1237
+ fn: function (aBlock){
1238
+ var self=this;
1239
+ smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_on_do_", ["submit", aBlock]);
1240
+ return self;},
1241
+ source: unescape('onSubmit%3A%20aBlock%0A%20%20%20%20self%20asJQuery%20on%3A%20%27submit%27%20do%3A%20aBlock'),
1242
+ messageSends: ["on:do:", "asJQuery"],
1243
+ referencedClasses: []
1244
+ }),
1245
+ smalltalk.TagBrush);
1246
+
1247
+
1248
+ smalltalk.addMethod(
1249
+ '_fromString_canvas_',
1250
+ smalltalk.method({
1251
+ selector: 'fromString:canvas:',
1252
+ category: 'instance creation',
1253
+ fn: function (aString, aCanvas){
1254
+ var self=this;
1255
+ return (function($rec){smalltalk.send($rec, "_initializeFromString_canvas_", [aString, aCanvas]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
1256
+ return self;},
1257
+ source: unescape('fromString%3A%20aString%20canvas%3A%20aCanvas%0A%20%20%20%20%5Eself%20new%0A%09initializeFromString%3A%20aString%20canvas%3A%20aCanvas%3B%0A%09yourself'),
1258
+ messageSends: ["initializeFromString:canvas:", "yourself", "new"],
1259
+ referencedClasses: []
1260
+ }),
1261
+ smalltalk.TagBrush.klass);
1262
+
1263
+ smalltalk.addMethod(
1264
+ '_fromJQuery_canvas_',
1265
+ smalltalk.method({
1266
+ selector: 'fromJQuery:canvas:',
1267
+ category: 'instance creation',
1268
+ fn: function (aJQuery, aCanvas){
1269
+ var self=this;
1270
+ return (function($rec){smalltalk.send($rec, "_initializeFromJQuery_canvas_", [aJQuery, aCanvas]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
1271
+ return self;},
1272
+ source: unescape('fromJQuery%3A%20aJQuery%20canvas%3A%20aCanvas%0A%20%20%20%20%5Eself%20new%0A%09initializeFromJQuery%3A%20aJQuery%20canvas%3A%20aCanvas%3B%0A%09yourself'),
1273
+ messageSends: ["initializeFromJQuery:canvas:", "yourself", "new"],
1274
+ referencedClasses: []
1275
+ }),
1276
+ smalltalk.TagBrush.klass);
1277
+
1278
+
1279
+ smalltalk.addClass('Widget', smalltalk.Object, [], 'Canvas');
1280
+ smalltalk.addMethod(
1281
+ '_appendToBrush_',
1282
+ smalltalk.method({
1283
+ selector: 'appendToBrush:',
1284
+ category: 'adding',
1285
+ fn: function (aTagBrush){
1286
+ var self=this;
1287
+ smalltalk.send(self, "_appendToJQuery_", [smalltalk.send(aTagBrush, "_asJQuery", [])]);
1288
+ return self;},
1289
+ source: unescape('appendToBrush%3A%20aTagBrush%0A%20%20%20%20self%20appendToJQuery%3A%20aTagBrush%20asJQuery'),
1290
+ messageSends: ["appendToJQuery:", "asJQuery"],
1291
+ referencedClasses: []
1292
+ }),
1293
+ smalltalk.Widget);
1294
+
1295
+ smalltalk.addMethod(
1296
+ '_appendToJQuery_',
1297
+ smalltalk.method({
1298
+ selector: 'appendToJQuery:',
1299
+ category: 'adding',
1300
+ fn: function (aJQuery){
1301
+ var self=this;
1302
+ smalltalk.send(self, "_renderOn_", [smalltalk.send(smalltalk.HTMLCanvas, "_onJQuery_", [aJQuery])]);
1303
+ return self;},
1304
+ source: unescape('appendToJQuery%3A%20aJQuery%0A%20%20%20self%20renderOn%3A%20%28HTMLCanvas%20onJQuery%3A%20aJQuery%29'),
1305
+ messageSends: ["renderOn:", "onJQuery:"],
1306
+ referencedClasses: [smalltalk.HTMLCanvas]
1307
+ }),
1308
+ smalltalk.Widget);
1309
+
1310
+ smalltalk.addMethod(
1311
+ '_alert_',
1312
+ smalltalk.method({
1313
+ selector: 'alert:',
1314
+ category: 'actions',
1315
+ fn: function (aString){
1316
+ var self=this;
1317
+ alert(aString);
1318
+ return self;},
1319
+ source: unescape('alert%3A%20aString%0A%20%20%20%20%3Calert%28aString%29%3E'),
1320
+ messageSends: [],
1321
+ referencedClasses: []
1322
+ }),
1323
+ smalltalk.Widget);
1324
+
1325
+ smalltalk.addMethod(
1326
+ '_confirm_',
1327
+ smalltalk.method({
1328
+ selector: 'confirm:',
1329
+ category: 'actions',
1330
+ fn: function (aString){
1331
+ var self=this;
1332
+ return window.confirm(aString);
1333
+ return self;},
1334
+ source: unescape('confirm%3A%20aString%0A%20%20%20%20%3Creturn%20window.confirm%28aString%29%3E'),
1335
+ messageSends: [],
1336
+ referencedClasses: []
1337
+ }),
1338
+ smalltalk.Widget);
1339
+
1340
+ smalltalk.addMethod(
1341
+ '_prompt_',
1342
+ smalltalk.method({
1343
+ selector: 'prompt:',
1344
+ category: 'actions',
1345
+ fn: function (aString){
1346
+ var self=this;
1347
+ return smalltalk.send(self, "_prompt_default_", [aString, ""]);
1348
+ return self;},
1349
+ source: unescape('prompt%3A%20aString%0A%20%20%20%20%5Eself%20prompt%3A%20aString%20default%3A%20%27%27'),
1350
+ messageSends: ["prompt:default:"],
1351
+ referencedClasses: []
1352
+ }),
1353
+ smalltalk.Widget);
1354
+
1355
+ smalltalk.addMethod(
1356
+ '_prompt_default_',
1357
+ smalltalk.method({
1358
+ selector: 'prompt:default:',
1359
+ category: 'actions',
1360
+ fn: function (aString, anotherString){
1361
+ var self=this;
1362
+ return window.prompt(aString, anotherString);
1363
+ return self;},
1364
+ source: unescape('prompt%3A%20aString%20default%3A%20anotherString%0A%20%20%20%20%3Creturn%20window.prompt%28aString%2C%20anotherString%29%3E'),
1365
+ messageSends: [],
1366
+ referencedClasses: []
1367
+ }),
1368
+ smalltalk.Widget);
1369
+
1370
+ smalltalk.addMethod(
1371
+ '_renderOn_',
1372
+ smalltalk.method({
1373
+ selector: 'renderOn:',
1374
+ category: 'rendering',
1375
+ fn: function (html){
1376
+ var self=this;
1377
+ self;
1378
+ return self;},
1379
+ source: unescape('renderOn%3A%20html%0A%20%20%20%20self'),
1380
+ messageSends: [],
1381
+ referencedClasses: []
1382
+ }),
1383
+ smalltalk.Widget);
1384
+
1385
+
1386
+
1387
+ smalltalk.addClass('CanvasBrush', smalltalk.TagBrush, [], 'Canvas');
1388
+ smalltalk.addMethod(
1389
+ '_createElement',
1390
+ smalltalk.method({
1391
+ selector: 'createElement',
1392
+ category: 'private',
1393
+ fn: function (){
1394
+ var self=this;
1395
+ return document.createElement('canvas');
1396
+ return self;},
1397
+ source: unescape('createElement%0A%09%3Creturn%20document.createElement%28%27canvas%27%29%3E'),
1398
+ messageSends: [],
1399
+ referencedClasses: []
1400
+ }),
1401
+ smalltalk.CanvasBrush);
1402
+
1403
+ smalltalk.addMethod(
1404
+ '_initializeWithCanvas_',
1405
+ smalltalk.method({
1406
+ selector: 'initializeWithCanvas:',
1407
+ category: 'initialization',
1408
+ fn: function (aCanvas){
1409
+ var self=this;
1410
+ self['@canvas']=aCanvas;
1411
+ return self;},
1412
+ source: unescape('initializeWithCanvas%3A%20aCanvas%0A%0A%0A%0A%09canvas%20%3A%3D%20aCanvas'),
1413
+ messageSends: [],
1414
+ referencedClasses: []
1415
+ }),
1416
+ smalltalk.CanvasBrush);
1417
+
1418
+
1419
+ smalltalk.addMethod(
1420
+ '_canvas_',
1421
+ smalltalk.method({
1422
+ selector: 'canvas:',
1423
+ category: 'instance creation',
1424
+ fn: function (aCanvas){
1425
+ var self=this;
1426
+ return (function($rec){smalltalk.send($rec, "_initializeWithCanvas_", [aCanvas]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
1427
+ return self;},
1428
+ source: unescape('canvas%3A%20aCanvas%0A%09%5Eself%20new%0A%09%09initializeWithCanvas%3A%20aCanvas%3B%0A%09%09yourself'),
1429
+ messageSends: ["initializeWithCanvas:", "yourself", "new"],
1430
+ referencedClasses: []
1431
+ }),
1432
+ smalltalk.CanvasBrush.klass);
1433
+
1434
+
1435
+ smalltalk.addMethod(
1436
+ '_appendToBrush_',
1437
+ smalltalk.method({
1438
+ selector: 'appendToBrush:',
1439
+ category: '*Canvas',
1440
+ fn: function (aTagBrush){
1441
+ var self=this;
1442
+ smalltalk.send(aTagBrush, "_append_", [smalltalk.send(self, "_asString", [])]);
1443
+ return self;},
1444
+ source: unescape('appendToBrush%3A%20aTagBrush%0A%20%20%20%20aTagBrush%20append%3A%20self%20asString'),
1445
+ messageSends: ["append:", "asString"],
1446
+ referencedClasses: []
1447
+ }),
1448
+ smalltalk.Object);
1449
+
1450
+ smalltalk.addMethod(
1451
+ '_appendToBrush_',
1452
+ smalltalk.method({
1453
+ selector: 'appendToBrush:',
1454
+ category: '*Canvas',
1455
+ fn: function (aTagBrush){
1456
+ var self=this;
1457
+ smalltalk.send(aTagBrush, "_appendBlock_", [self]);
1458
+ return self;},
1459
+ source: unescape('appendToBrush%3A%20aTagBrush%0A%20%20%20%20aTagBrush%20appendBlock%3A%20self'),
1460
+ messageSends: ["appendBlock:"],
1461
+ referencedClasses: []
1462
+ }),
1463
+ smalltalk.BlockClosure);
1464
+
1465
+ smalltalk.addMethod(
1466
+ '_appendToBrush_',
1467
+ smalltalk.method({
1468
+ selector: 'appendToBrush:',
1469
+ category: '*Canvas',
1470
+ fn: function (aTagBrush){
1471
+ var self=this;
1472
+ smalltalk.send(aTagBrush, "_appendString_", [self]);
1473
+ return self;},
1474
+ source: unescape('appendToBrush%3A%20aTagBrush%0A%20%20%20%20aTagBrush%20appendString%3A%20self'),
1475
+ messageSends: ["appendString:"],
1476
+ referencedClasses: []
1477
+ }),
1478
+ smalltalk.String);
1479
+