author | timkelly |
Tue, 03 Aug 2010 09:41:12 -0500 | |
branch | C3_BUILDER_WORK |
changeset 1745 | 70e83e025896 |
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; }