Skip to content

Commit

Permalink
add missing default options and merge, #165
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Sep 20, 2021
1 parent 549b407 commit 48c9c4c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/wavepacket/model/WavePacket.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
import DerivedProperty from '../../../../axon/js/DerivedProperty.js';
import NumberProperty from '../../../../axon/js/NumberProperty.js';
import Range from '../../../../dot/js/Range.js';
import merge from '../../../../phet-core/js/merge.js';
import Tandem from '../../../../tandem/js/Tandem.js';
import ArrayIO from '../../../../tandem/js/types/ArrayIO.js';
import NumberIO from '../../../../tandem/js/types/NumberIO.js';
import fourierMakingWaves from '../../fourierMakingWaves.js';
Expand All @@ -35,7 +37,9 @@ class WavePacket {
*/
constructor( options ) {

//REVIEW: options.tandem looks required, acceptable to do a merge with an opt-out tandem here?
options = merge( {
tandem: Tandem.REQUIRED
}, options );

// @public
this.L = 1; // wavelength when component spacing is 2 * Math.PI, in m
Expand Down

0 comments on commit 48c9c4c

Please sign in to comment.