Skip to content

Commit

Permalink
Spread operator on DOM array-like thing does NOT work well with trans…
Browse files Browse the repository at this point in the history
…pilation, converting to Array.from. See phetsims/perennial#153
  • Loading branch information
jonathanolson committed Mar 3, 2020
1 parent ca2b8bd commit 2772560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/AriaHerald.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class AriaHerald {
// @private {Array.<HTMLElement>} - DOM elements which will receive the updated content. By having four elements
// and cycling through each one, we can get around a VoiceOver bug where a new alert would interrupt the previous
// alert if it wasn't finished speaking, see https://github.com/phetsims/scenery-phet/issues/362
this.ariaLiveElements = [ ...this.ariaLiveContainer.children ];
this.ariaLiveElements = Array.from( this.ariaLiveContainer.children );

// no need to be removed, exists for the lifetime of the simulation.
this.announcingEmitter.addListener( textContent => {
Expand Down

0 comments on commit 2772560

Please sign in to comment.