Skip to content

Commit

Permalink
use voicing methods
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jul 2, 2021
1 parent 3bbc8a2 commit df4fcab
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions js/create/view/MyChallengeAccordionBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,11 @@ class MyChallengeAccordionBox extends AccordionBox {
accordionBoxUtterance.alert = ratioAndProportionStrings.a11y.ratio.currentChallengeHidden;
}

this.setButtonVoicingOptions( {
voicingObjectResponse: objectResponse,
voicingHintResponse: hintResponse
} );
this.voicingObjectResponse = objectResponse;
this.voicingHintResponse = hintResponse;

if ( oldValue !== null ) {
this.voicingSpeakButtonResponse( { utterance: accordionBoxVoicingUtterance } );
this.voicingSpeakResponse( { utterance: accordionBoxVoicingUtterance } );
phet.joist.sim.utteranceQueue.addToBack( accordionBoxUtterance );
}
} );
Expand Down

0 comments on commit df4fcab

Please sign in to comment.