From c143c75ec94b6c870aa9a9d139b47c7a3f6c349e Mon Sep 17 00:00:00 2001 From: zepumph Date: Wed, 27 Feb 2019 12:52:45 -0900 Subject: [PATCH] remove emit2(), use emit() instead, https://github.com/phetsims/axon/issues/204 https://github.com/phetsims/axon/issues/211 --- js/photon-absorption/model/Molecule.js | 2 +- js/photon-absorption/model/molecules/NO2.js | 2 +- js/photon-absorption/model/molecules/O3.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/photon-absorption/model/Molecule.js b/js/photon-absorption/model/Molecule.js index 251da5f4..18a0131a 100644 --- a/js/photon-absorption/model/Molecule.js +++ b/js/photon-absorption/model/Molecule.js @@ -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 ); diff --git a/js/photon-absorption/model/molecules/NO2.js b/js/photon-absorption/model/molecules/NO2.js index 4c178dd2..51566a49 100644 --- a/js/photon-absorption/model/molecules/NO2.js +++ b/js/photon-absorption/model/molecules/NO2.js @@ -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 diff --git a/js/photon-absorption/model/molecules/O3.js b/js/photon-absorption/model/molecules/O3.js index de5986d8..edcf93e3 100644 --- a/js/photon-absorption/model/molecules/O3.js +++ b/js/photon-absorption/model/molecules/O3.js @@ -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