author | dadubrow |
Mon, 06 Apr 2009 13:50:37 -0500 | |
branch | RCL_2_0 |
changeset 48 | cfd7fcf6bf2d |
parent 2 | d760517a8095 |
permissions | -rw-r--r-- |
2 | 1 |
|
2 |
// this test uses only globals |
|
3 |
||
4 |
function Test() { |
|
5 |
} |
|
6 |
||
7 |
||
8 |
Test.prototype.getName = function() { |
|
9 |
return properties["name"]; |
|
10 |
} |
|
11 |
||
12 |
Test.prototype.setName = function(str) { |
|
13 |
properties["name"] = "_" + str; |
|
14 |
} |
|
15 |
||
16 |
Test.prototype.getSizeFormatted = function() { |
|
17 |
return properties["size"].x + "," + properties["size"].y; |
|
18 |
} |
|
19 |
||
20 |
Test.prototype.setSize = function(x,y) { |
|
21 |
properties["size"]["x"] = x; |
|
22 |
properties["size"]["y"] = y; |
|
23 |
} |