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 29979fe commit b8064b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gravity-force-lab-basics_a11y_view.html
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ <h3>PDOM & Descriptions for Gravity Force Lab: Basics</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
2 changes: 1 addition & 1 deletion js/gravity-force-lab-basics/view/GFLBAlertManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ define( require => {
*/
alertDistanceVisible( showDistance ) {
this.distanceVisibleUtterance.alert = showDistance ? distanceArrowVisibleString : distanceArrowRemovedString;
phet.joist.sim.display.utteranceQueue.addToBack( this.distanceVisibleUtterance );
phet.joist.sim.utteranceQueue.addToBack( this.distanceVisibleUtterance );
}
}

Expand Down

0 comments on commit b8064b0

Please sign in to comment.