Skip to content

Commit

Permalink
Re activating sound generator assertion, see phetsims/scenery-phet#806
Browse files Browse the repository at this point in the history
  • Loading branch information
AgustinVallejo committed Sep 4, 2023
1 parent 330140b commit 0e3b616
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/Slider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ export default class Slider extends Sizable( AccessibleSlider( Node, 0 ) ) {

const rangeProperty = range instanceof Range ? new TinyProperty( range ) : range;

// assert && assert( options.soundGenerator === Slider.DEFAULT_SOUND || _.isEmpty( options.valueChangeSoundGeneratorOptions ),
// 'options should only be supplied when using default sound generator' );
assert && assert( options.soundGenerator === Slider.DEFAULT_SOUND || _.isEmpty( options.valueChangeSoundGeneratorOptions ),
'options should only be supplied when using default sound generator' );

// If no sound generator was provided, create the default.
if ( options.soundGenerator === Slider.DEFAULT_SOUND ) {
Expand Down

0 comments on commit 0e3b616

Please sign in to comment.