Skip to content

Commit

Permalink
Promote EventTimer static classes to top-level, see phetsims/tasks#1132
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Apr 30, 2024
1 parent 7fb495f commit cc1a629
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/common/model/ConstantDtClock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import Emitter from '../../../../axon/js/Emitter.js';
import faradaysElectromagneticLab from '../../faradaysElectromagneticLab.js';
import NumberIO from '../../../../tandem/js/types/NumberIO.js';
import EventTimer from '../../../../phet-core/js/EventTimer.js';
import EventTimer, { ConstantEventModel } from '../../../../phet-core/js/EventTimer.js';

export default class ConstantDtClock extends EventTimer {

Expand All @@ -39,7 +39,7 @@ export default class ConstantDtClock extends EventTimer {
const eventCallback = ( timeElapsed: number ) => this.emitter.emit( ConstantDtClock.DT );

// eventCallback will be called every 1 / FRAMES_PER_SECOND seconds.
const eventModel = new EventTimer.ConstantEventModel( ConstantDtClock.FRAMES_PER_SECOND );
const eventModel = new ConstantEventModel( ConstantDtClock.FRAMES_PER_SECOND );

super( eventModel, eventCallback );

Expand Down

0 comments on commit cc1a629

Please sign in to comment.