From 5ccf62862218995a6cbb834341d0aba54a7759c6 Mon Sep 17 00:00:00 2001 From: samreid Date: Fri, 15 Dec 2017 09:21:54 -0700 Subject: [PATCH] Converted Emitter to use PhetioObject, see https://github.com/phetsims/tandem/issues/46 --- js/john-travoltage/model/JohnTravoltageModel.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/js/john-travoltage/model/JohnTravoltageModel.js b/js/john-travoltage/model/JohnTravoltageModel.js index 8851a409..ff6e1d07 100644 --- a/js/john-travoltage/model/JohnTravoltageModel.js +++ b/js/john-travoltage/model/JohnTravoltageModel.js @@ -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.