uidesigner/com.nokia.sdt.component.symbian.test/data/display/script_foobar.js
author timkelly
Tue, 04 May 2010 11:32:39 -0500 (2010-05-04)
changeset 1327 f0fa49ad9b81
parent 0 fb279309251b
permissions -rw-r--r--
fix bug 11218
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;
}