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 88ebb4d commit 24d210c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion js/friction/view/FrictionKeyboardDragListener.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ define( function( require ) {
// update the oldPositionValue for the next onDrag
oldPositionValue = model.topBookPositionProperty.get().copy();
},
end: ( event ) => {
end: event => {
model.bottomOffsetProperty.set( 0 );

temperatureIncreasingDescriber.endDrag();
Expand Down
2 changes: 1 addition & 1 deletion js/friction/view/FrictionScreenSummaryNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ define( require => {
let previousJiggleString = this.amplitudeToJiggleString( model.vibrationAmplitudeProperty.value );

// make a11y updates as the amplitude changes in the model, no need to unlink, exists for sim lifetime.
model.vibrationAmplitudeProperty.link( ( amplitude ) => {
model.vibrationAmplitudeProperty.link( amplitude => {

// the temperature is decreasing
var tempDecreasing = temperatureDecreasingDescriber.tempDecreasing;
Expand Down
2 changes: 1 addition & 1 deletion js/friction/view/describers/BookMovementDescriber.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ define( require => {
if ( !newLocation.equals( this.lastAlertedLocation ) ) {
var directions = this.getDirections( newLocation, this.lastAlertedLocation );

directions.forEach( ( direction ) => {
directions.forEach( direction => {
this.alertForDirection( direction );
} );

Expand Down
2 changes: 1 addition & 1 deletion js/friction/view/describers/BreakAwayDescriber.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Describer responsible for handling the appropriate alert when atoms evaporate, or "break away" from the top book.
* @author Michael Kauzmann (PhET Interactive Simulations)
*/
define( ( require ) => {
define( require => {
'use strict';

// modules
Expand Down
4 changes: 2 additions & 2 deletions js/friction/view/describers/TemperatureIncreasingDescriber.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* @author Michael Kauzmann (PhET Interactive Simulations)
*/
define( ( require ) => {
define( require => {
'use strict';

// modules
Expand Down Expand Up @@ -105,7 +105,7 @@ define( ( require ) => {
} );

// @private
this.amplitudeListener = ( amplitude ) => {
this.amplitudeListener = amplitude => {

if ( !this.tooSoonForNextAlert && // don't alert a subsequent alert too quickly

Expand Down

0 comments on commit 24d210c

Please sign in to comment.