Skip to content

Commit

Permalink
remove emit1(), use emit() instead, phetsims/axon#211
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Feb 27, 2019
1 parent aac22fe commit a7197df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/photon-absorption/model/Molecule.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ define( function( require ) {
this.photonGroupTandem = null;

// @public Emitter for 'photonEmitted'
this.photonEmittedEmitter = new Emitter();
this.photonEmittedEmitter = new Emitter( { validationEnabled: false } );

// @public Emitter for 'brokeApart' event
this.brokeApartEmitter = new Emitter( { validationEnabled: false } );
Expand Down Expand Up @@ -459,7 +459,7 @@ define( function( require ) {
var centerOfGravityPosRef = this.centerOfGravityProperty.get();
photonToEmit.location = new Vector2( centerOfGravityPosRef.x, centerOfGravityPosRef.y );
this.absorptionHysteresisCountdownTime = ABSORPTION_HYSTERESIS_TIME;
this.photonEmittedEmitter.emit1( photonToEmit );
this.photonEmittedEmitter.emit( photonToEmit );
// this.trigger( 'photonEmitted', photonToEmit );
},

Expand Down

0 comments on commit a7197df

Please sign in to comment.