From 794fe68bbd2e3eeace3411af891496052897e23d Mon Sep 17 00:00:00 2001 From: samreid Date: Wed, 12 Dec 2018 08:48:39 -0700 Subject: [PATCH] Convert for...of to numerical iteration, see https://github.com/phetsims/tasks/issues/972 --- js/gravity-force-lab/view/GravityForceLabStringManager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/gravity-force-lab/view/GravityForceLabStringManager.js b/js/gravity-force-lab/view/GravityForceLabStringManager.js index db76a857..8c6baca3 100644 --- a/js/gravity-force-lab/view/GravityForceLabStringManager.js +++ b/js/gravity-force-lab/view/GravityForceLabStringManager.js @@ -268,7 +268,8 @@ define( require => { 8.2, 6.7, 5.2, 3.7, 2.2, 0.9 ]; - for ( let boundary of regionBoundaries ) { + for ( let i = 0; i < regionBoundaries.length; i++ ) { + const boundary = regionBoundaries[ i ]; if ( min < boundary && boundary <= max ) { return true; }