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 25033cc commit e6c00ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion js/view/ISLCAlertManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ define( require => {
}

this.showForceValuesUtterance.alert = alert;
phet.joist.sim.display.utteranceQueue.addToBack( this.showForceValuesUtterance );
phet.joist.sim.utteranceQueue.addToBack( this.showForceValuesUtterance );
}
}

Expand Down
6 changes: 3 additions & 3 deletions js/view/ISLCRulerNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ define( require => {

onGrab: () => {
grabbedUtterance.alert = rulerDescriber.getRulerGrabbedAlertable();
phet.joist.sim.display.utteranceQueue.addToBack( grabbedUtterance );
phet.joist.sim.utteranceQueue.addToBack( grabbedUtterance );
},

listenersForDrag: [ keyboardDragListener ],
Expand All @@ -211,7 +211,7 @@ define( require => {
// TODO: remove this conditional once CL ruler describer is supported
if ( rulerDescriber.getJumpCenterMassAlert ) {
movedUtterance.alert = rulerDescriber.getJumpCenterMassAlert();
phet.joist.sim.display.utteranceQueue.addToBack( movedUtterance );
phet.joist.sim.utteranceQueue.addToBack( movedUtterance );
}
}
}, {
Expand All @@ -223,7 +223,7 @@ define( require => {
// TODO: remove this conditional once CL ruler describer is supported
if ( rulerDescriber.getHomePositionString ) {
movedUtterance.alert = rulerDescriber.getHomePositionString();
phet.joist.sim.display.utteranceQueue.addToBack( movedUtterance );
phet.joist.sim.utteranceQueue.addToBack( movedUtterance );
}
}
} ] );
Expand Down

0 comments on commit e6c00ac

Please sign in to comment.