From 0d89299dd8797a33e08dbb9a37ce3f99a340289e Mon Sep 17 00:00:00 2001 From: Jesse Date: Thu, 30 Sep 2021 11:18:23 -0400 Subject: [PATCH] add stepTimer listener in initialize, see https://github.com/phetsims/scenery/issues/1288 --- js/accessibility/voicing/voicingManager.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/accessibility/voicing/voicingManager.js b/js/accessibility/voicing/voicingManager.js index 2e40fef..fc55d2a 100644 --- a/js/accessibility/voicing/voicingManager.js +++ b/js/accessibility/voicing/voicingManager.js @@ -140,9 +140,6 @@ class VoicingManager extends Announcer { // Blown away regularly, don't keep a reference to it. this.voicingQueue = []; - - // No dispose, as this singleton exists for the lifetime of the runtime. - stepTimer.addListener( this.stepQueue.bind( this ) ); } /** @@ -193,6 +190,9 @@ class VoicingManager extends Announcer { } } ); + // No dispose, as this singleton exists for the lifetime of the runtime. + stepTimer.addListener( this.stepQueue.bind( this ) ); + this.initialized = true; }