Skip to content

Commit

Permalink
Added tandems to soluteCombobox phetsims/phet-io#190
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Nov 14, 2016
1 parent 302b074 commit 8bc06fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions js/concentration/model/Solute.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ define( function( require ) {

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

beersLawLab.register( 'Solute', Solute );
Expand Down
2 changes: 1 addition & 1 deletion js/concentration/view/SoluteComboBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ define( function( require ) {
textNode.left = colorNode.right + 5;
textNode.centerY = colorNode.centerY;

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

return inherit( ComboBox, SoluteComboBox );
Expand Down

0 comments on commit 8bc06fb

Please sign in to comment.