Skip to content

Commit

Permalink
cleanup disable directives by using the config file, phetsims/chipper…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Oct 7, 2023
1 parent 5ef7de3 commit 66790c8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fourier-making-waves_a11y_view.html
Original file line number Diff line number Diff line change
Expand Up @@ -416,13 +416,13 @@ <h3>State Descriptions for Fourier: Making Waves</h3>
let dirty = false;

// poll for updates to help performance on chrome
setInterval( () => { // eslint-disable-line bad-sim-text
setInterval( () => {

if ( dirty ) {

// update the PDOM copy after a delay to fix a FF/Safari bug where cloneNode prevents hidden DOM elements
// in the iframe from staying hidden - see https://github.com/phetsims/chipper/issues/648
setTimeout( () => { // eslint-disable-line bad-sim-text
setTimeout( () => {
setPDOMCopyContent( pdomRoot, copyContainer );
dirty = false;
}, 10 );
Expand Down Expand Up @@ -476,7 +476,7 @@ <h3>State Descriptions for Fourier: Making Waves</h3>
for ( let i = 0; i < fadeArray.length; i++ ) {
const fadeChild = fadeArray[ i ];

const intervalId = window.setInterval( () => { // eslint-disable-line bad-sim-text
const intervalId = window.setInterval( () => {
fadeChild.style.opacity = fadeChild.style.opacity * 0.95;

// stop animating and remove child
Expand Down Expand Up @@ -569,7 +569,7 @@ <h3>State Descriptions for Fourier: Making Waves</h3>

// Provide fake focus highlighting to the PDOM copy based on what is actually highlighted in the sim.
let previousElement = null;
setInterval( () => { // eslint-disable-line bad-sim-text
setInterval( () => {

if ( previousElement ) {
previousElement.classList.remove( 'highlight' );
Expand Down

0 comments on commit 66790c8

Please sign in to comment.