From cd95f8d6c6ff3d934e6282f9bf2c0ab8fc416c1d Mon Sep 17 00:00:00 2001 From: Jesse Greenberg Date: Fri, 3 Nov 2017 14:31:40 -0600 Subject: [PATCH] add ToggleNode to MemoryTestsScreenView, see #324 --- js/demo/MemoryTestsScreenView.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/demo/MemoryTestsScreenView.js b/js/demo/MemoryTestsScreenView.js index ba2101b8..87ade7a5 100644 --- a/js/demo/MemoryTestsScreenView.js +++ b/js/demo/MemoryTestsScreenView.js @@ -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' ); @@ -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 ); } ) ];