diff --git a/js/molecules-and-light-main.js b/js/molecules-and-light-main.js index bd27b7f8..2e1b45cc 100644 --- a/js/molecules-and-light-main.js +++ b/js/molecules-and-light-main.js @@ -10,16 +10,13 @@ import Sim from '../../joist/js/Sim.js'; import simLauncher from '../../joist/js/simLauncher.js'; import platform from '../../phet-core/js/platform.js'; import Tandem from '../../tandem/js/Tandem.js'; -import MoleculesAndLightKeyboardHelpContent from './common/view/MoleculesAndLightKeyboardHelpContent.js'; -import moleculesAndLightStrings from './moleculesAndLightStrings.js'; import MoleculesAndLightScreen from './moleculesandlight/MoleculesAndLightScreen.js'; +import moleculesAndLightStrings from './moleculesAndLightStrings.js'; const moleculesAndLightTitleString = moleculesAndLightStrings[ 'molecules-and-light' ].title; -const keyboardHelpContent = new MoleculesAndLightKeyboardHelpContent(); - const simOptions = { - keyboardHelpNode: keyboardHelpContent, + hasKeyboardHelpContent: true, credits: { leadDesign: 'Kelly Lancaster (Java), Amy Rouinfar (HTML5)', diff --git a/js/moleculesandlight/MoleculesAndLightScreen.js b/js/moleculesandlight/MoleculesAndLightScreen.js index ef6b5e4b..7493c1f5 100644 --- a/js/moleculesandlight/MoleculesAndLightScreen.js +++ b/js/moleculesandlight/MoleculesAndLightScreen.js @@ -9,6 +9,7 @@ import Property from '../../../axon/js/Property.js'; import Screen from '../../../joist/js/Screen.js'; +import MoleculesAndLightKeyboardHelpContent from '../common/view/MoleculesAndLightKeyboardHelpContent.js'; import moleculesAndLight from '../moleculesAndLight.js'; import MoleculesAndLightModel from './model/MoleculesAndLightModel.js'; import MoleculesAndLightScreenView from './view/MoleculesAndLightScreenView.js'; @@ -23,7 +24,8 @@ class MoleculesAndLightScreen extends Screen { function() { return new MoleculesAndLightModel( tandem.createTandem( 'model' ) ); }, function( model ) { return new MoleculesAndLightScreenView( model, tandem.createTandem( 'view' ) ); }, { backgroundColorProperty: new Property( '#C5D6E8' ), - tandem: tandem + tandem: tandem, + keyboardHelpNode: new MoleculesAndLightKeyboardHelpContent() } ); }