Skip to content

Commit

Permalink
add docs for phet-io-specific code, see #109
Browse files Browse the repository at this point in the history
  • Loading branch information
jbphet committed Mar 7, 2025
1 parent 865b01e commit 02c4e0e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/coins/view/OutcomeProbabilityControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,16 @@ export default class OutcomeProbabilityControl extends VBox {
];
}

// Only show the title and subtitle (if present) if either of the probability controls are visible. This is for
// phet-io support.
Multilink.multilink(
[
upProbabilityValueControl.visibleProperty,
downProbabilityValueControl.visibleProperty
], ( upVisible, downVisible ) => {
],
( upVisible, downVisible ) => {
title.visible = upVisible || downVisible;
quantumReadout && quantumReadout.setVisible( upVisible || downVisible );
quantumReadout && ( quantumReadout.visible = upVisible || downVisible );
}
);

Expand Down

0 comments on commit 02c4e0e

Please sign in to comment.