From 9e9ddb4eaf8ca003abf800c611c9f9899e873df7 Mon Sep 17 00:00:00 2001 From: zepumph Date: Fri, 4 Jan 2019 17:08:09 -0900 Subject: [PATCH] Emitter to use argumentTypes with Validator validation, see https://github.com/phetsims/axon/issues/182 --- js/accessibility/ariaHerald.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/accessibility/ariaHerald.js b/js/accessibility/ariaHerald.js index bfe83d00d..2ee93428f 100644 --- a/js/accessibility/ariaHerald.js +++ b/js/accessibility/ariaHerald.js @@ -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' ); @@ -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.