Skip to content

Commit

Permalink
Generalized ToggleNode to handle an arbitrary number of values, see p…
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed May 14, 2018
1 parent 4e4b2a5 commit 90d16b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/lab/view/LabPlayPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 90d16b2

Please sign in to comment.