Skip to content

Commit

Permalink
SelfVoicingPanelSection -> VoicingPanelSection, see phetsims/tasks#1083
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Apr 5, 2021
1 parent 2756f38 commit ed5d625
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions js/preferences/AudioPreferencesPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import joist from '../joist.js';
import joistStrings from '../joistStrings.js';
import PreferencesDialog from './PreferencesDialog.js';
import PreferencesToggleSwitch from './PreferencesToggleSwitch.js';
import SelfVoicingPanelSection from './SelfVoicingPanelSection.js';
import VoicingPanelSection from './VoicingPanelSection.js';
import SoundPanelSection from './SoundPanelSection.js';

// constants
Expand All @@ -34,7 +34,7 @@ class AudioPreferencesTabPanel extends VBox {
// if running in english locale
// NOTE: This should be for the whole feature, not just the dialog
if ( phet.chipper.locale === 'en' && audioOptions.supportsVoicing ) {
panelChildren.push( new SelfVoicingPanelSection( enableToolbarProperty ) );
panelChildren.push( new VoicingPanelSection( enableToolbarProperty ) );
}

if ( audioOptions.supportsSound ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const voicingEnabledString = 'Voicing on.';
const voiceVariablesPatternString = '{{value}}x';
const voicingDescriptionString = 'Info will be voiced when enabled.';

class SelfVoicingPanelSection extends PreferencesPanelSection {
class VoicingPanelSection extends PreferencesPanelSection {

/**
* @param {BooleanProperty} toolbarEnabledProperty - whether or not the Toolbar is enabled for use
Expand Down Expand Up @@ -217,5 +217,5 @@ class VoicingPitchSlider {
}
}

joist.register( 'SelfVoicingPanelSection', SelfVoicingPanelSection );
export default SelfVoicingPanelSection;
joist.register( 'VoicingPanelSection', VoicingPanelSection );
export default VoicingPanelSection;

0 comments on commit ed5d625

Please sign in to comment.