Skip to content

Commit

Permalink
Run code inspection, see: phetsims/mean-share-and-balance#258
Browse files Browse the repository at this point in the history
  • Loading branch information
marlitas committed Jun 7, 2024
1 parent 8e4a100 commit b498820
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/model/SoccerBall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ let count = 0;
export default class SoccerBall extends PhetioObject {

/**
* Continuous value for the drag listener. When dragging, the object snaps to each tickmark. This is an implementation
* Continuous value for the drag listener. When dragging, the object snaps to each tick mark. This is an implementation
* detail for the drag listener that is only used for deltas, and the absolute value does not matter.
* Therefore, it should not be reset (because resetting it would take the model through an incorrect transient state).
*
Expand Down
1 change: 1 addition & 0 deletions js/model/SoccerBallValueProperty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default class SoccerBallValueProperty extends Property<number | null> {

/**
* @param value - The soccer ball's location on the number line. If the soccer ball has not yet landed, 'value' is null.
* @param providedOptions
*/
public constructor( value: number | null, providedOptions?: SoccerBallValuePropertyOptions ) {

Expand Down
2 changes: 1 addition & 1 deletion js/model/SoccerSceneModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ export default class SoccerSceneModel<T extends SoccerBall = SoccerBall> extends

// Even number of values, average the two middle-most values
const mid1Index = ( sortedObjects.length - 2 ) / 2;
const mid2Index = ( sortedObjects.length - 0 ) / 2;
const mid2Index = ( sortedObjects.length ) / 2;
return [ sortedObjects[ mid1Index ], sortedObjects[ mid2Index ] ];
}
else {
Expand Down
2 changes: 1 addition & 1 deletion js/view/SoccerSceneView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default class SoccerSceneView<SceneModel extends SoccerSceneModel = Socce

backLayerSoccerBallLayer.addChild( soccerBallNode );

// While flying, it should be in front in z-order, to be in front of the accordion box
// While flying, it should be at the front in z-order, to be in front of the accordion box
soccerBall.soccerBallPhaseProperty.lazyLink( ( soccerBallPhase, oldSoccerBallPhase ) => {

//when the ball is kicked
Expand Down

0 comments on commit b498820

Please sign in to comment.