uidesigner/com.nokia.sdt.component.symbian.test/data/display/script_foobar.js
author fturovic <frank.turovich@nokia.com>
Thu, 14 May 2009 16:28:33 -0500
changeset 152 9e83cc047260
parent 0 fb279309251b
permissions -rw-r--r--
bug 8066 - revised image and option description for dynamic variants

var gCounter = 0;

function FooBar() {
	this.counter = ++gCounter;
}

FooBar.prototype.doFoo = function() {

	return this.counter;
}

FooBar.prototype.doBar = function() {

	return this.counter;
}

FooBar.prototype.propertyChanged = function(instance, propertyId) {
	if (propertyId == "foo")
		instance.properties.bar = instance.properties.foo;
}