uidesigner/com.nokia.sdt.component.symbian.test/data/scripts/test2.js
changeset 2 d760517a8095
equal deleted inserted replaced
-1:000000000000 2:d760517a8095
       
     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