-
Notifications
You must be signed in to change notification settings - Fork 6
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
should we use a tandem "marker entry" in options? #262
Comments
In #259 (comment), @samreid said:
|
Labeled for discussion at developer meeting. |
@jbphet points out this is just a holdover until We would rather not duplicate options, and we should remove the marker entries. |
Marked with high-priority to put it on my todo list. |
If we decide to proceed with non-null tandems in common code options as discussed in https://github.com/phetsims/phet-io/issues/562 then perhaps it makes sense to declare |
@andrewadare the pattern that we discussed today sounds good, and in a subclass hierarchy, each class will specify |
@samreid @andrewadare Is this issue still relevant? |
Yes, thanks for the reminder. In fact it is more relevant now that phetsims/phet-io#562 is done. I will flag for discussion with other PhET-iO devs. |
Noting here for future reference: FaucetNode.js in scenery-phet is a nice example to follow. It includes the createDefaultTandem call, good comments, and disposal code. |
The pattern in ArrowNode is a good pattern, with the caveat that TArrowNode should be used instead of TNode. There are 13 To do this right, we should:
Before tackling this, we should:
The latter checkbox needs a separate issue. |
On hold until https://github.com/phetsims/phet-io/issues/158 is complete. |
The problem is that scenery-phet and other libraries are still using |
After the above commits, aqua requirejs tests are passing again for PhET brand. |
I updated all tandem: nulls in scenery-phet |
Thanks @pixelzoom for bring it back up. |
I got rid of the last two spots that had "tandem:null" (Property and ObservableArray) in the project. This helped to catch a bug in MAL as well, where tandems weren't being passed into Photon. Here are the related commits, tandemOptional in Property.js, factor Optional/RequiredAndNotSupplied into required and supplied options instrument MAL after observableArray update tandemOptional in Property.js tandemOptional in ObservableArray.js @samreid would you please look over these commits and make suggestions. I think this is probably ready to close after review. |
@samreid here I think a review just needs to look at the above commits for fowl play. Check to make sure that tandem: null was replaced correctly. |
The preceding commits look great, thanks! Closing. |
Noted in #259 (comment)
I had some confusion about whether ArrowButton was instrumented, and said:
Looking at ResetAllButton (a subtype of RoundPushButton), I see:
Should ArrowButton have a similar "marker entry" in its options? Is this a convention that we're going to use?
The text was updated successfully, but these errors were encountered: