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 Sep 19, 2019
1 parent a08492c commit 4ec0738
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion js/equality-explorer-basics-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ define( require => {
const equalityExplorerBasicsTitleString = require( 'string!EQUALITY_EXPLORER_BASICS/equality-explorer-basics.title' );

SimLauncher.launch( function() {
var sim = new Sim( equalityExplorerBasicsTitleString, [ new BasicsScreen(), new LabScreen() ], {
const sim = new Sim( equalityExplorerBasicsTitleString, [ new BasicsScreen(), new LabScreen() ], {
credits: EqualityExplorerConstants.CREDITS
} );
sim.start();
Expand Down
10 changes: 5 additions & 5 deletions js/lab/LabScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ define( require => {
const screenLabString = require( 'string!EQUALITY_EXPLORER_BASICS/screen.lab' );

// constants
var BACKGROUND_COLOR = EqualityExplorerColors.BASICS_SCREEN_BACKGROUND;
const BACKGROUND_COLOR = EqualityExplorerColors.BASICS_SCREEN_BACKGROUND;

/**
* @param {Object} [options]
Expand Down Expand Up @@ -60,19 +60,19 @@ define( require => {
// Creates the icon for this screen: square = picker
function createScreenIcon() {

var squareNode = new Image( squareImage, {
const squareNode = new Image( squareImage, {
scale: 0.75
} );

var equalsNode = new Text( MathSymbols.EQUAL_TO, {
const equalsNode = new Text( MathSymbols.EQUAL_TO, {
font: new PhetFont( { size: 30, weight: 'bold' } )
} );

var pickerNode = new NumberPicker( new Property( 7 ), new Property( new Range( 0, 10 ) ), {
const pickerNode = new NumberPicker( new Property( 7 ), new Property( new Range( 0, 10 ) ), {
color: 'black'
} );

var iconNode = new HBox( {
const iconNode = new HBox( {
spacing: 5,
children: [ squareNode, equalsNode, pickerNode ]
} );
Expand Down
4 changes: 2 additions & 2 deletions js/lab/model/LabScene.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ define( require => {
const triangleShadowImage = require( 'image!EQUALITY_EXPLORER_BASICS/triangleShadow.png' );

// constants
var VALUE_RANGE = new Range( 1, 20 );
const VALUE_RANGE = new Range( 1, 20 );

/**
* @constructor
*/
function LabScene() {

var variables = [
const variables = [

// name, image, shadow
new ObjectVariable( 'sphere', sphereImage, sphereShadowImage, {
Expand Down
2 changes: 1 addition & 1 deletion js/lab/view/LabSceneNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ define( require => {
snapshotsAccordionBoxExpandedProperty, layoutBounds, options );

// Values accordion box, above the Snapshots accordion box
var valuesAccordionBox = new VariablesAccordionBox( scene.variables, {
const valuesAccordionBox = new VariablesAccordionBox( scene.variables, {
titleString: valuesString,
expandedProperty: this.valuesAccordionBoxExpandedProperty,
fixedWidth: this.snapshotsAccordionBox.width + 40, // wider so that pickers are usable size, see #3
Expand Down

0 comments on commit 4ec0738

Please sign in to comment.