Skip to content

Commit

Permalink
Use Emitter.addListener, see phetsims/axon#222
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Apr 12, 2019
1 parent 763571a commit ecc2f95
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions js/waves/view/WavesScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -399,10 +399,9 @@ define( require => {
waterGrayBackground.visible = rotationAmount !== 0 && scene === model.waterScene;
} );

// @public
this.steppedEmitter = new Emitter( {
first: () => waterDropLayer.step( waterSideViewNode )
} );
// @public - TODO https://github.com/phetsims/axon/issues/222: use Action?
this.steppedEmitter = new Emitter();
this.steppedEmitter.addListener( () => waterDropLayer.step( waterSideViewNode ) );

const createSoundParticleLayer = () => {

Expand Down

0 comments on commit ecc2f95

Please sign in to comment.