uidesigner/com.nokia.sdt.component.symbian.test/data/scripts/test3_params.js
author fturovic <frank.turovich@nokia.com>
Thu, 17 Sep 2009 11:37:21 -0500
branchRCL_2_2
changeset 495 63db5d4b4620
parent 0 fb279309251b
permissions -rw-r--r--
minor correction to image


// this test gets everything through strange accessors methods

function Test() {
}

Test.prototype.getInstance = function() {
	return instance;
}

Test.prototype.getProperties = function() {
	return instance != undefined ? instance.properties : undefined;
}

Test.prototype.getNamePlusFoo = function() {
	props = instance["properties"]
	return props["name"] + "foo";
}

Test.prototype.getSizeFormatted = function() {
	size = instance.properties.size
	return size.x + "," + size["y"];
}