Skip to content

Commit

Permalink
Initialize isDisposable in Disposable.ts, see phetsims/axon#436
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jun 22, 2023
1 parent 9c5835b commit 02a39ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/wavepacket/model/WavePacketModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import WavePacketAmplitudesChart from './WavePacketAmplitudesChart.js';
import WavePacketAxisDescriptions from './WavePacketAxisDescriptions.js';
import WavePacketComponentsChart from './WavePacketComponentsChart.js';
import WavePacketSumChart from './WavePacketSumChart.js';
import Disposable from '../../../../axon/js/Disposable.js';

export default class WavePacketModel implements TModel {

Expand Down Expand Up @@ -88,7 +89,7 @@ export default class WavePacketModel implements TModel {
}

public dispose(): void {
assert && assert( false, 'dispose is not supported, exists for the lifetime of the sim' );
Disposable.assertNotDisposable();
}
}

Expand Down

0 comments on commit 02a39ab

Please sign in to comment.