Skip to content

Commit

Permalink
Emitter to use argumentTypes with Validator validation, see phetsims/…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jan 5, 2019
1 parent f1c030e commit 7f18f4a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/Sim.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ define( function( require ) {
// @public Emitter that indicates when the sim resized. This Emitter is implemented so it can be automatically played back.
this.resizedEmitter = new Emitter( {
tandem: Tandem.generalTandem.createTandem( 'resizedEmitter' ),

// TODO: use of both of these is redundant, and should get fixed with https://github.com/phetsims/axon/issues/194
argumentTypes: [ { valueType: 'number' }, { valueType: 'number' } ],
phetioType: EmitterIO( [
{ name: 'width', type: NumberIO },
{ name: 'height', type: NumberIO }
Expand Down Expand Up @@ -147,6 +150,9 @@ define( function( require ) {
// played back.
this.stepSimulationEmitter = new Emitter( {
tandem: Tandem.generalTandem.createTandem( 'stepSimulationEmitter' ),

// TODO: use of both of these is redundant, and should get fixed with https://github.com/phetsims/axon/issues/194
argumentTypes: [ { valueType: 'number' } ],
phetioType: EmitterIO( [ { name: 'dt', type: NumberIO } ] ),
phetioHighFrequency: true,
phetioPlayback: true,
Expand Down

0 comments on commit 7f18f4a

Please sign in to comment.