From 90d16b215a7e4d899fc8f7d4d61d326f645bcd45 Mon Sep 17 00:00:00 2001 From: samreid <reids@colorado.edu> Date: Mon, 14 May 2018 14:25:26 -0600 Subject: [PATCH] Generalized ToggleNode to handle an arbitrary number of values, see https://github.com/phetsims/sun/issues/360 --- js/lab/view/LabPlayPanel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/lab/view/LabPlayPanel.js b/js/lab/view/LabPlayPanel.js index 39570b98..0b5bd9cc 100644 --- a/js/lab/view/LabPlayPanel.js +++ b/js/lab/view/LabPlayPanel.js @@ -20,7 +20,7 @@ define( function( require ) { var PlayButton = require( 'PLINKO_PROBABILITY/common/view/PlayButton' ); var plinkoProbability = require( 'PLINKO_PROBABILITY/plinkoProbability' ); var PlinkoProbabilityConstants = require( 'PLINKO_PROBABILITY/common/PlinkoProbabilityConstants' ); - var ToggleNode = require( 'SUN/ToggleNode' ); + var BooleanToggleNode = require( 'SUN/BooleanToggleNode' ); var VerticalAquaRadioButtonGroup = require( 'SUN/VerticalAquaRadioButtonGroup' ); // constants @@ -118,7 +118,7 @@ define( function( require ) { } } ); - var playPlayPauseButton = new ToggleNode( playButton, pauseButton, this.playButtonVisibleProperty ); + var playPlayPauseButton = new BooleanToggleNode( playButton, pauseButton, this.playButtonVisibleProperty ); // link the ballModeProperty to the state of the playPauseButton ballModeProperty.link( function() {