Skip to content

Commit

Permalink
convert to new ComboBoxItem, phetsims/sun#450
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Malley <[email protected]>
  • Loading branch information
pixelzoom committed Jan 17, 2019
1 parent e097059 commit a3e9a34
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/spectra/view/TimeControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ define( function( require ) {

// modules
var ComboBox = require( 'SUN/ComboBox' );
var ComboBoxItem = require( 'SUN/ComboBoxItem' );
var HBox = require( 'SCENERY/nodes/HBox' );
var HStrut = require( 'SCENERY/nodes/HStrut' );
var inherit = require( 'PHET_CORE/inherit' );
Expand Down Expand Up @@ -54,9 +55,9 @@ define( function( require ) {
maxWidth: 125 // i18n, determined empirically
};
var speedItems = [
ComboBox.createItem( new Text( fastString, labelOptions ), 'fast' ),
ComboBox.createItem( new Text( normalString, labelOptions ), 'normal' ),
ComboBox.createItem( new Text( slowString, labelOptions ), 'slow' )
new ComboBoxItem( new Text( fastString, labelOptions ), 'fast' ),
new ComboBoxItem( new Text( normalString, labelOptions ), 'normal' ),
new ComboBoxItem( new Text( slowString, labelOptions ), 'slow' )
];
var speedComboBox = new ComboBox( speedItems, clockSpeed, comboBoxListParent, {
cornerRadius: 8,
Expand Down

0 comments on commit a3e9a34

Please sign in to comment.