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 f7b7902 commit 9e9ddb4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/accessibility/ariaHerald.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ define( require => {
// modules
const AccessibilityUtil = require( 'SCENERY/accessibility/AccessibilityUtil' );
const Emitter = require( 'AXON/Emitter' );
const EmitterIO = require( 'AXON/EmitterIO' );
const sceneryPhet = require( 'SCENERY_PHET/sceneryPhet' );
const timer = require( 'PHET_CORE/timer' );

Expand Down Expand Up @@ -80,7 +79,7 @@ define( require => {
this.initialized = true;

this.announcingEmitter = new Emitter( {
phetioType: EmitterIO( [ { type: 'string' }, { type: 'boolean' } ] )
argumentTypes: [ { valueType: 'string' }, { valueType: 'boolean' } ]
} );

// no need to be removed, exists for the lifetime of the simulation.
Expand Down

0 comments on commit 9e9ddb4

Please sign in to comment.