-
Notifications
You must be signed in to change notification settings - Fork 12
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
Improve the "Node.isSomething" mixin pattern #1653
Comments
From work in phetsims/scenery-phet#869 |
…hetsims/scenery#1653 Signed-off-by: Michael Kauzmann <[email protected]>
…1653 Signed-off-by: Michael Kauzmann <[email protected]>
Ok. I committed the rest of these. So now we prefer these standalone functions instead of the boolean getter. I went one step further and added underscores to the getters. @jessegreenberg can you please spot check this, while noting the new pattern and how it removes the need to type case things as the mixin types. Please also double check the one TODO I added. |
A couple more coming in that I missed, one second. |
Signed-off-by: Michael Kauzmann <[email protected]>
Signed-off-by: Michael Kauzmann <[email protected]>
ok done. |
I reviewed the commits, looks like a nice improvement to me and it matches the pattern used by layout traits. A TODO was added for this issue, I confirmed it was correct and tested the behavior in quadrilateral. Thanks! |
Commit on the way for InteractiveHighlighting, we can do more like this for voicing, and reading block.
The text was updated successfully, but these errors were encountered: