author | timkelly |
Mon, 21 Sep 2009 10:30:34 -0500 | |
branch | RCL_2_2 |
changeset 502 | bbc19f0223db |
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; }