Skip to content

Commit

Permalink
remove incorrect parameters for TinyEmitter, phetsims/scenery#1131
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Feb 11, 2021
1 parent 324fdb4 commit d1b68e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/animationFrameTimer.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import axon from './axon.js';
import Timer from './Timer.js';

// Like stepTimer but runs every frame whether the sim is active or not.
const animationFrameTimer = new Timer( { parameters: [ { valueType: 'number' } ] } );
const animationFrameTimer = new Timer();

axon.register( 'animationFrameTimer', animationFrameTimer );
export default animationFrameTimer;
4 changes: 2 additions & 2 deletions js/stepTimer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2020, University of Colorado Boulder

import Timer from './Timer.js';
import axon from './axon.js';
import Timer from './Timer.js';

/**
* Register and return a singleton timer, which can be used to schedule events. This ticks under the following circumstances:
Expand All @@ -15,7 +15,7 @@ import axon from './axon.js';
* Sim.stepSimulation. Listeners added with setTimeout/setInterval are called with no arguments. This is not specific
* to the running screen, it is global across all screens.
*/
const stepTimer = new Timer( { parameters: [ { valueType: 'number' } ] } );
const stepTimer = new Timer();

axon.register( 'stepTimer', stepTimer );
export default stepTimer;

0 comments on commit d1b68e0

Please sign in to comment.