Skip to content

Commit

Permalink
add getter to Sim.js to access Display.prototype.utteranceQueue, phet…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph authored and jessegreenberg committed Apr 21, 2021
1 parent 322cd69 commit d8f2dbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/moleculesandlight/view/MoleculeSelectionPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ define( require => {
// var handleMoleculeChange = function( event ) {
// var photonTarget = model.photonTargetProperty.get();
// var utteranceText = StringUtils.fillIn( moleculeSelectionAlertPatternString, { target: PhotonTarget.getMoleculeName( photonTarget ) } );
// phet.joist.sim.display.utteranceQueue.addToBack( new Utterance( { alert: utteranceText } );
// phet.joist.sim.utteranceQueue.addToBack( new Utterance( { alert: utteranceText } );
// };

// radioButtons.addInputListener( {
Expand All @@ -194,7 +194,7 @@ define( require => {
// */
// const moleculeChangeAlert = function( target ) {
// const utteranceText = StringUtils.fillIn( moleculeSelectionAlertPatternString, { target: PhotonTarget.getMoleculeName( target ) } );
// phet.joist.sim.display.utteranceQueue.addToBack( utteranceText );
// phet.joist.sim.utteranceQueue.addToBack( utteranceText );
// };

// model.photonTargetProperty.link( moleculeChangeAlert );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ define( require => {
// wavelengthSelectionAlertPatternString,
// { wavelength: WavelengthConstants.getLightSourceName( wavelength ) }
// );
// phet.joist.sim.display.utteranceQueue.addToBack( utteranceText );
// phet.joist.sim.utteranceQueue.addToBack( utteranceText );
// };

// photonAbsorptionModel.photonWavelengthProperty.link( handleWavelengthChangeAlert );
Expand Down

0 comments on commit d8f2dbe

Please sign in to comment.