From 66790c80102aa5760ca6ab5f70dae000c033129b Mon Sep 17 00:00:00 2001 From: Michael Kauzmann Date: Sat, 7 Oct 2023 08:31:35 -0600 Subject: [PATCH] cleanup disable directives by using the config file, https://github.com/phetsims/chipper/issues/1408 --- fourier-making-waves_a11y_view.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fourier-making-waves_a11y_view.html b/fourier-making-waves_a11y_view.html index d4b9b906..b81e6902 100644 --- a/fourier-making-waves_a11y_view.html +++ b/fourier-making-waves_a11y_view.html @@ -416,13 +416,13 @@

State Descriptions for Fourier: Making Waves

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 ); @@ -476,7 +476,7 @@

State Descriptions for Fourier: Making Waves

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 @@ -569,7 +569,7 @@

State Descriptions for Fourier: Making Waves

// 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' );