author | cawthron |
Tue, 24 Mar 2009 22:20:21 -0500 | |
changeset 2 | d760517a8095 |
permissions | -rw-r--r-- |
2 | 1 |
|
2 |
// this test uses only globals |
|
3 |
||
4 |
function Test() { |
|
5 |
} |
|
6 |
||
7 |
Test.prototype.getInstance = function() { |
|
8 |
return instance; |
|
9 |
} |
|
10 |
||
11 |
Test.prototype.getProperties = function() { |
|
12 |
return properties; |
|
13 |
} |
|
14 |
||
15 |
Test.prototype.getNamePlusFoo = function() { |
|
16 |
return properties["name"] + "foo"; |
|
17 |
} |
|
18 |
||
19 |
Test.prototype.getSizeFormatted = function() { |
|
20 |
return properties["size"].x + "," + properties["size"].y; |
|
21 |
} |
|
22 |