diff -r 000000000000 -r d760517a8095 uidesigner/com.nokia.sdt.component.symbian.test/data/display/script_foobar.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uidesigner/com.nokia.sdt.component.symbian.test/data/display/script_foobar.js Tue Mar 24 22:20:21 2009 -0500 @@ -0,0 +1,20 @@ +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; +} \ No newline at end of file