From 6f947845dccfb4ce1183c8bc96a071fc4802a773 Mon Sep 17 00:00:00 2001 From: Chris Malley Date: Wed, 6 Jul 2016 10:57:21 -0600 Subject: [PATCH] StepBackButton, StepForwardButton: remove stepFunction param, use options.listener, https://github.com/phetsims/scenery-phet/issues/243 --- js/wave-on-a-string/view/WOASView.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/wave-on-a-string/view/WOASView.js b/js/wave-on-a-string/view/WOASView.js index 7ed93c1..a63839b 100644 --- a/js/wave-on-a-string/view/WOASView.js +++ b/js/wave-on-a-string/view/WOASView.js @@ -126,7 +126,8 @@ define( function( require ) { model.playProperty.lazyLink( function( isPlaying ) { playPauseButton.scale( isPlaying ? ( 1 / pauseSizeIncreaseFactor ) : pauseSizeIncreaseFactor ); } ); - this.addChild( new StepForwardButton( model.manualStep.bind( model ), model.playProperty, { + this.addChild( new StepForwardButton( model.playProperty, { + listener: model.manualStep.bind( model ), x: centerControlX + 94, centerY: centerControlY, scale: 0.6,