resin 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +52 -0
- data/amber/css/amber.css +519 -0
- data/amber/css/documentation.css +84 -0
- data/amber/css/profstef.css +75 -0
- data/amber/css/style.css +313 -0
- data/amber/images/amber.png +0 -0
- data/amber/images/amber_small.png +0 -0
- data/amber/images/off.png +0 -0
- data/amber/images/offHover.png +0 -0
- data/amber/images/presentation.png +0 -0
- data/amber/images/profstef.png +0 -0
- data/amber/images/sprite.png +0 -0
- data/amber/images/tinylogo.png +0 -0
- data/amber/images/twitterwall.png +0 -0
- data/amber/js/Additional-Examples.deploy.js +15 -0
- data/amber/js/Additional-Examples.js +21 -0
- data/amber/js/Benchfib.deploy.js +132 -0
- data/amber/js/Benchfib.js +167 -0
- data/amber/js/Canvas.deploy.js +1304 -0
- data/amber/js/Canvas.js +1885 -0
- data/amber/js/Compiler.deploy.js +1871 -0
- data/amber/js/Compiler.js +2616 -0
- data/amber/js/Documentation.deploy.js +961 -0
- data/amber/js/Documentation.js +1376 -0
- data/amber/js/Examples.deploy.js +53 -0
- data/amber/js/Examples.js +73 -0
- data/amber/js/IDE.deploy.js +3468 -0
- data/amber/js/IDE.js +4883 -0
- data/amber/js/Kernel-Announcements.deploy.js +107 -0
- data/amber/js/Kernel-Announcements.js +152 -0
- data/amber/js/Kernel-Classes.deploy.js +675 -0
- data/amber/js/Kernel-Classes.js +956 -0
- data/amber/js/Kernel-Collections.deploy.js +3273 -0
- data/amber/js/Kernel-Collections.js +4644 -0
- data/amber/js/Kernel-Exceptions.deploy.js +244 -0
- data/amber/js/Kernel-Exceptions.js +349 -0
- data/amber/js/Kernel-Methods.deploy.js +510 -0
- data/amber/js/Kernel-Methods.js +739 -0
- data/amber/js/Kernel-Objects.deploy.js +2698 -0
- data/amber/js/Kernel-Objects.js +3858 -0
- data/amber/js/Kernel-Tests.deploy.js +1419 -0
- data/amber/js/Kernel-Tests.js +1929 -0
- data/amber/js/Kernel-Transcript.deploy.js +142 -0
- data/amber/js/Kernel-Transcript.js +202 -0
- data/amber/js/SUnit.deploy.js +351 -0
- data/amber/js/SUnit.js +501 -0
- data/amber/js/amber.js +250 -0
- data/amber/js/boot.js +587 -0
- data/amber/js/compat.js +22 -0
- data/amber/js/init.js +8 -0
- data/amber/js/lib/CodeMirror/LICENSE +19 -0
- data/amber/js/lib/CodeMirror/amber.css +21 -0
- data/amber/js/lib/CodeMirror/codemirror.css +67 -0
- data/amber/js/lib/CodeMirror/codemirror.js +2144 -0
- data/amber/js/lib/CodeMirror/smalltalk.js +134 -0
- data/amber/js/lib/jQuery/jquery-1.4.4.min.js +167 -0
- data/amber/js/lib/jQuery/jquery-1.6.4.min.js +4 -0
- data/amber/js/lib/jQuery/jquery-ui-1.8.16.custom.min.js +791 -0
- data/amber/js/lib/jQuery/jquery.textarea.js +267 -0
- data/amber/js/lib/peg-0.6.2.min.js +2 -0
- data/amber/js/lib/showdown.js +419 -0
- data/amber/js/parser.js +4005 -0
- data/amber/js/parser.pegjs +220 -0
- data/amber/st/Benchfib.st +124 -0
- data/amber/st/Canvas.st +556 -0
- data/amber/st/Compiler.st +1425 -0
- data/amber/st/Documentation.st +758 -0
- data/amber/st/Examples.st +38 -0
- data/amber/st/IDE.st +2336 -0
- data/amber/st/Kernel-Announcements.st +61 -0
- data/amber/st/Kernel-Classes.st +403 -0
- data/amber/st/Kernel-Collections.st +1673 -0
- data/amber/st/Kernel-Exceptions.st +124 -0
- data/amber/st/Kernel-Methods.st +287 -0
- data/amber/st/Kernel-Objects.st +1489 -0
- data/amber/st/Kernel-Tests.st +892 -0
- data/amber/st/Kernel-Transcript.st +70 -0
- data/amber/st/SUnit.st +172 -0
- data/bin/runresin +12 -0
- data/lib/resin.rb +0 -0
- data/lib/resin/app/app.rb +121 -0
- data/lib/resin/app/views/index.haml +10 -0
- metadata +216 -0
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,15 @@
|
|
1
|
+
smalltalk.addPackage('Additional-Examples', {});
|
2
|
+
smalltalk.addClass('ClassInitializationExample', smalltalk.Object, [], 'Additional-Examples');
|
3
|
+
|
4
|
+
smalltalk.addMethod(
|
5
|
+
'_initialize',
|
6
|
+
smalltalk.method({
|
7
|
+
selector: 'initialize',
|
8
|
+
fn: function (){
|
9
|
+
var self=this;
|
10
|
+
smalltalk.send((typeof window == 'undefined' ? nil : window), "_alert_", [smalltalk.send(smalltalk.send("Hello from inside the ", "__comma", [smalltalk.send(self, "_printString", [])]), "__comma", [" initialize method."])]);
|
11
|
+
return self;}
|
12
|
+
}),
|
13
|
+
smalltalk.ClassInitializationExample.klass);
|
14
|
+
|
15
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
smalltalk.addPackage('Additional-Examples', {});
|
2
|
+
smalltalk.addClass('ClassInitializationExample', smalltalk.Object, [], 'Additional-Examples');
|
3
|
+
smalltalk.ClassInitializationExample.comment=unescape('This%20class%20will%20pop%20up%20an%20alert%20when%20it%20is%20loaded%20into%20Amber.')
|
4
|
+
|
5
|
+
smalltalk.addMethod(
|
6
|
+
unescape('_initialize'),
|
7
|
+
smalltalk.method({
|
8
|
+
selector: unescape('initialize'),
|
9
|
+
category: 'initialization',
|
10
|
+
fn: function (){
|
11
|
+
var self=this;
|
12
|
+
smalltalk.send((typeof window == 'undefined' ? nil : window), "_alert_", [smalltalk.send(smalltalk.send("Hello from inside the ", "__comma", [smalltalk.send(self, "_printString", [])]), "__comma", [" initialize method."])]);
|
13
|
+
return self;},
|
14
|
+
args: [],
|
15
|
+
source: unescape('initialize%0A%09window%20alert%3A%20%27Hello%20from%20inside%20the%20%27%2C%20self%20printString%20%2C%20%27%20initialize%20method.%27'),
|
16
|
+
messageSends: ["alert:", unescape("%2C"), "printString"],
|
17
|
+
referencedClasses: []
|
18
|
+
}),
|
19
|
+
smalltalk.ClassInitializationExample.klass);
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,132 @@
|
|
1
|
+
smalltalk.addPackage('Benchfib', {});
|
2
|
+
smalltalk.addClass('Benchfib', smalltalk.Object, [], 'Benchfib');
|
3
|
+
|
4
|
+
smalltalk.addMethod(
|
5
|
+
unescape('_main'),
|
6
|
+
smalltalk.method({
|
7
|
+
selector: unescape('main'),
|
8
|
+
fn: function (){
|
9
|
+
var self=this;
|
10
|
+
var result=nil;
|
11
|
+
(result=smalltalk.send((0), "_tinyBenchmarks", []));
|
12
|
+
smalltalk.send((typeof console == 'undefined' ? nil : console), "_log_", [smalltalk.send(unescape("0%20tinyBenchmarks%20%3D%3E%20"), "__comma", [result])]);
|
13
|
+
return self;}
|
14
|
+
}),
|
15
|
+
smalltalk.Benchfib.klass);
|
16
|
+
|
17
|
+
|
18
|
+
smalltalk.addMethod(
|
19
|
+
unescape('_benchFib'),
|
20
|
+
smalltalk.method({
|
21
|
+
selector: unescape('benchFib'),
|
22
|
+
fn: function (){
|
23
|
+
var self=this;
|
24
|
+
return ((($receiver = self < (2)).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (1);})() : (function(){return ((($receiver = ((($receiver = smalltalk.send(self - (1), "_benchFib", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(self - (2), "_benchFib", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(self - (2), "_benchFib", [])]))).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return (1);}), (function(){return ((($receiver = ((($receiver = smalltalk.send(self - (1), "_benchFib", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(self - (2), "_benchFib", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(self - (2), "_benchFib", [])]))).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));})]));
|
25
|
+
return self;}
|
26
|
+
}),
|
27
|
+
smalltalk.Number);
|
28
|
+
|
29
|
+
smalltalk.addMethod(
|
30
|
+
unescape('_benchmark'),
|
31
|
+
smalltalk.method({
|
32
|
+
selector: unescape('benchmark'),
|
33
|
+
fn: function (){
|
34
|
+
var self=this;
|
35
|
+
var size=nil;
|
36
|
+
var flags=nil;
|
37
|
+
var prime=nil;
|
38
|
+
var k=nil;
|
39
|
+
var count=nil;
|
40
|
+
(size=(8190));
|
41
|
+
smalltalk.send((1), "_to_do_", [self, (function(iter){(count=(0));(flags=smalltalk.send((smalltalk.Array || Array), "_new", []));smalltalk.send(size, "_timesRepeat_", [(function(){return smalltalk.send(flags, "_add_", [true]);})]);return smalltalk.send((1), "_to_do_", [size, (function(i){return ((($receiver = smalltalk.send(flags, "_at_", [i])).klass === smalltalk.Boolean) ? ($receiver ? (function(){(prime=((($receiver = i).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));(k=((($receiver = i).klass === smalltalk.Number) ? $receiver +prime : smalltalk.send($receiver, "__plus", [prime])));(function(){while((function(){return ((($receiver = k).klass === smalltalk.Number) ? $receiver <=size : smalltalk.send($receiver, "__lt_eq", [size]));})()) {(function(){smalltalk.send(flags, "_at_put_", [k, false]);return (k=((($receiver = k).klass === smalltalk.Number) ? $receiver +prime : smalltalk.send($receiver, "__plus", [prime])));})()}})();return (count=((($receiver = count).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){(prime=((($receiver = i).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));(k=((($receiver = i).klass === smalltalk.Number) ? $receiver +prime : smalltalk.send($receiver, "__plus", [prime])));(function(){while((function(){return ((($receiver = k).klass === smalltalk.Number) ? $receiver <=size : smalltalk.send($receiver, "__lt_eq", [size]));})()) {(function(){smalltalk.send(flags, "_at_put_", [k, false]);return (k=((($receiver = k).klass === smalltalk.Number) ? $receiver +prime : smalltalk.send($receiver, "__plus", [prime])));})()}})();return (count=((($receiver = count).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));})]));})]);})]);
|
42
|
+
return count;
|
43
|
+
return self;}
|
44
|
+
}),
|
45
|
+
smalltalk.Number);
|
46
|
+
|
47
|
+
smalltalk.addMethod(
|
48
|
+
unescape('_tinyBenchmarks'),
|
49
|
+
smalltalk.method({
|
50
|
+
selector: unescape('tinyBenchmarks'),
|
51
|
+
fn: function (){
|
52
|
+
var self=this;
|
53
|
+
var t1=nil;
|
54
|
+
var t2=nil;
|
55
|
+
var r=nil;
|
56
|
+
var n1=nil;
|
57
|
+
var n2=nil;
|
58
|
+
(n1=(1));
|
59
|
+
(function(){while((function(){(t1=smalltalk.send((smalltalk.Date || Date), "_millisecondsToRun_", [(function(){return smalltalk.send(n1, "_benchmark", []);})]));return ((($receiver = t1).klass === smalltalk.Number) ? $receiver <(1000) : smalltalk.send($receiver, "__lt", [(1000)]));})()) {(function(){return (n1=((($receiver = n1).klass === smalltalk.Number) ? $receiver *(2) : smalltalk.send($receiver, "__star", [(2)])));})()}})();
|
60
|
+
(n2=(16));
|
61
|
+
(function(){while((function(){(t2=smalltalk.send((smalltalk.Date || Date), "_millisecondsToRun_", [(function(){return (r=smalltalk.send(n2, "_benchFib", []));})]));return ((($receiver = t2).klass === smalltalk.Number) ? $receiver <(1000) : smalltalk.send($receiver, "__lt", [(1000)]));})()) {(function(){return (n2=((($receiver = n2).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));})()}})();
|
62
|
+
return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(((($receiver = ((($receiver = ((($receiver = n1).klass === smalltalk.Number) ? $receiver *(500000) : smalltalk.send($receiver, "__star", [(500000)]))).klass === smalltalk.Number) ? $receiver *(1000) : smalltalk.send($receiver, "__star", [(1000)]))).klass === smalltalk.Number) ? $receiver /t1 : smalltalk.send($receiver, "__slash", [t1])), "_printString", []), "__comma", [unescape("%20bytecodes/sec%3B%20")]), "__comma", [smalltalk.send(((($receiver = ((($receiver = r).klass === smalltalk.Number) ? $receiver *(1000) : smalltalk.send($receiver, "__star", [(1000)]))).klass === smalltalk.Number) ? $receiver /t2 : smalltalk.send($receiver, "__slash", [t2])), "_printString", [])]), "__comma", [unescape("%20sends/sec")]);
|
63
|
+
return self;}
|
64
|
+
}),
|
65
|
+
smalltalk.Number);
|
66
|
+
|
67
|
+
smalltalk.addMethod(
|
68
|
+
unescape('_jsbenchFib'),
|
69
|
+
smalltalk.method({
|
70
|
+
selector: unescape('jsbenchFib'),
|
71
|
+
fn: function (){
|
72
|
+
var self=this;
|
73
|
+
if (this < 2) {
|
74
|
+
return 1;
|
75
|
+
} else {
|
76
|
+
return (this-1)._jsbenchFib() + (this-2)._jsbenchFib() + 1;};
|
77
|
+
return self;}
|
78
|
+
}),
|
79
|
+
smalltalk.Number);
|
80
|
+
|
81
|
+
smalltalk.addMethod(
|
82
|
+
unescape('_jsbenchmark'),
|
83
|
+
smalltalk.method({
|
84
|
+
selector: unescape('jsbenchmark'),
|
85
|
+
fn: function (){
|
86
|
+
var self=this;
|
87
|
+
|
88
|
+
var size = 8190;
|
89
|
+
var count;
|
90
|
+
for (var z=0;z<this;z++) {
|
91
|
+
count = 0;
|
92
|
+
var flags = new Array();
|
93
|
+
for (var p=0; p<size; p++) {
|
94
|
+
flags[p] = true;
|
95
|
+
}
|
96
|
+
for (var i=1;i<=size;i++) {
|
97
|
+
if (flags[i-1]) {
|
98
|
+
var prime = i+1;
|
99
|
+
var k = i + prime;
|
100
|
+
while (k <= size) {
|
101
|
+
flags[k-1] = false;
|
102
|
+
k = k + prime;
|
103
|
+
}
|
104
|
+
count = count + 1;
|
105
|
+
}
|
106
|
+
}
|
107
|
+
}
|
108
|
+
return count;
|
109
|
+
return self;}
|
110
|
+
}),
|
111
|
+
smalltalk.Number);
|
112
|
+
|
113
|
+
smalltalk.addMethod(
|
114
|
+
unescape('_jstinyBenchmarks'),
|
115
|
+
smalltalk.method({
|
116
|
+
selector: unescape('jstinyBenchmarks'),
|
117
|
+
fn: function (){
|
118
|
+
var self=this;
|
119
|
+
var t1=nil;
|
120
|
+
var t2=nil;
|
121
|
+
var r=nil;
|
122
|
+
var n1=nil;
|
123
|
+
var n2=nil;
|
124
|
+
(n1=(1));
|
125
|
+
(function(){while((function(){(t1=smalltalk.send((smalltalk.Date || Date), "_millisecondsToRun_", [(function(){return smalltalk.send(n1, "_jsbenchmark", []);})]));return ((($receiver = t1).klass === smalltalk.Number) ? $receiver <(1000) : smalltalk.send($receiver, "__lt", [(1000)]));})()) {(function(){return (n1=((($receiver = n1).klass === smalltalk.Number) ? $receiver *(2) : smalltalk.send($receiver, "__star", [(2)])));})()}})();
|
126
|
+
(n2=(28));
|
127
|
+
(function(){while((function(){(t2=smalltalk.send((smalltalk.Date || Date), "_millisecondsToRun_", [(function(){return (r=smalltalk.send(n2, "_jsbenchFib", []));})]));return ((($receiver = t2).klass === smalltalk.Number) ? $receiver <(1000) : smalltalk.send($receiver, "__lt", [(1000)]));})()) {(function(){return (n2=((($receiver = n2).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));})()}})();
|
128
|
+
return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(((($receiver = ((($receiver = ((($receiver = n1).klass === smalltalk.Number) ? $receiver *(500000) : smalltalk.send($receiver, "__star", [(500000)]))).klass === smalltalk.Number) ? $receiver *(1000) : smalltalk.send($receiver, "__star", [(1000)]))).klass === smalltalk.Number) ? $receiver /t1 : smalltalk.send($receiver, "__slash", [t1])), "_printString", []), "__comma", [unescape("%20bytecodes/sec%3B%20")]), "__comma", [smalltalk.send(((($receiver = ((($receiver = r).klass === smalltalk.Number) ? $receiver *(1000) : smalltalk.send($receiver, "__star", [(1000)]))).klass === smalltalk.Number) ? $receiver /t2 : smalltalk.send($receiver, "__slash", [t2])), "_printString", [])]), "__comma", [unescape("%20sends/sec")]);
|
129
|
+
return self;}
|
130
|
+
}),
|
131
|
+
smalltalk.Number);
|
132
|
+
|
@@ -0,0 +1,167 @@
|
|
1
|
+
smalltalk.addPackage('Benchfib', {});
|
2
|
+
smalltalk.addClass('Benchfib', smalltalk.Object, [], 'Benchfib');
|
3
|
+
|
4
|
+
smalltalk.addMethod(
|
5
|
+
unescape('_main'),
|
6
|
+
smalltalk.method({
|
7
|
+
selector: unescape('main'),
|
8
|
+
category: 'not yet classified',
|
9
|
+
fn: function (){
|
10
|
+
var self=this;
|
11
|
+
var result=nil;
|
12
|
+
(result=smalltalk.send((0), "_tinyBenchmarks", []));
|
13
|
+
smalltalk.send((typeof console == 'undefined' ? nil : console), "_log_", [smalltalk.send(unescape("0%20tinyBenchmarks%20%3D%3E%20"), "__comma", [result])]);
|
14
|
+
return self;},
|
15
|
+
args: [],
|
16
|
+
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%2C%20result'),
|
17
|
+
messageSends: ["tinyBenchmarks", "log:", unescape("%2C")],
|
18
|
+
referencedClasses: []
|
19
|
+
}),
|
20
|
+
smalltalk.Benchfib.klass);
|
21
|
+
|
22
|
+
|
23
|
+
smalltalk.addMethod(
|
24
|
+
unescape('_benchFib'),
|
25
|
+
smalltalk.method({
|
26
|
+
selector: unescape('benchFib'),
|
27
|
+
category: '*Benchfib',
|
28
|
+
fn: function (){
|
29
|
+
var self=this;
|
30
|
+
return ((($receiver = self < (2)).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (1);})() : (function(){return ((($receiver = ((($receiver = smalltalk.send(self - (1), "_benchFib", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(self - (2), "_benchFib", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(self - (2), "_benchFib", [])]))).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return (1);}), (function(){return ((($receiver = ((($receiver = smalltalk.send(self - (1), "_benchFib", [])).klass === smalltalk.Number) ? $receiver +smalltalk.send(self - (2), "_benchFib", []) : smalltalk.send($receiver, "__plus", [smalltalk.send(self - (2), "_benchFib", [])]))).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)]));})]));
|
31
|
+
return self;},
|
32
|
+
args: [],
|
33
|
+
source: unescape('benchFib%20%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%20%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'),
|
34
|
+
messageSends: ["ifTrue:ifFalse:", unescape("%3C"), unescape("+"), "benchFib", unescape("-")],
|
35
|
+
referencedClasses: []
|
36
|
+
}),
|
37
|
+
smalltalk.Number);
|
38
|
+
|
39
|
+
smalltalk.addMethod(
|
40
|
+
unescape('_benchmark'),
|
41
|
+
smalltalk.method({
|
42
|
+
selector: unescape('benchmark'),
|
43
|
+
category: '*Benchfib',
|
44
|
+
fn: function (){
|
45
|
+
var self=this;
|
46
|
+
var size=nil;
|
47
|
+
var flags=nil;
|
48
|
+
var prime=nil;
|
49
|
+
var k=nil;
|
50
|
+
var count=nil;
|
51
|
+
(size=(8190));
|
52
|
+
smalltalk.send((1), "_to_do_", [self, (function(iter){(count=(0));(flags=smalltalk.send((smalltalk.Array || Array), "_new", []));smalltalk.send(size, "_timesRepeat_", [(function(){return smalltalk.send(flags, "_add_", [true]);})]);return smalltalk.send((1), "_to_do_", [size, (function(i){return ((($receiver = smalltalk.send(flags, "_at_", [i])).klass === smalltalk.Boolean) ? ($receiver ? (function(){(prime=((($receiver = i).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));(k=((($receiver = i).klass === smalltalk.Number) ? $receiver +prime : smalltalk.send($receiver, "__plus", [prime])));(function(){while((function(){return ((($receiver = k).klass === smalltalk.Number) ? $receiver <=size : smalltalk.send($receiver, "__lt_eq", [size]));})()) {(function(){smalltalk.send(flags, "_at_put_", [k, false]);return (k=((($receiver = k).klass === smalltalk.Number) ? $receiver +prime : smalltalk.send($receiver, "__plus", [prime])));})()}})();return (count=((($receiver = count).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){(prime=((($receiver = i).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));(k=((($receiver = i).klass === smalltalk.Number) ? $receiver +prime : smalltalk.send($receiver, "__plus", [prime])));(function(){while((function(){return ((($receiver = k).klass === smalltalk.Number) ? $receiver <=size : smalltalk.send($receiver, "__lt_eq", [size]));})()) {(function(){smalltalk.send(flags, "_at_put_", [k, false]);return (k=((($receiver = k).klass === smalltalk.Number) ? $receiver +prime : smalltalk.send($receiver, "__plus", [prime])));})()}})();return (count=((($receiver = count).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));})]));})]);})]);
|
53
|
+
return count;
|
54
|
+
return self;},
|
55
|
+
args: [],
|
56
|
+
source: unescape('benchmark%20%0A%09%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'),
|
57
|
+
messageSends: ["to:do:", "new", "timesRepeat:", "add:", "ifTrue:", "at:", unescape("+"), "whileTrue:", unescape("%3C%3D"), "at:put:"],
|
58
|
+
referencedClasses: ["Array"]
|
59
|
+
}),
|
60
|
+
smalltalk.Number);
|
61
|
+
|
62
|
+
smalltalk.addMethod(
|
63
|
+
unescape('_tinyBenchmarks'),
|
64
|
+
smalltalk.method({
|
65
|
+
selector: unescape('tinyBenchmarks'),
|
66
|
+
category: '*Benchfib',
|
67
|
+
fn: function (){
|
68
|
+
var self=this;
|
69
|
+
var t1=nil;
|
70
|
+
var t2=nil;
|
71
|
+
var r=nil;
|
72
|
+
var n1=nil;
|
73
|
+
var n2=nil;
|
74
|
+
(n1=(1));
|
75
|
+
(function(){while((function(){(t1=smalltalk.send((smalltalk.Date || Date), "_millisecondsToRun_", [(function(){return smalltalk.send(n1, "_benchmark", []);})]));return ((($receiver = t1).klass === smalltalk.Number) ? $receiver <(1000) : smalltalk.send($receiver, "__lt", [(1000)]));})()) {(function(){return (n1=((($receiver = n1).klass === smalltalk.Number) ? $receiver *(2) : smalltalk.send($receiver, "__star", [(2)])));})()}})();
|
76
|
+
(n2=(16));
|
77
|
+
(function(){while((function(){(t2=smalltalk.send((smalltalk.Date || Date), "_millisecondsToRun_", [(function(){return (r=smalltalk.send(n2, "_benchFib", []));})]));return ((($receiver = t2).klass === smalltalk.Number) ? $receiver <(1000) : smalltalk.send($receiver, "__lt", [(1000)]));})()) {(function(){return (n2=((($receiver = n2).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));})()}})();
|
78
|
+
return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(((($receiver = ((($receiver = ((($receiver = n1).klass === smalltalk.Number) ? $receiver *(500000) : smalltalk.send($receiver, "__star", [(500000)]))).klass === smalltalk.Number) ? $receiver *(1000) : smalltalk.send($receiver, "__star", [(1000)]))).klass === smalltalk.Number) ? $receiver /t1 : smalltalk.send($receiver, "__slash", [t1])), "_printString", []), "__comma", [unescape("%20bytecodes/sec%3B%20")]), "__comma", [smalltalk.send(((($receiver = ((($receiver = r).klass === smalltalk.Number) ? $receiver *(1000) : smalltalk.send($receiver, "__star", [(1000)]))).klass === smalltalk.Number) ? $receiver /t2 : smalltalk.send($receiver, "__slash", [t2])), "_printString", [])]), "__comma", [unescape("%20sends/sec")]);
|
79
|
+
return self;},
|
80
|
+
args: [],
|
81
|
+
source: unescape('tinyBenchmarks%20%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%2016.%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'),
|
82
|
+
messageSends: ["whileTrue:", "millisecondsToRun:", "benchmark", unescape("%3C"), unescape("*"), "benchFib", unescape("+"), unescape("%2C"), "printString", unescape("/")],
|
83
|
+
referencedClasses: ["Date"]
|
84
|
+
}),
|
85
|
+
smalltalk.Number);
|
86
|
+
|
87
|
+
smalltalk.addMethod(
|
88
|
+
unescape('_jsbenchFib'),
|
89
|
+
smalltalk.method({
|
90
|
+
selector: unescape('jsbenchFib'),
|
91
|
+
category: '*Benchfib',
|
92
|
+
fn: function (){
|
93
|
+
var self=this;
|
94
|
+
if (this < 2) {
|
95
|
+
return 1;
|
96
|
+
} else {
|
97
|
+
return (this-1)._jsbenchFib() + (this-2)._jsbenchFib() + 1;};
|
98
|
+
return self;},
|
99
|
+
args: [],
|
100
|
+
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'),
|
101
|
+
messageSends: [],
|
102
|
+
referencedClasses: []
|
103
|
+
}),
|
104
|
+
smalltalk.Number);
|
105
|
+
|
106
|
+
smalltalk.addMethod(
|
107
|
+
unescape('_jsbenchmark'),
|
108
|
+
smalltalk.method({
|
109
|
+
selector: unescape('jsbenchmark'),
|
110
|
+
category: '*Benchfib',
|
111
|
+
fn: function (){
|
112
|
+
var self=this;
|
113
|
+
|
114
|
+
var size = 8190;
|
115
|
+
var count;
|
116
|
+
for (var z=0;z<this;z++) {
|
117
|
+
count = 0;
|
118
|
+
var flags = new Array();
|
119
|
+
for (var p=0; p<size; p++) {
|
120
|
+
flags[p] = true;
|
121
|
+
}
|
122
|
+
for (var i=1;i<=size;i++) {
|
123
|
+
if (flags[i-1]) {
|
124
|
+
var prime = i+1;
|
125
|
+
var k = i + prime;
|
126
|
+
while (k <= size) {
|
127
|
+
flags[k-1] = false;
|
128
|
+
k = k + prime;
|
129
|
+
}
|
130
|
+
count = count + 1;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
}
|
134
|
+
return count;
|
135
|
+
return self;},
|
136
|
+
args: [],
|
137
|
+
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'),
|
138
|
+
messageSends: [],
|
139
|
+
referencedClasses: []
|
140
|
+
}),
|
141
|
+
smalltalk.Number);
|
142
|
+
|
143
|
+
smalltalk.addMethod(
|
144
|
+
unescape('_jstinyBenchmarks'),
|
145
|
+
smalltalk.method({
|
146
|
+
selector: unescape('jstinyBenchmarks'),
|
147
|
+
category: '*Benchfib',
|
148
|
+
fn: function (){
|
149
|
+
var self=this;
|
150
|
+
var t1=nil;
|
151
|
+
var t2=nil;
|
152
|
+
var r=nil;
|
153
|
+
var n1=nil;
|
154
|
+
var n2=nil;
|
155
|
+
(n1=(1));
|
156
|
+
(function(){while((function(){(t1=smalltalk.send((smalltalk.Date || Date), "_millisecondsToRun_", [(function(){return smalltalk.send(n1, "_jsbenchmark", []);})]));return ((($receiver = t1).klass === smalltalk.Number) ? $receiver <(1000) : smalltalk.send($receiver, "__lt", [(1000)]));})()) {(function(){return (n1=((($receiver = n1).klass === smalltalk.Number) ? $receiver *(2) : smalltalk.send($receiver, "__star", [(2)])));})()}})();
|
157
|
+
(n2=(28));
|
158
|
+
(function(){while((function(){(t2=smalltalk.send((smalltalk.Date || Date), "_millisecondsToRun_", [(function(){return (r=smalltalk.send(n2, "_jsbenchFib", []));})]));return ((($receiver = t2).klass === smalltalk.Number) ? $receiver <(1000) : smalltalk.send($receiver, "__lt", [(1000)]));})()) {(function(){return (n2=((($receiver = n2).klass === smalltalk.Number) ? $receiver +(1) : smalltalk.send($receiver, "__plus", [(1)])));})()}})();
|
159
|
+
return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(((($receiver = ((($receiver = ((($receiver = n1).klass === smalltalk.Number) ? $receiver *(500000) : smalltalk.send($receiver, "__star", [(500000)]))).klass === smalltalk.Number) ? $receiver *(1000) : smalltalk.send($receiver, "__star", [(1000)]))).klass === smalltalk.Number) ? $receiver /t1 : smalltalk.send($receiver, "__slash", [t1])), "_printString", []), "__comma", [unescape("%20bytecodes/sec%3B%20")]), "__comma", [smalltalk.send(((($receiver = ((($receiver = r).klass === smalltalk.Number) ? $receiver *(1000) : smalltalk.send($receiver, "__star", [(1000)]))).klass === smalltalk.Number) ? $receiver /t2 : smalltalk.send($receiver, "__slash", [t2])), "_printString", [])]), "__comma", [unescape("%20sends/sec")]);
|
160
|
+
return self;},
|
161
|
+
args: [],
|
162
|
+
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'),
|
163
|
+
messageSends: ["whileTrue:", "millisecondsToRun:", "jsbenchmark", unescape("%3C"), unescape("*"), "jsbenchFib", unescape("+"), unescape("%2C"), "printString", unescape("/")],
|
164
|
+
referencedClasses: ["Date"]
|
165
|
+
}),
|
166
|
+
smalltalk.Number);
|
167
|
+
|
@@ -0,0 +1,1304 @@
|
|
1
|
+
smalltalk.addPackage('Canvas', {});
|
2
|
+
smalltalk.addClass('HTMLCanvas', smalltalk.Object, ['root'], 'Canvas');
|
3
|
+
smalltalk.addMethod(
|
4
|
+
'_root_',
|
5
|
+
smalltalk.method({
|
6
|
+
selector: 'root:',
|
7
|
+
fn: function (aTagBrush){
|
8
|
+
var self=this;
|
9
|
+
(self['@root']=aTagBrush);
|
10
|
+
return self;}
|
11
|
+
}),
|
12
|
+
smalltalk.HTMLCanvas);
|
13
|
+
|
14
|
+
smalltalk.addMethod(
|
15
|
+
'_root',
|
16
|
+
smalltalk.method({
|
17
|
+
selector: 'root',
|
18
|
+
fn: function (){
|
19
|
+
var self=this;
|
20
|
+
return self['@root'];
|
21
|
+
return self;}
|
22
|
+
}),
|
23
|
+
smalltalk.HTMLCanvas);
|
24
|
+
|
25
|
+
smalltalk.addMethod(
|
26
|
+
'_with_',
|
27
|
+
smalltalk.method({
|
28
|
+
selector: 'with:',
|
29
|
+
fn: function (anObject){
|
30
|
+
var self=this;
|
31
|
+
return smalltalk.send(smalltalk.send(self, "_root", []), "_with_", [anObject]);
|
32
|
+
return self;}
|
33
|
+
}),
|
34
|
+
smalltalk.HTMLCanvas);
|
35
|
+
|
36
|
+
smalltalk.addMethod(
|
37
|
+
'_initialize',
|
38
|
+
smalltalk.method({
|
39
|
+
selector: 'initialize',
|
40
|
+
fn: function (){
|
41
|
+
var self=this;
|
42
|
+
smalltalk.send(self, "_initialize", [], smalltalk.Object);
|
43
|
+
(($receiver = self['@root']) == nil || $receiver == undefined) ? (function(){return (self['@root']=smalltalk.send((smalltalk.TagBrush || TagBrush), "_fromString_canvas_", ["div", self]));})() : $receiver;
|
44
|
+
return self;}
|
45
|
+
}),
|
46
|
+
smalltalk.HTMLCanvas);
|
47
|
+
|
48
|
+
smalltalk.addMethod(
|
49
|
+
'_initializeFromJQuery_',
|
50
|
+
smalltalk.method({
|
51
|
+
selector: 'initializeFromJQuery:',
|
52
|
+
fn: function (aJQuery){
|
53
|
+
var self=this;
|
54
|
+
(self['@root']=smalltalk.send((smalltalk.TagBrush || TagBrush), "_fromJQuery_canvas_", [aJQuery, self]));
|
55
|
+
return self;}
|
56
|
+
}),
|
57
|
+
smalltalk.HTMLCanvas);
|
58
|
+
|
59
|
+
smalltalk.addMethod(
|
60
|
+
'_newTag_',
|
61
|
+
smalltalk.method({
|
62
|
+
selector: 'newTag:',
|
63
|
+
fn: function (aString){
|
64
|
+
var self=this;
|
65
|
+
return smalltalk.send((smalltalk.TagBrush || TagBrush), "_fromString_canvas_", [aString, self]);
|
66
|
+
return self;}
|
67
|
+
}),
|
68
|
+
smalltalk.HTMLCanvas);
|
69
|
+
|
70
|
+
smalltalk.addMethod(
|
71
|
+
'_tag_',
|
72
|
+
smalltalk.method({
|
73
|
+
selector: 'tag:',
|
74
|
+
fn: function (aString){
|
75
|
+
var self=this;
|
76
|
+
return smalltalk.send(self['@root'], "_addBrush_", [smalltalk.send(self, "_newTag_", [aString])]);
|
77
|
+
return self;}
|
78
|
+
}),
|
79
|
+
smalltalk.HTMLCanvas);
|
80
|
+
|
81
|
+
smalltalk.addMethod(
|
82
|
+
'_h1',
|
83
|
+
smalltalk.method({
|
84
|
+
selector: 'h1',
|
85
|
+
fn: function (){
|
86
|
+
var self=this;
|
87
|
+
return smalltalk.send(self, "_tag_", ["h1"]);
|
88
|
+
return self;}
|
89
|
+
}),
|
90
|
+
smalltalk.HTMLCanvas);
|
91
|
+
|
92
|
+
smalltalk.addMethod(
|
93
|
+
'_h2',
|
94
|
+
smalltalk.method({
|
95
|
+
selector: 'h2',
|
96
|
+
fn: function (){
|
97
|
+
var self=this;
|
98
|
+
return smalltalk.send(self, "_tag_", ["h2"]);
|
99
|
+
return self;}
|
100
|
+
}),
|
101
|
+
smalltalk.HTMLCanvas);
|
102
|
+
|
103
|
+
smalltalk.addMethod(
|
104
|
+
'_h3',
|
105
|
+
smalltalk.method({
|
106
|
+
selector: 'h3',
|
107
|
+
fn: function (){
|
108
|
+
var self=this;
|
109
|
+
return smalltalk.send(self, "_tag_", ["h3"]);
|
110
|
+
return self;}
|
111
|
+
}),
|
112
|
+
smalltalk.HTMLCanvas);
|
113
|
+
|
114
|
+
smalltalk.addMethod(
|
115
|
+
'_h4',
|
116
|
+
smalltalk.method({
|
117
|
+
selector: 'h4',
|
118
|
+
fn: function (){
|
119
|
+
var self=this;
|
120
|
+
return smalltalk.send(self, "_tag_", ["h4"]);
|
121
|
+
return self;}
|
122
|
+
}),
|
123
|
+
smalltalk.HTMLCanvas);
|
124
|
+
|
125
|
+
smalltalk.addMethod(
|
126
|
+
'_h5',
|
127
|
+
smalltalk.method({
|
128
|
+
selector: 'h5',
|
129
|
+
fn: function (){
|
130
|
+
var self=this;
|
131
|
+
return smalltalk.send(self, "_tag_", ["h5"]);
|
132
|
+
return self;}
|
133
|
+
}),
|
134
|
+
smalltalk.HTMLCanvas);
|
135
|
+
|
136
|
+
smalltalk.addMethod(
|
137
|
+
'_h6',
|
138
|
+
smalltalk.method({
|
139
|
+
selector: 'h6',
|
140
|
+
fn: function (){
|
141
|
+
var self=this;
|
142
|
+
return smalltalk.send(self, "_tag_", ["h6"]);
|
143
|
+
return self;}
|
144
|
+
}),
|
145
|
+
smalltalk.HTMLCanvas);
|
146
|
+
|
147
|
+
smalltalk.addMethod(
|
148
|
+
'_p',
|
149
|
+
smalltalk.method({
|
150
|
+
selector: 'p',
|
151
|
+
fn: function (){
|
152
|
+
var self=this;
|
153
|
+
return smalltalk.send(self, "_tag_", ["p"]);
|
154
|
+
return self;}
|
155
|
+
}),
|
156
|
+
smalltalk.HTMLCanvas);
|
157
|
+
|
158
|
+
smalltalk.addMethod(
|
159
|
+
'_div',
|
160
|
+
smalltalk.method({
|
161
|
+
selector: 'div',
|
162
|
+
fn: function (){
|
163
|
+
var self=this;
|
164
|
+
return smalltalk.send(self, "_tag_", ["div"]);
|
165
|
+
return self;}
|
166
|
+
}),
|
167
|
+
smalltalk.HTMLCanvas);
|
168
|
+
|
169
|
+
smalltalk.addMethod(
|
170
|
+
'_span',
|
171
|
+
smalltalk.method({
|
172
|
+
selector: 'span',
|
173
|
+
fn: function (){
|
174
|
+
var self=this;
|
175
|
+
return smalltalk.send(self, "_tag_", ["span"]);
|
176
|
+
return self;}
|
177
|
+
}),
|
178
|
+
smalltalk.HTMLCanvas);
|
179
|
+
|
180
|
+
smalltalk.addMethod(
|
181
|
+
'_img',
|
182
|
+
smalltalk.method({
|
183
|
+
selector: 'img',
|
184
|
+
fn: function (){
|
185
|
+
var self=this;
|
186
|
+
return smalltalk.send(self, "_tag_", ["img"]);
|
187
|
+
return self;}
|
188
|
+
}),
|
189
|
+
smalltalk.HTMLCanvas);
|
190
|
+
|
191
|
+
smalltalk.addMethod(
|
192
|
+
'_ul',
|
193
|
+
smalltalk.method({
|
194
|
+
selector: 'ul',
|
195
|
+
fn: function (){
|
196
|
+
var self=this;
|
197
|
+
return smalltalk.send(self, "_tag_", ["ul"]);
|
198
|
+
return self;}
|
199
|
+
}),
|
200
|
+
smalltalk.HTMLCanvas);
|
201
|
+
|
202
|
+
smalltalk.addMethod(
|
203
|
+
'_ol',
|
204
|
+
smalltalk.method({
|
205
|
+
selector: 'ol',
|
206
|
+
fn: function (){
|
207
|
+
var self=this;
|
208
|
+
return smalltalk.send(self, "_tag_", ["ol"]);
|
209
|
+
return self;}
|
210
|
+
}),
|
211
|
+
smalltalk.HTMLCanvas);
|
212
|
+
|
213
|
+
smalltalk.addMethod(
|
214
|
+
'_li',
|
215
|
+
smalltalk.method({
|
216
|
+
selector: 'li',
|
217
|
+
fn: function (){
|
218
|
+
var self=this;
|
219
|
+
return smalltalk.send(self, "_tag_", ["li"]);
|
220
|
+
return self;}
|
221
|
+
}),
|
222
|
+
smalltalk.HTMLCanvas);
|
223
|
+
|
224
|
+
smalltalk.addMethod(
|
225
|
+
'_table',
|
226
|
+
smalltalk.method({
|
227
|
+
selector: 'table',
|
228
|
+
fn: function (){
|
229
|
+
var self=this;
|
230
|
+
return smalltalk.send(self, "_tag_", ["table"]);
|
231
|
+
return self;}
|
232
|
+
}),
|
233
|
+
smalltalk.HTMLCanvas);
|
234
|
+
|
235
|
+
smalltalk.addMethod(
|
236
|
+
'_tr',
|
237
|
+
smalltalk.method({
|
238
|
+
selector: 'tr',
|
239
|
+
fn: function (){
|
240
|
+
var self=this;
|
241
|
+
return smalltalk.send(self, "_tag_", ["tr"]);
|
242
|
+
return self;}
|
243
|
+
}),
|
244
|
+
smalltalk.HTMLCanvas);
|
245
|
+
|
246
|
+
smalltalk.addMethod(
|
247
|
+
'_td',
|
248
|
+
smalltalk.method({
|
249
|
+
selector: 'td',
|
250
|
+
fn: function (){
|
251
|
+
var self=this;
|
252
|
+
return smalltalk.send(self, "_tag_", ["td"]);
|
253
|
+
return self;}
|
254
|
+
}),
|
255
|
+
smalltalk.HTMLCanvas);
|
256
|
+
|
257
|
+
smalltalk.addMethod(
|
258
|
+
'_th',
|
259
|
+
smalltalk.method({
|
260
|
+
selector: 'th',
|
261
|
+
fn: function (){
|
262
|
+
var self=this;
|
263
|
+
return smalltalk.send(self, "_tag_", ["th"]);
|
264
|
+
return self;}
|
265
|
+
}),
|
266
|
+
smalltalk.HTMLCanvas);
|
267
|
+
|
268
|
+
smalltalk.addMethod(
|
269
|
+
'_form',
|
270
|
+
smalltalk.method({
|
271
|
+
selector: 'form',
|
272
|
+
fn: function (){
|
273
|
+
var self=this;
|
274
|
+
return smalltalk.send(self, "_tag_", ["form"]);
|
275
|
+
return self;}
|
276
|
+
}),
|
277
|
+
smalltalk.HTMLCanvas);
|
278
|
+
|
279
|
+
smalltalk.addMethod(
|
280
|
+
'_input',
|
281
|
+
smalltalk.method({
|
282
|
+
selector: 'input',
|
283
|
+
fn: function (){
|
284
|
+
var self=this;
|
285
|
+
return smalltalk.send(self, "_tag_", ["input"]);
|
286
|
+
return self;}
|
287
|
+
}),
|
288
|
+
smalltalk.HTMLCanvas);
|
289
|
+
|
290
|
+
smalltalk.addMethod(
|
291
|
+
'_button',
|
292
|
+
smalltalk.method({
|
293
|
+
selector: 'button',
|
294
|
+
fn: function (){
|
295
|
+
var self=this;
|
296
|
+
return smalltalk.send(self, "_tag_", ["button"]);
|
297
|
+
return self;}
|
298
|
+
}),
|
299
|
+
smalltalk.HTMLCanvas);
|
300
|
+
|
301
|
+
smalltalk.addMethod(
|
302
|
+
'_select',
|
303
|
+
smalltalk.method({
|
304
|
+
selector: 'select',
|
305
|
+
fn: function (){
|
306
|
+
var self=this;
|
307
|
+
return smalltalk.send(self, "_tag_", ["select"]);
|
308
|
+
return self;}
|
309
|
+
}),
|
310
|
+
smalltalk.HTMLCanvas);
|
311
|
+
|
312
|
+
smalltalk.addMethod(
|
313
|
+
'_option',
|
314
|
+
smalltalk.method({
|
315
|
+
selector: 'option',
|
316
|
+
fn: function (){
|
317
|
+
var self=this;
|
318
|
+
return smalltalk.send(self, "_tag_", ["option"]);
|
319
|
+
return self;}
|
320
|
+
}),
|
321
|
+
smalltalk.HTMLCanvas);
|
322
|
+
|
323
|
+
smalltalk.addMethod(
|
324
|
+
'_textarea',
|
325
|
+
smalltalk.method({
|
326
|
+
selector: 'textarea',
|
327
|
+
fn: function (){
|
328
|
+
var self=this;
|
329
|
+
return smalltalk.send(self, "_tag_", ["textarea"]);
|
330
|
+
return self;}
|
331
|
+
}),
|
332
|
+
smalltalk.HTMLCanvas);
|
333
|
+
|
334
|
+
smalltalk.addMethod(
|
335
|
+
'_a',
|
336
|
+
smalltalk.method({
|
337
|
+
selector: 'a',
|
338
|
+
fn: function (){
|
339
|
+
var self=this;
|
340
|
+
return smalltalk.send(self, "_tag_", ["a"]);
|
341
|
+
return self;}
|
342
|
+
}),
|
343
|
+
smalltalk.HTMLCanvas);
|
344
|
+
|
345
|
+
smalltalk.addMethod(
|
346
|
+
'_canvas',
|
347
|
+
smalltalk.method({
|
348
|
+
selector: 'canvas',
|
349
|
+
fn: function (){
|
350
|
+
var self=this;
|
351
|
+
return smalltalk.send(self, "_tag_", ["canvas"]);
|
352
|
+
return self;}
|
353
|
+
}),
|
354
|
+
smalltalk.HTMLCanvas);
|
355
|
+
|
356
|
+
smalltalk.addMethod(
|
357
|
+
'_pre',
|
358
|
+
smalltalk.method({
|
359
|
+
selector: 'pre',
|
360
|
+
fn: function (){
|
361
|
+
var self=this;
|
362
|
+
return smalltalk.send(self, "_tag_", ["pre"]);
|
363
|
+
return self;}
|
364
|
+
}),
|
365
|
+
smalltalk.HTMLCanvas);
|
366
|
+
|
367
|
+
smalltalk.addMethod(
|
368
|
+
'_code',
|
369
|
+
smalltalk.method({
|
370
|
+
selector: 'code',
|
371
|
+
fn: function (){
|
372
|
+
var self=this;
|
373
|
+
return smalltalk.send(self, "_tag_", ["code"]);
|
374
|
+
return self;}
|
375
|
+
}),
|
376
|
+
smalltalk.HTMLCanvas);
|
377
|
+
|
378
|
+
smalltalk.addMethod(
|
379
|
+
'_br',
|
380
|
+
smalltalk.method({
|
381
|
+
selector: 'br',
|
382
|
+
fn: function (){
|
383
|
+
var self=this;
|
384
|
+
return smalltalk.send(self, "_tag_", ["br"]);
|
385
|
+
return self;}
|
386
|
+
}),
|
387
|
+
smalltalk.HTMLCanvas);
|
388
|
+
|
389
|
+
smalltalk.addMethod(
|
390
|
+
'_script',
|
391
|
+
smalltalk.method({
|
392
|
+
selector: 'script',
|
393
|
+
fn: function (){
|
394
|
+
var self=this;
|
395
|
+
return smalltalk.send(self, "_tag_", ["script"]);
|
396
|
+
return self;}
|
397
|
+
}),
|
398
|
+
smalltalk.HTMLCanvas);
|
399
|
+
|
400
|
+
smalltalk.addMethod(
|
401
|
+
'_link',
|
402
|
+
smalltalk.method({
|
403
|
+
selector: 'link',
|
404
|
+
fn: function (){
|
405
|
+
var self=this;
|
406
|
+
return smalltalk.send(self, "_tag_", ["link"]);
|
407
|
+
return self;}
|
408
|
+
}),
|
409
|
+
smalltalk.HTMLCanvas);
|
410
|
+
|
411
|
+
smalltalk.addMethod(
|
412
|
+
'_style',
|
413
|
+
smalltalk.method({
|
414
|
+
selector: 'style',
|
415
|
+
fn: function (){
|
416
|
+
var self=this;
|
417
|
+
return smalltalk.send(self['@root'], "_addBrush_", [smalltalk.send((smalltalk.StyleTag || StyleTag), "_canvas_", [self])]);
|
418
|
+
return self;}
|
419
|
+
}),
|
420
|
+
smalltalk.HTMLCanvas);
|
421
|
+
|
422
|
+
smalltalk.addMethod(
|
423
|
+
'_p_',
|
424
|
+
smalltalk.method({
|
425
|
+
selector: 'p:',
|
426
|
+
fn: function (anObject){
|
427
|
+
var self=this;
|
428
|
+
return smalltalk.send(smalltalk.send(self, "_p", []), "_with_", [anObject]);
|
429
|
+
return self;}
|
430
|
+
}),
|
431
|
+
smalltalk.HTMLCanvas);
|
432
|
+
|
433
|
+
smalltalk.addMethod(
|
434
|
+
'_h1_',
|
435
|
+
smalltalk.method({
|
436
|
+
selector: 'h1:',
|
437
|
+
fn: function (anObject){
|
438
|
+
var self=this;
|
439
|
+
return smalltalk.send(smalltalk.send(self, "_h1", []), "_with_", [anObject]);
|
440
|
+
return self;}
|
441
|
+
}),
|
442
|
+
smalltalk.HTMLCanvas);
|
443
|
+
|
444
|
+
smalltalk.addMethod(
|
445
|
+
'_iframe',
|
446
|
+
smalltalk.method({
|
447
|
+
selector: 'iframe',
|
448
|
+
fn: function (){
|
449
|
+
var self=this;
|
450
|
+
return smalltalk.send(self, "_tag_", ["iframe"]);
|
451
|
+
return self;}
|
452
|
+
}),
|
453
|
+
smalltalk.HTMLCanvas);
|
454
|
+
|
455
|
+
smalltalk.addMethod(
|
456
|
+
'_iframe_',
|
457
|
+
smalltalk.method({
|
458
|
+
selector: 'iframe:',
|
459
|
+
fn: function (aString){
|
460
|
+
var self=this;
|
461
|
+
return smalltalk.send(smalltalk.send(self, "_iframe", []), "_src_", [aString]);
|
462
|
+
return self;}
|
463
|
+
}),
|
464
|
+
smalltalk.HTMLCanvas);
|
465
|
+
|
466
|
+
smalltalk.addMethod(
|
467
|
+
'_h2_',
|
468
|
+
smalltalk.method({
|
469
|
+
selector: 'h2:',
|
470
|
+
fn: function (anObject){
|
471
|
+
var self=this;
|
472
|
+
return smalltalk.send(smalltalk.send(self, "_h2", []), "_with_", [anObject]);
|
473
|
+
return self;}
|
474
|
+
}),
|
475
|
+
smalltalk.HTMLCanvas);
|
476
|
+
|
477
|
+
smalltalk.addMethod(
|
478
|
+
'_h3_',
|
479
|
+
smalltalk.method({
|
480
|
+
selector: 'h3:',
|
481
|
+
fn: function (anObject){
|
482
|
+
var self=this;
|
483
|
+
return smalltalk.send(smalltalk.send(self, "_h3", []), "_with_", [anObject]);
|
484
|
+
return self;}
|
485
|
+
}),
|
486
|
+
smalltalk.HTMLCanvas);
|
487
|
+
|
488
|
+
smalltalk.addMethod(
|
489
|
+
'_h4_',
|
490
|
+
smalltalk.method({
|
491
|
+
selector: 'h4:',
|
492
|
+
fn: function (anObject){
|
493
|
+
var self=this;
|
494
|
+
return smalltalk.send(smalltalk.send(self, "_h4", []), "_with_", [anObject]);
|
495
|
+
return self;}
|
496
|
+
}),
|
497
|
+
smalltalk.HTMLCanvas);
|
498
|
+
|
499
|
+
smalltalk.addMethod(
|
500
|
+
'_h5_',
|
501
|
+
smalltalk.method({
|
502
|
+
selector: 'h5:',
|
503
|
+
fn: function (anObject){
|
504
|
+
var self=this;
|
505
|
+
return smalltalk.send(smalltalk.send(self, "_h5", []), "_with_", [anObject]);
|
506
|
+
return self;}
|
507
|
+
}),
|
508
|
+
smalltalk.HTMLCanvas);
|
509
|
+
|
510
|
+
smalltalk.addMethod(
|
511
|
+
'_h6_',
|
512
|
+
smalltalk.method({
|
513
|
+
selector: 'h6:',
|
514
|
+
fn: function (anObject){
|
515
|
+
var self=this;
|
516
|
+
return smalltalk.send(smalltalk.send(self, "_h6", []), "_with_", [anObject]);
|
517
|
+
return self;}
|
518
|
+
}),
|
519
|
+
smalltalk.HTMLCanvas);
|
520
|
+
|
521
|
+
smalltalk.addMethod(
|
522
|
+
'_img_',
|
523
|
+
smalltalk.method({
|
524
|
+
selector: 'img:',
|
525
|
+
fn: function (aString){
|
526
|
+
var self=this;
|
527
|
+
return smalltalk.send(smalltalk.send(self, "_img", []), "_src_", [aString]);
|
528
|
+
return self;}
|
529
|
+
}),
|
530
|
+
smalltalk.HTMLCanvas);
|
531
|
+
|
532
|
+
smalltalk.addMethod(
|
533
|
+
'_ol_',
|
534
|
+
smalltalk.method({
|
535
|
+
selector: 'ol:',
|
536
|
+
fn: function (anObject){
|
537
|
+
var self=this;
|
538
|
+
return smalltalk.send(smalltalk.send(self, "_ol", []), "_with_", [anObject]);
|
539
|
+
return self;}
|
540
|
+
}),
|
541
|
+
smalltalk.HTMLCanvas);
|
542
|
+
|
543
|
+
smalltalk.addMethod(
|
544
|
+
'_li_',
|
545
|
+
smalltalk.method({
|
546
|
+
selector: 'li:',
|
547
|
+
fn: function (anObject){
|
548
|
+
var self=this;
|
549
|
+
return smalltalk.send(smalltalk.send(self, "_li", []), "_with_", [anObject]);
|
550
|
+
return self;}
|
551
|
+
}),
|
552
|
+
smalltalk.HTMLCanvas);
|
553
|
+
|
554
|
+
smalltalk.addMethod(
|
555
|
+
'_ul_',
|
556
|
+
smalltalk.method({
|
557
|
+
selector: 'ul:',
|
558
|
+
fn: function (anObject){
|
559
|
+
var self=this;
|
560
|
+
return smalltalk.send(smalltalk.send(self, "_ul", []), "_with_", [anObject]);
|
561
|
+
return self;}
|
562
|
+
}),
|
563
|
+
smalltalk.HTMLCanvas);
|
564
|
+
|
565
|
+
smalltalk.addMethod(
|
566
|
+
'_span_',
|
567
|
+
smalltalk.method({
|
568
|
+
selector: 'span:',
|
569
|
+
fn: function (anObject){
|
570
|
+
var self=this;
|
571
|
+
return smalltalk.send(smalltalk.send(self, "_span", []), "_with_", [anObject]);
|
572
|
+
return self;}
|
573
|
+
}),
|
574
|
+
smalltalk.HTMLCanvas);
|
575
|
+
|
576
|
+
smalltalk.addMethod(
|
577
|
+
'_style_',
|
578
|
+
smalltalk.method({
|
579
|
+
selector: 'style:',
|
580
|
+
fn: function (aString){
|
581
|
+
var self=this;
|
582
|
+
return (function($rec){smalltalk.send($rec, "_with_", [aString]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_style", []));
|
583
|
+
return self;}
|
584
|
+
}),
|
585
|
+
smalltalk.HTMLCanvas);
|
586
|
+
|
587
|
+
smalltalk.addMethod(
|
588
|
+
'_articles',
|
589
|
+
smalltalk.method({
|
590
|
+
selector: 'articles',
|
591
|
+
fn: function (){
|
592
|
+
var self=this;
|
593
|
+
return smalltalk.send(self, "_tag_", ["articles"]);
|
594
|
+
return self;}
|
595
|
+
}),
|
596
|
+
smalltalk.HTMLCanvas);
|
597
|
+
|
598
|
+
smalltalk.addMethod(
|
599
|
+
'_audio',
|
600
|
+
smalltalk.method({
|
601
|
+
selector: 'audio',
|
602
|
+
fn: function (){
|
603
|
+
var self=this;
|
604
|
+
return smalltalk.send(self, "_tag_", ["audio"]);
|
605
|
+
return self;}
|
606
|
+
}),
|
607
|
+
smalltalk.HTMLCanvas);
|
608
|
+
|
609
|
+
smalltalk.addMethod(
|
610
|
+
'_fieldset',
|
611
|
+
smalltalk.method({
|
612
|
+
selector: 'fieldset',
|
613
|
+
fn: function (){
|
614
|
+
var self=this;
|
615
|
+
return smalltalk.send(self, "_tag_", ["fieldset"]);
|
616
|
+
return self;}
|
617
|
+
}),
|
618
|
+
smalltalk.HTMLCanvas);
|
619
|
+
|
620
|
+
smalltalk.addMethod(
|
621
|
+
'_footer',
|
622
|
+
smalltalk.method({
|
623
|
+
selector: 'footer',
|
624
|
+
fn: function (){
|
625
|
+
var self=this;
|
626
|
+
return smalltalk.send(self, "_tag_", ["footer"]);
|
627
|
+
return self;}
|
628
|
+
}),
|
629
|
+
smalltalk.HTMLCanvas);
|
630
|
+
|
631
|
+
smalltalk.addMethod(
|
632
|
+
'_header',
|
633
|
+
smalltalk.method({
|
634
|
+
selector: 'header',
|
635
|
+
fn: function (){
|
636
|
+
var self=this;
|
637
|
+
return smalltalk.send(self, "_tag_", ["header"]);
|
638
|
+
return self;}
|
639
|
+
}),
|
640
|
+
smalltalk.HTMLCanvas);
|
641
|
+
|
642
|
+
smalltalk.addMethod(
|
643
|
+
'_hr',
|
644
|
+
smalltalk.method({
|
645
|
+
selector: 'hr',
|
646
|
+
fn: function (){
|
647
|
+
var self=this;
|
648
|
+
return smalltalk.send(self, "_tag_", ["hr"]);
|
649
|
+
return self;}
|
650
|
+
}),
|
651
|
+
smalltalk.HTMLCanvas);
|
652
|
+
|
653
|
+
smalltalk.addMethod(
|
654
|
+
'_section',
|
655
|
+
smalltalk.method({
|
656
|
+
selector: 'section',
|
657
|
+
fn: function (){
|
658
|
+
var self=this;
|
659
|
+
return smalltalk.send(self, "_tag_", ["section"]);
|
660
|
+
return self;}
|
661
|
+
}),
|
662
|
+
smalltalk.HTMLCanvas);
|
663
|
+
|
664
|
+
smalltalk.addMethod(
|
665
|
+
'_tbody',
|
666
|
+
smalltalk.method({
|
667
|
+
selector: 'tbody',
|
668
|
+
fn: function (){
|
669
|
+
var self=this;
|
670
|
+
return smalltalk.send(self, "_tag_", ["tbody"]);
|
671
|
+
return self;}
|
672
|
+
}),
|
673
|
+
smalltalk.HTMLCanvas);
|
674
|
+
|
675
|
+
smalltalk.addMethod(
|
676
|
+
'_tfoot',
|
677
|
+
smalltalk.method({
|
678
|
+
selector: 'tfoot',
|
679
|
+
fn: function (){
|
680
|
+
var self=this;
|
681
|
+
return smalltalk.send(self, "_tag_", ["tfoot"]);
|
682
|
+
return self;}
|
683
|
+
}),
|
684
|
+
smalltalk.HTMLCanvas);
|
685
|
+
|
686
|
+
smalltalk.addMethod(
|
687
|
+
'_thead',
|
688
|
+
smalltalk.method({
|
689
|
+
selector: 'thead',
|
690
|
+
fn: function (){
|
691
|
+
var self=this;
|
692
|
+
return smalltalk.send(self, "_tag_", ["thead"]);
|
693
|
+
return self;}
|
694
|
+
}),
|
695
|
+
smalltalk.HTMLCanvas);
|
696
|
+
|
697
|
+
smalltalk.addMethod(
|
698
|
+
'_video',
|
699
|
+
smalltalk.method({
|
700
|
+
selector: 'video',
|
701
|
+
fn: function (){
|
702
|
+
var self=this;
|
703
|
+
return smalltalk.send(self, "_tag_", ["video"]);
|
704
|
+
return self;}
|
705
|
+
}),
|
706
|
+
smalltalk.HTMLCanvas);
|
707
|
+
|
708
|
+
|
709
|
+
smalltalk.addMethod(
|
710
|
+
'_onJQuery_',
|
711
|
+
smalltalk.method({
|
712
|
+
selector: 'onJQuery:',
|
713
|
+
fn: function (aJQuery){
|
714
|
+
var self=this;
|
715
|
+
return (function($rec){smalltalk.send($rec, "_initializeFromJQuery_", [aJQuery]);smalltalk.send($rec, "_initialize", []);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_basicNew", []));
|
716
|
+
return self;}
|
717
|
+
}),
|
718
|
+
smalltalk.HTMLCanvas.klass);
|
719
|
+
|
720
|
+
|
721
|
+
smalltalk.addClass('TagBrush', smalltalk.Object, ['canvas', 'element'], 'Canvas');
|
722
|
+
smalltalk.addMethod(
|
723
|
+
'_element',
|
724
|
+
smalltalk.method({
|
725
|
+
selector: 'element',
|
726
|
+
fn: function (){
|
727
|
+
var self=this;
|
728
|
+
return self['@element'];
|
729
|
+
return self;}
|
730
|
+
}),
|
731
|
+
smalltalk.TagBrush);
|
732
|
+
|
733
|
+
smalltalk.addMethod(
|
734
|
+
'_contents_',
|
735
|
+
smalltalk.method({
|
736
|
+
selector: 'contents:',
|
737
|
+
fn: function (anObject){
|
738
|
+
var self=this;
|
739
|
+
(function($rec){smalltalk.send($rec, "_empty", []);return smalltalk.send($rec, "_append_", [anObject]);})(self);
|
740
|
+
return self;}
|
741
|
+
}),
|
742
|
+
smalltalk.TagBrush);
|
743
|
+
|
744
|
+
smalltalk.addMethod(
|
745
|
+
'_addBrush_',
|
746
|
+
smalltalk.method({
|
747
|
+
selector: 'addBrush:',
|
748
|
+
fn: function (aTagBrush){
|
749
|
+
var self=this;
|
750
|
+
smalltalk.send(self, "_appendChild_", [smalltalk.send(aTagBrush, "_element", [])]);
|
751
|
+
return aTagBrush;
|
752
|
+
return self;}
|
753
|
+
}),
|
754
|
+
smalltalk.TagBrush);
|
755
|
+
|
756
|
+
smalltalk.addMethod(
|
757
|
+
'_with_',
|
758
|
+
smalltalk.method({
|
759
|
+
selector: 'with:',
|
760
|
+
fn: function (anObject){
|
761
|
+
var self=this;
|
762
|
+
smalltalk.send(self, "_append_", [anObject]);
|
763
|
+
return self;}
|
764
|
+
}),
|
765
|
+
smalltalk.TagBrush);
|
766
|
+
|
767
|
+
smalltalk.addMethod(
|
768
|
+
'_append_',
|
769
|
+
smalltalk.method({
|
770
|
+
selector: 'append:',
|
771
|
+
fn: function (anObject){
|
772
|
+
var self=this;
|
773
|
+
smalltalk.send(anObject, "_appendToBrush_", [self]);
|
774
|
+
return self;}
|
775
|
+
}),
|
776
|
+
smalltalk.TagBrush);
|
777
|
+
|
778
|
+
smalltalk.addMethod(
|
779
|
+
'_appendToBrush_',
|
780
|
+
smalltalk.method({
|
781
|
+
selector: 'appendToBrush:',
|
782
|
+
fn: function (aTagBrush){
|
783
|
+
var self=this;
|
784
|
+
smalltalk.send(aTagBrush, "_addBrush_", [self]);
|
785
|
+
return self;}
|
786
|
+
}),
|
787
|
+
smalltalk.TagBrush);
|
788
|
+
|
789
|
+
smalltalk.addMethod(
|
790
|
+
'_appendBlock_',
|
791
|
+
smalltalk.method({
|
792
|
+
selector: 'appendBlock:',
|
793
|
+
fn: function (aBlock){
|
794
|
+
var self=this;
|
795
|
+
var root=nil;
|
796
|
+
(root=smalltalk.send(self['@canvas'], "_root", []));
|
797
|
+
smalltalk.send(self['@canvas'], "_root_", [self]);
|
798
|
+
smalltalk.send(aBlock, "_value_", [self['@canvas']]);
|
799
|
+
smalltalk.send(self['@canvas'], "_root_", [root]);
|
800
|
+
return self;}
|
801
|
+
}),
|
802
|
+
smalltalk.TagBrush);
|
803
|
+
|
804
|
+
smalltalk.addMethod(
|
805
|
+
'_appendChild_',
|
806
|
+
smalltalk.method({
|
807
|
+
selector: 'appendChild:',
|
808
|
+
fn: function (anElement){
|
809
|
+
var self=this;
|
810
|
+
var element=self['@element'];
|
811
|
+
if (null == element.canHaveChildren || element.canHaveChildren) {
|
812
|
+
element.appendChild(anElement);
|
813
|
+
} else {
|
814
|
+
element.text = String(element.text) + anElement.innerHTML;
|
815
|
+
} ;
|
816
|
+
return self;}
|
817
|
+
}),
|
818
|
+
smalltalk.TagBrush);
|
819
|
+
|
820
|
+
smalltalk.addMethod(
|
821
|
+
'_appendString_',
|
822
|
+
smalltalk.method({
|
823
|
+
selector: 'appendString:',
|
824
|
+
fn: function (aString){
|
825
|
+
var self=this;
|
826
|
+
smalltalk.send(self, "_appendChild_", [smalltalk.send(self, "_createTextNodeFor_", [aString])]);
|
827
|
+
return self;}
|
828
|
+
}),
|
829
|
+
smalltalk.TagBrush);
|
830
|
+
|
831
|
+
smalltalk.addMethod(
|
832
|
+
'_empty',
|
833
|
+
smalltalk.method({
|
834
|
+
selector: 'empty',
|
835
|
+
fn: function (){
|
836
|
+
var self=this;
|
837
|
+
smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_empty", []);
|
838
|
+
return self;}
|
839
|
+
}),
|
840
|
+
smalltalk.TagBrush);
|
841
|
+
|
842
|
+
smalltalk.addMethod(
|
843
|
+
'_at_put_',
|
844
|
+
smalltalk.method({
|
845
|
+
selector: 'at:put:',
|
846
|
+
fn: function (aString, aValue){
|
847
|
+
var self=this;
|
848
|
+
self['@element'].setAttribute(aString, aValue);
|
849
|
+
return self;}
|
850
|
+
}),
|
851
|
+
smalltalk.TagBrush);
|
852
|
+
|
853
|
+
smalltalk.addMethod(
|
854
|
+
'_removeAt_',
|
855
|
+
smalltalk.method({
|
856
|
+
selector: 'removeAt:',
|
857
|
+
fn: function (aString){
|
858
|
+
var self=this;
|
859
|
+
self['@element'].removeAttribute(aString);
|
860
|
+
return self;}
|
861
|
+
}),
|
862
|
+
smalltalk.TagBrush);
|
863
|
+
|
864
|
+
smalltalk.addMethod(
|
865
|
+
'_class_',
|
866
|
+
smalltalk.method({
|
867
|
+
selector: 'class:',
|
868
|
+
fn: function (aString){
|
869
|
+
var self=this;
|
870
|
+
self['@element'].className = aString;
|
871
|
+
return self;}
|
872
|
+
}),
|
873
|
+
smalltalk.TagBrush);
|
874
|
+
|
875
|
+
smalltalk.addMethod(
|
876
|
+
'_id_',
|
877
|
+
smalltalk.method({
|
878
|
+
selector: 'id:',
|
879
|
+
fn: function (aString){
|
880
|
+
var self=this;
|
881
|
+
smalltalk.send(self, "_at_put_", ["id", aString]);
|
882
|
+
return self;}
|
883
|
+
}),
|
884
|
+
smalltalk.TagBrush);
|
885
|
+
|
886
|
+
smalltalk.addMethod(
|
887
|
+
'_src_',
|
888
|
+
smalltalk.method({
|
889
|
+
selector: 'src:',
|
890
|
+
fn: function (aString){
|
891
|
+
var self=this;
|
892
|
+
smalltalk.send(self, "_at_put_", ["src", aString]);
|
893
|
+
return self;}
|
894
|
+
}),
|
895
|
+
smalltalk.TagBrush);
|
896
|
+
|
897
|
+
smalltalk.addMethod(
|
898
|
+
'_href_',
|
899
|
+
smalltalk.method({
|
900
|
+
selector: 'href:',
|
901
|
+
fn: function (aString){
|
902
|
+
var self=this;
|
903
|
+
smalltalk.send(self, "_at_put_", ["href", aString]);
|
904
|
+
return self;}
|
905
|
+
}),
|
906
|
+
smalltalk.TagBrush);
|
907
|
+
|
908
|
+
smalltalk.addMethod(
|
909
|
+
'_title_',
|
910
|
+
smalltalk.method({
|
911
|
+
selector: 'title:',
|
912
|
+
fn: function (aString){
|
913
|
+
var self=this;
|
914
|
+
smalltalk.send(self, "_at_put_", ["title", aString]);
|
915
|
+
return self;}
|
916
|
+
}),
|
917
|
+
smalltalk.TagBrush);
|
918
|
+
|
919
|
+
smalltalk.addMethod(
|
920
|
+
'_style_',
|
921
|
+
smalltalk.method({
|
922
|
+
selector: 'style:',
|
923
|
+
fn: function (aString){
|
924
|
+
var self=this;
|
925
|
+
smalltalk.send(self, "_at_put_", ["style", aString]);
|
926
|
+
return self;}
|
927
|
+
}),
|
928
|
+
smalltalk.TagBrush);
|
929
|
+
|
930
|
+
smalltalk.addMethod(
|
931
|
+
'_type_',
|
932
|
+
smalltalk.method({
|
933
|
+
selector: 'type:',
|
934
|
+
fn: function (aString){
|
935
|
+
var self=this;
|
936
|
+
smalltalk.send(self, "_at_put_", ["type", aString]);
|
937
|
+
return self;}
|
938
|
+
}),
|
939
|
+
smalltalk.TagBrush);
|
940
|
+
|
941
|
+
smalltalk.addMethod(
|
942
|
+
'_media_',
|
943
|
+
smalltalk.method({
|
944
|
+
selector: 'media:',
|
945
|
+
fn: function (aString){
|
946
|
+
var self=this;
|
947
|
+
smalltalk.send(self, "_at_put_", ["media", aString]);
|
948
|
+
return self;}
|
949
|
+
}),
|
950
|
+
smalltalk.TagBrush);
|
951
|
+
|
952
|
+
smalltalk.addMethod(
|
953
|
+
'_rel_',
|
954
|
+
smalltalk.method({
|
955
|
+
selector: 'rel:',
|
956
|
+
fn: function (aString){
|
957
|
+
var self=this;
|
958
|
+
smalltalk.send(self, "_at_put_", ["rel", aString]);
|
959
|
+
return self;}
|
960
|
+
}),
|
961
|
+
smalltalk.TagBrush);
|
962
|
+
|
963
|
+
smalltalk.addMethod(
|
964
|
+
'_width_',
|
965
|
+
smalltalk.method({
|
966
|
+
selector: 'width:',
|
967
|
+
fn: function (aString){
|
968
|
+
var self=this;
|
969
|
+
smalltalk.send(self, "_at_put_", ["width", aString]);
|
970
|
+
return self;}
|
971
|
+
}),
|
972
|
+
smalltalk.TagBrush);
|
973
|
+
|
974
|
+
smalltalk.addMethod(
|
975
|
+
'_height_',
|
976
|
+
smalltalk.method({
|
977
|
+
selector: 'height:',
|
978
|
+
fn: function (aString){
|
979
|
+
var self=this;
|
980
|
+
smalltalk.send(self, "_at_put_", ["height", aString]);
|
981
|
+
return self;}
|
982
|
+
}),
|
983
|
+
smalltalk.TagBrush);
|
984
|
+
|
985
|
+
smalltalk.addMethod(
|
986
|
+
'_value_',
|
987
|
+
smalltalk.method({
|
988
|
+
selector: 'value:',
|
989
|
+
fn: function (aString){
|
990
|
+
var self=this;
|
991
|
+
smalltalk.send(self, "_at_put_", ["value", aString]);
|
992
|
+
return self;}
|
993
|
+
}),
|
994
|
+
smalltalk.TagBrush);
|
995
|
+
|
996
|
+
smalltalk.addMethod(
|
997
|
+
'_asJQuery',
|
998
|
+
smalltalk.method({
|
999
|
+
selector: 'asJQuery',
|
1000
|
+
fn: function (){
|
1001
|
+
var self=this;
|
1002
|
+
return smalltalk.send((typeof window == 'undefined' ? nil : window), "_jQuery_", [smalltalk.send(self, "_element", [])]);
|
1003
|
+
return self;}
|
1004
|
+
}),
|
1005
|
+
smalltalk.TagBrush);
|
1006
|
+
|
1007
|
+
smalltalk.addMethod(
|
1008
|
+
'_onKeyDown_',
|
1009
|
+
smalltalk.method({
|
1010
|
+
selector: 'onKeyDown:',
|
1011
|
+
fn: function (aBlock){
|
1012
|
+
var self=this;
|
1013
|
+
smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["keydown", aBlock]);
|
1014
|
+
return self;}
|
1015
|
+
}),
|
1016
|
+
smalltalk.TagBrush);
|
1017
|
+
|
1018
|
+
smalltalk.addMethod(
|
1019
|
+
'_onKeyPress_',
|
1020
|
+
smalltalk.method({
|
1021
|
+
selector: 'onKeyPress:',
|
1022
|
+
fn: function (aBlock){
|
1023
|
+
var self=this;
|
1024
|
+
smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["keypress", aBlock]);
|
1025
|
+
return self;}
|
1026
|
+
}),
|
1027
|
+
smalltalk.TagBrush);
|
1028
|
+
|
1029
|
+
smalltalk.addMethod(
|
1030
|
+
'_onKeyUp_',
|
1031
|
+
smalltalk.method({
|
1032
|
+
selector: 'onKeyUp:',
|
1033
|
+
fn: function (aBlock){
|
1034
|
+
var self=this;
|
1035
|
+
smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["keyup", aBlock]);
|
1036
|
+
return self;}
|
1037
|
+
}),
|
1038
|
+
smalltalk.TagBrush);
|
1039
|
+
|
1040
|
+
smalltalk.addMethod(
|
1041
|
+
'_onFocus_',
|
1042
|
+
smalltalk.method({
|
1043
|
+
selector: 'onFocus:',
|
1044
|
+
fn: function (aBlock){
|
1045
|
+
var self=this;
|
1046
|
+
smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["focus", aBlock]);
|
1047
|
+
return self;}
|
1048
|
+
}),
|
1049
|
+
smalltalk.TagBrush);
|
1050
|
+
|
1051
|
+
smalltalk.addMethod(
|
1052
|
+
'_onBlur_',
|
1053
|
+
smalltalk.method({
|
1054
|
+
selector: 'onBlur:',
|
1055
|
+
fn: function (aBlock){
|
1056
|
+
var self=this;
|
1057
|
+
smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["blur", aBlock]);
|
1058
|
+
return self;}
|
1059
|
+
}),
|
1060
|
+
smalltalk.TagBrush);
|
1061
|
+
|
1062
|
+
smalltalk.addMethod(
|
1063
|
+
'_onChange_',
|
1064
|
+
smalltalk.method({
|
1065
|
+
selector: 'onChange:',
|
1066
|
+
fn: function (aBlock){
|
1067
|
+
var self=this;
|
1068
|
+
smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["change", aBlock]);
|
1069
|
+
return self;}
|
1070
|
+
}),
|
1071
|
+
smalltalk.TagBrush);
|
1072
|
+
|
1073
|
+
smalltalk.addMethod(
|
1074
|
+
'_onClick_',
|
1075
|
+
smalltalk.method({
|
1076
|
+
selector: 'onClick:',
|
1077
|
+
fn: function (aBlock){
|
1078
|
+
var self=this;
|
1079
|
+
smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["click", aBlock]);
|
1080
|
+
return self;}
|
1081
|
+
}),
|
1082
|
+
smalltalk.TagBrush);
|
1083
|
+
|
1084
|
+
smalltalk.addMethod(
|
1085
|
+
'_initializeFromString_canvas_',
|
1086
|
+
smalltalk.method({
|
1087
|
+
selector: 'initializeFromString:canvas:',
|
1088
|
+
fn: function (aString, aCanvas){
|
1089
|
+
var self=this;
|
1090
|
+
(self['@element']=smalltalk.send(self, "_createElementFor_", [aString]));
|
1091
|
+
(self['@canvas']=aCanvas);
|
1092
|
+
return self;}
|
1093
|
+
}),
|
1094
|
+
smalltalk.TagBrush);
|
1095
|
+
|
1096
|
+
smalltalk.addMethod(
|
1097
|
+
'_initializeFromJQuery_canvas_',
|
1098
|
+
smalltalk.method({
|
1099
|
+
selector: 'initializeFromJQuery:canvas:',
|
1100
|
+
fn: function (aJQuery, aCanvas){
|
1101
|
+
var self=this;
|
1102
|
+
(self['@element']=smalltalk.send(aJQuery, "_get_", [(0)]));
|
1103
|
+
(self['@canvas']=aCanvas);
|
1104
|
+
return self;}
|
1105
|
+
}),
|
1106
|
+
smalltalk.TagBrush);
|
1107
|
+
|
1108
|
+
smalltalk.addMethod(
|
1109
|
+
'_createElementFor_',
|
1110
|
+
smalltalk.method({
|
1111
|
+
selector: 'createElementFor:',
|
1112
|
+
fn: function (aString){
|
1113
|
+
var self=this;
|
1114
|
+
return document.createElement(String(aString));
|
1115
|
+
return self;}
|
1116
|
+
}),
|
1117
|
+
smalltalk.TagBrush);
|
1118
|
+
|
1119
|
+
smalltalk.addMethod(
|
1120
|
+
'_createTextNodeFor_',
|
1121
|
+
smalltalk.method({
|
1122
|
+
selector: 'createTextNodeFor:',
|
1123
|
+
fn: function (aString){
|
1124
|
+
var self=this;
|
1125
|
+
return document.createTextNode(String(aString));
|
1126
|
+
return self;}
|
1127
|
+
}),
|
1128
|
+
smalltalk.TagBrush);
|
1129
|
+
|
1130
|
+
|
1131
|
+
smalltalk.addMethod(
|
1132
|
+
'_fromString_canvas_',
|
1133
|
+
smalltalk.method({
|
1134
|
+
selector: 'fromString:canvas:',
|
1135
|
+
fn: function (aString, aCanvas){
|
1136
|
+
var self=this;
|
1137
|
+
return (function($rec){smalltalk.send($rec, "_initializeFromString_canvas_", [aString, aCanvas]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
|
1138
|
+
return self;}
|
1139
|
+
}),
|
1140
|
+
smalltalk.TagBrush.klass);
|
1141
|
+
|
1142
|
+
smalltalk.addMethod(
|
1143
|
+
'_fromJQuery_canvas_',
|
1144
|
+
smalltalk.method({
|
1145
|
+
selector: 'fromJQuery:canvas:',
|
1146
|
+
fn: function (aJQuery, aCanvas){
|
1147
|
+
var self=this;
|
1148
|
+
return (function($rec){smalltalk.send($rec, "_initializeFromJQuery_canvas_", [aJQuery, aCanvas]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
|
1149
|
+
return self;}
|
1150
|
+
}),
|
1151
|
+
smalltalk.TagBrush.klass);
|
1152
|
+
|
1153
|
+
|
1154
|
+
smalltalk.addClass('Widget', smalltalk.Object, [], 'Canvas');
|
1155
|
+
smalltalk.addMethod(
|
1156
|
+
'_appendToBrush_',
|
1157
|
+
smalltalk.method({
|
1158
|
+
selector: 'appendToBrush:',
|
1159
|
+
fn: function (aTagBrush){
|
1160
|
+
var self=this;
|
1161
|
+
smalltalk.send(self, "_appendToJQuery_", [smalltalk.send(aTagBrush, "_asJQuery", [])]);
|
1162
|
+
return self;}
|
1163
|
+
}),
|
1164
|
+
smalltalk.Widget);
|
1165
|
+
|
1166
|
+
smalltalk.addMethod(
|
1167
|
+
'_appendToJQuery_',
|
1168
|
+
smalltalk.method({
|
1169
|
+
selector: 'appendToJQuery:',
|
1170
|
+
fn: function (aJQuery){
|
1171
|
+
var self=this;
|
1172
|
+
smalltalk.send(self, "_renderOn_", [smalltalk.send((smalltalk.HTMLCanvas || HTMLCanvas), "_onJQuery_", [aJQuery])]);
|
1173
|
+
return self;}
|
1174
|
+
}),
|
1175
|
+
smalltalk.Widget);
|
1176
|
+
|
1177
|
+
smalltalk.addMethod(
|
1178
|
+
'_renderOn_',
|
1179
|
+
smalltalk.method({
|
1180
|
+
selector: 'renderOn:',
|
1181
|
+
fn: function (html){
|
1182
|
+
var self=this;
|
1183
|
+
self;
|
1184
|
+
return self;}
|
1185
|
+
}),
|
1186
|
+
smalltalk.Widget);
|
1187
|
+
|
1188
|
+
|
1189
|
+
|
1190
|
+
smalltalk.addClass('StyleTag', smalltalk.TagBrush, ['canvas', 'element'], 'Canvas');
|
1191
|
+
smalltalk.addMethod(
|
1192
|
+
'_with_',
|
1193
|
+
smalltalk.method({
|
1194
|
+
selector: 'with:',
|
1195
|
+
fn: function (aString){
|
1196
|
+
var self=this;
|
1197
|
+
((($receiver = smalltalk.send(self, "_isBrowserIE", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_element", []), "_styleSheet", []), "_cssText_", [aString]);})() : (function(){return smalltalk.send(self, "_with_", [aString], smalltalk.TagBrush);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_element", []), "_styleSheet", []), "_cssText_", [aString]);}), (function(){return smalltalk.send(self, "_with_", [aString], smalltalk.TagBrush);})]));
|
1198
|
+
return self;}
|
1199
|
+
}),
|
1200
|
+
smalltalk.StyleTag);
|
1201
|
+
|
1202
|
+
smalltalk.addMethod(
|
1203
|
+
'_isBrowserIE',
|
1204
|
+
smalltalk.method({
|
1205
|
+
selector: 'isBrowserIE',
|
1206
|
+
fn: function (){
|
1207
|
+
var self=this;
|
1208
|
+
var ie=nil;
|
1209
|
+
(ie=jQuery.browser.msie);
|
1210
|
+
return smalltalk.send(ie, "_notNil", []);
|
1211
|
+
return self;}
|
1212
|
+
}),
|
1213
|
+
smalltalk.StyleTag);
|
1214
|
+
|
1215
|
+
|
1216
|
+
smalltalk.addMethod(
|
1217
|
+
'_canvas_',
|
1218
|
+
smalltalk.method({
|
1219
|
+
selector: 'canvas:',
|
1220
|
+
fn: function (aCanvas){
|
1221
|
+
var self=this;
|
1222
|
+
return (function($rec){smalltalk.send($rec, "_initializeFromString_canvas_", ["style", aCanvas]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
|
1223
|
+
return self;}
|
1224
|
+
}),
|
1225
|
+
smalltalk.StyleTag.klass);
|
1226
|
+
|
1227
|
+
|
1228
|
+
smalltalk.addMethod(
|
1229
|
+
'_appendToJQuery_',
|
1230
|
+
smalltalk.method({
|
1231
|
+
selector: 'appendToJQuery:',
|
1232
|
+
fn: function (aJQuery){
|
1233
|
+
var self=this;
|
1234
|
+
smalltalk.send(aJQuery, "_append_", [smalltalk.send(self, "_asString", [])]);
|
1235
|
+
return self;}
|
1236
|
+
}),
|
1237
|
+
smalltalk.Object);
|
1238
|
+
|
1239
|
+
smalltalk.addMethod(
|
1240
|
+
'_appendToBrush_',
|
1241
|
+
smalltalk.method({
|
1242
|
+
selector: 'appendToBrush:',
|
1243
|
+
fn: function (aTagBrush){
|
1244
|
+
var self=this;
|
1245
|
+
smalltalk.send(aTagBrush, "_append_", [smalltalk.send(self, "_asString", [])]);
|
1246
|
+
return self;}
|
1247
|
+
}),
|
1248
|
+
smalltalk.Object);
|
1249
|
+
|
1250
|
+
smalltalk.addMethod(
|
1251
|
+
'_appendToJQuery_',
|
1252
|
+
smalltalk.method({
|
1253
|
+
selector: 'appendToJQuery:',
|
1254
|
+
fn: function (aJQuery){
|
1255
|
+
var self=this;
|
1256
|
+
smalltalk.send(self, "_value_", [smalltalk.send((smalltalk.HTMLCanvas || HTMLCanvas), "_onJQuery_", [aJQuery])]);
|
1257
|
+
return self;}
|
1258
|
+
}),
|
1259
|
+
smalltalk.BlockClosure);
|
1260
|
+
|
1261
|
+
smalltalk.addMethod(
|
1262
|
+
'_appendToBrush_',
|
1263
|
+
smalltalk.method({
|
1264
|
+
selector: 'appendToBrush:',
|
1265
|
+
fn: function (aTagBrush){
|
1266
|
+
var self=this;
|
1267
|
+
smalltalk.send(aTagBrush, "_appendBlock_", [self]);
|
1268
|
+
return self;}
|
1269
|
+
}),
|
1270
|
+
smalltalk.BlockClosure);
|
1271
|
+
|
1272
|
+
smalltalk.addMethod(
|
1273
|
+
'_asJQuery',
|
1274
|
+
smalltalk.method({
|
1275
|
+
selector: 'asJQuery',
|
1276
|
+
fn: function (){
|
1277
|
+
var self=this;
|
1278
|
+
return jQuery(String(self));
|
1279
|
+
return self;}
|
1280
|
+
}),
|
1281
|
+
smalltalk.String);
|
1282
|
+
|
1283
|
+
smalltalk.addMethod(
|
1284
|
+
'_appendToJQuery_',
|
1285
|
+
smalltalk.method({
|
1286
|
+
selector: 'appendToJQuery:',
|
1287
|
+
fn: function (aJQuery){
|
1288
|
+
var self=this;
|
1289
|
+
smalltalk.send(aJQuery, "_append_", [self]);
|
1290
|
+
return self;}
|
1291
|
+
}),
|
1292
|
+
smalltalk.String);
|
1293
|
+
|
1294
|
+
smalltalk.addMethod(
|
1295
|
+
'_appendToBrush_',
|
1296
|
+
smalltalk.method({
|
1297
|
+
selector: 'appendToBrush:',
|
1298
|
+
fn: function (aTagBrush){
|
1299
|
+
var self=this;
|
1300
|
+
smalltalk.send(aTagBrush, "_appendString_", [self]);
|
1301
|
+
return self;}
|
1302
|
+
}),
|
1303
|
+
smalltalk.String);
|
1304
|
+
|