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 committed Nov 20, 2019
1 parent 8dab3b7 commit 1897194
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/accessibility/AccessibleValueHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ define( require => {
*/
setUtteranceAndAlert() {
if ( this.a11yCreateValueChangeAlert ) {
const utteranceQueue = phet.joist.sim.display.utteranceQueue;
const utteranceQueue = phet.joist.sim.utteranceQueue;

this.endInteractionUtterance.resetTimingVariables();

Expand Down
2 changes: 1 addition & 1 deletion sun_a11y_view.html
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ <h3>PDOM & Descriptions for sun demo</h3>
var PDOMCopy = PDOMRoot.cloneNode( true );

// get the alert dom elements from the iframe's inner document
var ariaLiveElementsContainer = innerWindow.phet.joist.sim.display.utteranceQueue.getAriaLiveContainer();
var ariaLiveElementsContainer = innerWindow.phet.joist.sim.utteranceQueue.getAriaLiveContainer();

// get the alert dom elements from the PDOM copy
var alertList = document.getElementById( 'alert-list' );
Expand Down

0 comments on commit 1897194

Please sign in to comment.