Skip to content

Commit

Permalink
Formatting, see #398
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Mar 7, 2018
1 parent 9352f32 commit c22e74e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ define( function( require ) {
addChildInstance: function( energySkateParkBasicsModel, tandem, stateObject ) {
assert && assertInstanceOf( energySkateParkBasicsModel, phet.energySkateParkBasics.EnergySkateParkBasicsModel );
var isControlPoint = tandem.phetioID.indexOf( 'model.controlPoint' ) >= 0;

// Control Points are already being created when the tracks are made, so if the tandem is a controlPoint it's a no-op
if ( isControlPoint ) {
return false;
}

// If it isn't a ControlPoint, then it is a Track
return energySkateParkBasicsModel.addTrack( tandem, stateObject.interactive, stateObject.controlPointTandemIDs );
}
Expand Down

0 comments on commit c22e74e

Please sign in to comment.