Skip to content

Commit

Permalink
Added tandemNames for solution combo box, see phetsims/gravity-force-…
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Nov 15, 2016
1 parent 8bc06fb commit b52c64d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions js/beerslaw/model/BeersLawSolution.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ define( function( require ) {

// no corresponding removeInstance is needed because this object exists for the lifetime of the sim
tandem.addInstance( this, TSolution );
this.tandemName = tandem.tail;
}

beersLawLab.register( 'BeersLawSolution', BeersLawSolution );
Expand Down
2 changes: 1 addition & 1 deletion js/beerslaw/view/SolutionComboBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ define( function( require ) {
solutionName.left = colorSquare.right + 5;
solutionName.centerY = colorSquare.centerY;

return ComboBox.createItem( node, solution, { tandem: tandem } );
return ComboBox.createItem( node, solution, { tandemName: solution.tandemName } );
};

return inherit( ComboBox, SolutionComboBox );
Expand Down

0 comments on commit b52c64d

Please sign in to comment.