author | fturovic <frank.turovich@nokia.com> |
Tue, 07 Apr 2009 13:41:27 -0500 | |
branch | RCL_2_0 |
changeset 67 | 47ecdc260147 |
parent 2 | d760517a8095 |
permissions | -rw-r--r-- |
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; }