diff --git a/js/demo/testing/view/RemoveAndDisposeTestPanel.js b/js/demo/testing/view/RemoveAndDisposeTestPanel.js index 51df66e4..76974c09 100644 --- a/js/demo/testing/view/RemoveAndDisposeTestPanel.js +++ b/js/demo/testing/view/RemoveAndDisposeTestPanel.js @@ -10,6 +10,7 @@ define( function( require ) { // modules const ComboBox = require( 'SUN/ComboBox' ); + const ComboBoxItem = require( 'SUN/ComboBoxItem' ); const HBox = require( 'SCENERY/nodes/HBox' ); const inherit = require( 'PHET_CORE/inherit' ); const Node = require( 'SCENERY/nodes/Node' ); @@ -85,7 +86,7 @@ define( function( require ) { // create the combo box for selecting the type of sound generator to add const comboBoxItems = []; _.keys( SOUND_GENERATOR_INFO ).forEach( soundGeneratorKey => { - comboBoxItems.push( ComboBox.createItem( + comboBoxItems.push( new ComboBoxItem( new Text( SOUND_GENERATOR_INFO[ soundGeneratorKey ].comboBoxName, { font: COMBO_BOX_FONT } ), soundGeneratorKey ) ); diff --git a/js/demo/testing/view/SoundEncodingComparisonPanel.js b/js/demo/testing/view/SoundEncodingComparisonPanel.js index b7c3de23..1e8a9a5b 100644 --- a/js/demo/testing/view/SoundEncodingComparisonPanel.js +++ b/js/demo/testing/view/SoundEncodingComparisonPanel.js @@ -10,6 +10,7 @@ define( function( require ) { // modules const ComboBox = require( 'SUN/ComboBox' ); + const ComboBoxItem = require( 'SUN/ComboBoxItem' ); const HBox = require( 'SCENERY/nodes/HBox' ); const HStrut = require( 'SCENERY/nodes/HStrut' ); const inherit = require( 'PHET_CORE/inherit' ); @@ -207,7 +208,7 @@ define( function( require ) { sounds.forEach( ( soundDescriptor, index ) => { // create the combo box item for selecting this sound - soundSelectorComboBoxItems.push( ComboBox.createItem( + soundSelectorComboBoxItems.push( new ComboBoxItem( new Text( soundDescriptor.soundName, { font: COMBO_BOX_FONT } ), index ) ); @@ -216,7 +217,7 @@ define( function( require ) { const encodingSelectorComboBoxItems = []; soundDescriptor.encodings.forEach( ( encoding, encodingIndex ) => { const stereoMonoString = encoding.stereo ? '(stereo)' : '(mono)'; - encodingSelectorComboBoxItems.push( ComboBox.createItem( + encodingSelectorComboBoxItems.push( new ComboBoxItem( new Text( encoding.format + ' ' + encoding.rate + ' ' + stereoMonoString, { font: COMBO_BOX_FONT } ), encodingIndex ) );