Skip to content

Commit

Permalink
voicingUtteranceQueue.addToBack is bad text, #1403
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jun 9, 2022
1 parent ca89ea9 commit e089c7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/accessibility/voicing/Voicing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ const Voicing = <SuperType extends Constructor>( Type: SuperType, optionsArgPosi
// don't send to utteranceQueue if response is empty
// don't send to utteranceQueue for PhET-iO dynamic element archetypes, https://github.com/phetsims/joist/issues/817
if ( content && notPhetioArchetype ) {
voicingUtteranceQueue.addToBack( content );
voicingUtteranceQueue.addToBack( content ); // eslint-disable-line bad-sim-text
}
}

Expand Down Expand Up @@ -700,7 +700,7 @@ Voicing.VOICING_OPTION_KEYS = VOICING_OPTION_KEYS;
*/
Voicing.alertUtterance = ( utterance: Utterance ) => {
assert && assert( utterance.voicingCanAnnounceProperties.length > 0, 'voicingCanAnnounceProperties required, this Utterance might not be connected to Node in the scene graph.' );
voicingUtteranceQueue.addToBack( utterance );
voicingUtteranceQueue.addToBack( utterance ); // eslint-disable-line bad-sim-text
};

/**
Expand Down

0 comments on commit e089c7c

Please sign in to comment.