Skip to content

Commit

Permalink
add ToggleNode to MemoryTestsScreenView, see #324
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Nov 3, 2017
1 parent eba7c54 commit cd95f8d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/demo/MemoryTestsScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ define( function( require ) {
var Property = require( 'AXON/Property' );
var ScreenView = require( 'JOIST/ScreenView' );
var Text = require( 'SCENERY/nodes/Text' );
var ToggleNode = require( 'SUN/ToggleNode' );

var sun = require( 'SUN/sun' );

Expand All @@ -36,6 +37,9 @@ define( function( require ) {
} ),
new ComponentHolder( function() {
return new ABSwitch( booleanProperty, true, new Text( 'true' ), false, new Text( 'false' ) );
} ),
new ComponentHolder( function() {
return new ToggleNode( new Text( 'true' ), new Text( 'false' ), booleanProperty );
} )
];

Expand Down

0 comments on commit cd95f8d

Please sign in to comment.