Skip to content

Commit

Permalink
remove emit2(), use emit() instead, phetsims/axon#204 phetsims/axon#211
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph authored and jessegreenberg committed Apr 21, 2021
1 parent a742c6d commit c143c75
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/photon-absorption/model/Molecule.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ define( function( require ) {
this.photonEmittedEmitter = new Emitter();

// @public Emitter for 'brokeApart' event
this.brokeApartEmitter = new Emitter();
this.brokeApartEmitter = new Emitter( { validationEnabled: false } );
}

moleculesAndLight.register( 'Molecule', Molecule );
Expand Down
2 changes: 1 addition & 1 deletion js/photon-absorption/model/molecules/NO2.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ define( function( require ) {
// Create the constituent molecules that result from breaking apart and add them to the activeMolecules observable array.
var nitrogenMonoxideMolecule = new NO();
var singleOxygenMolecule = new O();
this.brokeApartEmitter.emit2( nitrogenMonoxideMolecule, singleOxygenMolecule );
this.brokeApartEmitter.emit( nitrogenMonoxideMolecule, singleOxygenMolecule );

// Set up the direction and velocity of the constituent molecules. These are set up mostly to look good, and their
// directions and velocities have little if anything to do with any physical rules of atomic dissociation. If
Expand Down
2 changes: 1 addition & 1 deletion js/photon-absorption/model/molecules/O3.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ define( function( require ) {
// Create the constituent molecules that result from breaking apart.
var diatomicOxygenMolecule = new O2();
var singleOxygenMolecule = new O();
this.brokeApartEmitter.emit2( diatomicOxygenMolecule, singleOxygenMolecule );
this.brokeApartEmitter.emit( diatomicOxygenMolecule, singleOxygenMolecule );

// Set up the direction and velocity of the constituent molecules. These are set up mostly to look good, and their
// directions and velocities have little if anything to do with any physical rules of atomic dissociation. If
Expand Down

0 comments on commit c143c75

Please sign in to comment.