-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use AXON/EnabledProperty #134
Comments
I believe that CRC item is bogus. EnabledProperty doc says:
But let's ask @zepumph, because I seem to recall that he had some 411 on this topic in the past. |
I don't have a lot of preference either way. EnabledProperty the file was created 10/2020. The CRC item was added in 11/2020. So I'd say part of the initial implementation was the recognition that EnabledProperty could (should?) be used elsewhere. I'll update the EnabledProperty doc. Up to you two about how to proceed on the CRC item and for FEL. |
Signed-off-by: Michael Kauzmann <[email protected]>
I really can still see it both ways, but I don't love recommending EnabledProperty given that you still have to hard code 'enabledProperty' as a string, and all the class does is assert that you spelled it right. That makes me sad. |
It also brings these defaults:
|
Seems like a lot of effort just to verify that the tandem name is "enabledProperty", and the wrong place to be verifying the tandem name. And why EnabledProperty, when we don't have VisibleProperty, InputEnabledProperty, etc.? That said... I switched to EnabledProperty and gave it more specific // For PhET-iO. See https://github.com/phetsims/faradays-electromagnetic-lab/issues/105
const enabledProperty = new EnabledProperty( true, {
tandem: options.tandem.createTandem( 'enabledProperty' ),
phetioDocumentation: 'Determines whether the water faucet is enabled (true) or disabled (false).',
phetioFeatured: true
} ); |
From the code review #130, one item in the code review checklist says:
It looks like this code matches the description and should be changed:
faradays-electromagnetic-lab/js/generator/view/WaterFaucetNode.ts
Lines 65 to 69 in e218bbd
The text was updated successfully, but these errors were encountered: