Skip to content

Commit

Permalink
var -> const using eslint auto fix, phetsims/tasks#1012
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Oct 22, 2019
1 parent c72755a commit 1bddc12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/accessibility/AlertableDef.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ define( require => {
const sceneryPhet = require( 'SCENERY_PHET/sceneryPhet' );
const Utterance = require( 'SCENERY_PHET/accessibility/Utterance' );

var AlertableDef = {
const AlertableDef = {

/**
* Returns whether the parameter is considered to be a alertable, for use in utteranceQueue. An item is alertable
Expand All @@ -26,11 +26,11 @@ define( require => {
* @public
*/
isAlertableDef: function( alertable ) {
var isAlertable = true;
let isAlertable = true;

// if array, check each item individually
if ( Array.isArray( alertable ) ) {
for ( var i = 0; i < alertable.length; i++ ) {
for ( let i = 0; i < alertable.length; i++ ) {
isAlertable = isItemAlertable( alertable[ i ] );
if ( !isAlertable ) { break; }
}
Expand Down

0 comments on commit 1bddc12

Please sign in to comment.