Skip to content

Commit

Permalink
apply fixes for allow-parens as needed lint rule, phetsims/chipper#790
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Sep 19, 2019
1 parent 5861b83 commit 9505bd9
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion js/common/view/ContainerResizeDragListener.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ define( require => {
}
},

end: ( listener ) => {
end: listener => {

// Stop the animation wherever the container width happens to be when the drag ends.
container.desiredWidth = container.widthProperty.value;
Expand Down
2 changes: 1 addition & 1 deletion js/common/view/LidDragListener.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ define( require => {
},

// when the lid handle is released, log the opening
end: ( listener ) => {
end: listener => {
phet.log && phet.log( container.isOpenProperty.value ?
`Lid is open: ${container.getOpeningLeft()} to ${container.openingRight} pm` :
'Lid is closed' );
Expand Down
2 changes: 1 addition & 1 deletion js/common/view/ParticleImageProperty.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ define( require => {
ParticlesNode.particleToCanvas( particle, modelViewTransform, privateProperty );
} );

super( [ privateProperty ], ( value ) => value, options );
super( [ privateProperty ], value => value, options );
}
}

Expand Down
2 changes: 1 addition & 1 deletion js/diffusion/DiffusionScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ define( require => {
assert && assert( tandem instanceof Tandem, `invalid tandem: ${tandem}` );

const createModel = () => new DiffusionModel( tandem.createTandem( 'model' ) );
const createView = ( model ) => new DiffusionScreenView( model, tandem.createTandem( 'view' ) );
const createView = model => new DiffusionScreenView( model, tandem.createTandem( 'view' ) );

super( createModel, createView, tandem, {
name: screenDiffusionString,
Expand Down
4 changes: 2 additions & 2 deletions js/diffusion/model/DiffusionModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ define( require => {
} );

// Synchronize particle counts and arrays.
const createDiffusionParticle1 = ( options ) => new DiffusionParticle1( options );
const createDiffusionParticle1 = options => new DiffusionParticle1( options );
this.leftSettings.numberOfParticlesProperty.link( numberOfParticles => {
this.updateNumberOfParticles( numberOfParticles,
this.container.leftBounds,
Expand All @@ -84,7 +84,7 @@ define( require => {
assert && assert( GasPropertiesUtils.isArrayOf( this.particles1, DiffusionParticle1 ),
'particles1 should contain only DiffusionParticle1' );
} );
const createDiffusionParticle2 = ( options ) => new DiffusionParticle2( options );
const createDiffusionParticle2 = options => new DiffusionParticle2( options );
this.rightSettings.numberOfParticlesProperty.link( numberOfParticles => {
this.updateNumberOfParticles( numberOfParticles,
this.container.rightBounds,
Expand Down
2 changes: 1 addition & 1 deletion js/energy/EnergyScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ define( require => {
assert && assert( tandem instanceof Tandem, `invalid tandem: ${tandem}` );

const createModel = () => new EnergyModel( tandem.createTandem( 'model' ) );
const createView = ( model ) => new EnergyScreenView( model, tandem.createTandem( 'view' ) );
const createView = model => new EnergyScreenView( model, tandem.createTandem( 'view' ) );

super( createModel, createView, tandem, {
name: screenEnergyString,
Expand Down
2 changes: 1 addition & 1 deletion js/explore/ExploreScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ define( require => {
assert && assert( tandem instanceof Tandem, `invalid tandem: ${tandem}` );

const createModel = () => new ExploreModel( tandem.createTandem( 'model' ) );
const createView = ( model ) => new ExploreScreenView( model, tandem.createTandem( 'view' ) );
const createView = model => new ExploreScreenView( model, tandem.createTandem( 'view' ) );

super( createModel, createView, tandem, {
name: screenExploreString,
Expand Down
2 changes: 1 addition & 1 deletion js/ideal/IdealScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ define( require => {
}, options );

const createModel = () => new IdealModel( tandem.createTandem( 'model' ) );
const createView = ( model ) => new IdealScreenView( model, tandem.createTandem( 'view' ), {
const createView = model => new IdealScreenView( model, tandem.createTandem( 'view' ), {
hasHoldConstantControls: options.hasHoldConstantControls
} );

Expand Down

0 comments on commit 9505bd9

Please sign in to comment.