From d8f2dbed161729ea69fda428d8b7a5cfee0734e2 Mon Sep 17 00:00:00 2001 From: zepumph Date: Tue, 19 Nov 2019 15:46:56 -0900 Subject: [PATCH] add getter to Sim.js to access Display.prototype.utteranceQueue, https://github.com/phetsims/utterance-queue/issues/7 --- js/moleculesandlight/view/MoleculeSelectionPanel.js | 4 ++-- .../view/QuadEmissionFrequencyControlPanel.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/moleculesandlight/view/MoleculeSelectionPanel.js b/js/moleculesandlight/view/MoleculeSelectionPanel.js index fdd15bd8..db493532 100644 --- a/js/moleculesandlight/view/MoleculeSelectionPanel.js +++ b/js/moleculesandlight/view/MoleculeSelectionPanel.js @@ -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( { @@ -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 ); diff --git a/js/moleculesandlight/view/QuadEmissionFrequencyControlPanel.js b/js/moleculesandlight/view/QuadEmissionFrequencyControlPanel.js index acb546cc..3af44243 100644 --- a/js/moleculesandlight/view/QuadEmissionFrequencyControlPanel.js +++ b/js/moleculesandlight/view/QuadEmissionFrequencyControlPanel.js @@ -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 );