From 34154146b4f791918b000b5e4c478ea799bfab46 Mon Sep 17 00:00:00 2001 From: Chris Malley Date: Wed, 6 Jul 2016 10:57:22 -0600 Subject: [PATCH] StepBackButton, StepForwardButton: remove stepFunction param, use options.listener, https://github.com/phetsims/scenery-phet/issues/243 --- .../view/EnergySkateParkBasicsScreenView.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/energy-skate-park-basics/view/EnergySkateParkBasicsScreenView.js b/js/energy-skate-park-basics/view/EnergySkateParkBasicsScreenView.js index 12c02c30..22981f12 100644 --- a/js/energy-skate-park-basics/view/EnergySkateParkBasicsScreenView.js +++ b/js/energy-skate-park-basics/view/EnergySkateParkBasicsScreenView.js @@ -156,7 +156,8 @@ define( function( require ) { playPauseButton.scale( isPlaying ? ( 1 / pauseSizeIncreaseFactor ) : pauseSizeIncreaseFactor ); } ); - var stepButton = new StepForwardButton( function() { model.manualStep(); }, playProperty, { + var stepButton = new StepForwardButton( playProperty, { + listener: function() { model.manualStep(); }, phetioID: options.tandem.createTandem( 'stepButton' ) } );