set( value ) {
throw new Error( 'Cannot set a TinyStaticProperty value' );
}
> const p = new phet.axon.TinyStaticProperty( 0, () => {} );
undefined
> p.isSettable()
true
> p.value = 1
TinyStaticProperty.js:51 Uncaught Error: Cannot set a TinyStaticProperty value
at TinyStaticProperty.set (TinyStaticProperty.js:51)
at TinyStaticProperty.set value [as value] (TinyProperty.js:83)
at <anonymous>:1:9
So shouldn't TinyStaticProperty override isSettable to return false?
TinyStaticProperty:
So shouldn't TinyStaticProperty override
isSettable
to returnfalse
?