2
|
1 |
|
|
2 |
// this test gets everything through instance
|
|
3 |
|
|
4 |
function Test() {
|
|
5 |
}
|
|
6 |
|
|
7 |
Test.prototype.getInstance = function() {
|
|
8 |
return instance;
|
|
9 |
}
|
|
10 |
|
|
11 |
Test.prototype.getProperties = function() {
|
|
12 |
return instance.properties;
|
|
13 |
}
|
|
14 |
|
|
15 |
Test.prototype.getNamePlusFoo = function() {
|
|
16 |
// java.lang.System.out.println( instance.properties.size)
|
|
17 |
return instance.properties.name + "foo";
|
|
18 |
}
|
|
19 |
|
|
20 |
Test.prototype.getSizeFormatted = function() {
|
|
21 |
return instance.properties.size.x + "," + instance.properties.size.y;
|
|
22 |
}
|
|
23 |
|