uidesigner/com.nokia.sdt.component.symbian.test/data/display/script_foobar.js
author fturovic <frank.turovich@nokia.com>
Tue, 27 Apr 2010 15:26:55 -0500
changeset 1307 580c59e9401a
parent 0 fb279309251b
permissions -rw-r--r--
BUG 11117 - merged link fix into 3.0

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;
}