Skip to content

Commit

Permalink
use EmitterIO for validators in instrumented Emitters, phetsims/axon#204
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Feb 23, 2019
1 parent cae16c0 commit 80409cb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions js/common/model/ArithmeticModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ define( function( require ) {
this.checkAnswerEmitter = new Emitter( {
tandem: tandem.createTandem( 'checkAnswerEmitter' ),

// TODO: use of both of these is redundant, and should get fixed with https://github.com/phetsims/axon/issues/194
validators: [ { validValue: Object } ],
phetioType: EmitterIO( [ { name: 'results', type: ObjectIO } ] )
phetioType: EmitterIO( [ { name: 'results', type: ObjectIO, validator: { validValue: Object } } ] )
} );

// set up the 'fillEquation' function, which is used to fill in the missing portion(s) based on the user's inputs
Expand Down

0 comments on commit 80409cb

Please sign in to comment.