Skip to content

Commit

Permalink
Convert for...of to numerical iteration, see phetsims/tasks#972
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Dec 12, 2018
1 parent 87b8cb8 commit 794fe68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/gravity-force-lab/view/GravityForceLabStringManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 794fe68

Please sign in to comment.