Skip to content

Commit

Permalink
Converted Emitter to use PhetioObject, see phetsims/tandem#46
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Dec 15, 2017
1 parent a50d674 commit 5ccf628
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions js/john-travoltage/model/JohnTravoltageModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,20 +119,17 @@ define( function( require ) {

// @public - emitter called when the reset all button is pressed
this.resetEmitter = new Emitter( {
tandem: tandem.createTandem( 'resetEmitter' ),
phetioArgumentTypes: []
tandem: tandem.createTandem( 'resetEmitter' )
} );

// @public (a11y) - emitter for when an electron discharge finishes or is canceled
this.dischargeEndedEmitter = new Emitter( {
tandem: tandem.createTandem( 'dischargeEndedEmitter' ),
phetioArgumentTypes: []
tandem: tandem.createTandem( 'dischargeEndedEmitter' )
} );

// @public (a11y) - emits an event when the discharge starts
this.dischargeStartedEmitter = new Emitter( {
tandem: tandem.createTandem( 'dischargeStartedEmitter' ),
phetioArgumentTypes: []
tandem: tandem.createTandem( 'dischargeStartedEmitter' )
} );

//If leg dragged across carpet, add electron. Lazy link so that it won't add an electron when the sim starts up.
Expand Down

0 comments on commit 5ccf628

Please sign in to comment.