author | fturovic <frank.turovich@nokia.com> |
Fri, 12 Jun 2009 15:23:04 -0500 | |
changeset 241 | 1ef9693a4944 |
parent 0 | fb279309251b |
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; }