From ecc2f957e943b2fddcd5e89457462acd7df33488 Mon Sep 17 00:00:00 2001 From: samreid Date: Fri, 12 Apr 2019 10:21:33 -0600 Subject: [PATCH] Use Emitter.addListener, see https://github.com/phetsims/axon/issues/222 --- js/waves/view/WavesScreenView.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/js/waves/view/WavesScreenView.js b/js/waves/view/WavesScreenView.js index 12315093..a3ee3dbf 100644 --- a/js/waves/view/WavesScreenView.js +++ b/js/waves/view/WavesScreenView.js @@ -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 = () => {