From db7721f24bb01095389372f968d2bd8084066ee9 Mon Sep 17 00:00:00 2001 From: zepumph Date: Tue, 19 Nov 2019 15:47:00 -0900 Subject: [PATCH] add getter to Sim.js to access Display.prototype.utteranceQueue, https://github.com/phetsims/utterance-queue/issues/7 --- john-travoltage_a11y_view.html | 2 +- js/john-travoltage/view/ElectronLayerNode.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/john-travoltage_a11y_view.html b/john-travoltage_a11y_view.html index f00dcb79..b4a45483 100644 --- a/john-travoltage_a11y_view.html +++ b/john-travoltage_a11y_view.html @@ -269,7 +269,7 @@

PDOM & Descriptions for John Travoltage

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' ); diff --git a/js/john-travoltage/view/ElectronLayerNode.js b/js/john-travoltage/view/ElectronLayerNode.js index 3d80281f..0e38ee8f 100644 --- a/js/john-travoltage/view/ElectronLayerNode.js +++ b/js/john-travoltage/view/ElectronLayerNode.js @@ -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 );