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 1132e6b commit c4e0a22
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/Animation.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ define( function( require ) {
var AnimationTarget = require( 'TWIXT/AnimationTarget' );
var BooleanProperty = require( 'AXON/BooleanProperty' );
var Emitter = require( 'AXON/Emitter' );
var EmitterIO = require( 'AXON/EmitterIO' );
var inherit = require( 'PHET_CORE/inherit' );
var timer = require( 'PHET_CORE/timer' );
var twixt = require( 'TWIXT/twixt' );
Expand Down Expand Up @@ -182,7 +181,7 @@ define( function( require ) {
// A {number} is provided as a single argument to the emit callback, and represents how much "extra" time occurred
// after the end of the animation. For example, if you have a 1-second animation and stepped it by 3 seconds, this
// finished emitter would be called with 2 seconds.
this.finishEmitter = new Emitter( { phetioType: EmitterIO( [ { type: 'number' } ] ) } );
this.finishEmitter = new Emitter( { argumentTypes: [ { validValue: 'number' } ] } );

// @public {Emitter} - Fired when the animation is manually stopped (with stop()). Does NOT fire when it finishes
// normally.
Expand Down

0 comments on commit c4e0a22

Please sign in to comment.