Skip to content

Commit

Permalink
add stepTimer listener in initialize, see phetsims/scenery#1288
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Feb 7, 2022
1 parent 7c9d18b commit 0d89299
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/accessibility/voicing/voicingManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) );
}

/**
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 0d89299

Please sign in to comment.