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 aae1604 commit db7721f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion john-travoltage_a11y_view.html
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ <h3>PDOM & Descriptions for John Travoltage</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/john-travoltage/view/ElectronLayerNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ define( require => {
}

electronUtterance.alert = alertString;
phet.joist.sim.display.utteranceQueue.addToBack( electronUtterance );
phet.joist.sim.utteranceQueue.addToBack( electronUtterance );

// for haptic feedback, experimental
model.utteranceAddedEmitter.emit( alertString );
Expand Down

0 comments on commit db7721f

Please sign in to comment.