Skip to content

Commit

Permalink
comment out createKeyboardHelpNode in all screens, to prevent PhET-iO…
Browse files Browse the repository at this point in the history
… memory leak, #249
  • Loading branch information
pixelzoom committed Nov 17, 2022
1 parent 7ed6b11 commit cd9a7e5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions js/macro/MacroScreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import phScale from '../phScale.js';
import PhScaleStrings from '../PhScaleStrings.js';
import MacroModel from './model/MacroModel.js';
import MacroScreenView from './view/MacroScreenView.js';
import MacroKeyboardHelpContent from './view/MacroKeyboardHelpContent.js';

type SelfOptions = EmptySelfOptions;

Expand All @@ -42,8 +41,9 @@ export default class MacroScreen extends Screen<MacroModel, MacroScreenView> {
navigationBarIcon: new ScreenIcon( new Image( macroNavbarIcon_png ), {
maxIconWidthProportion: 1,
maxIconHeightProportion: 1
} ),
createKeyboardHelpNode: () => new MacroKeyboardHelpContent()
} )
//TODO https://github.com/phetsims/ph-scale/issues/249 restore when work on alternative input resume
// createKeyboardHelpNode: () => new MacroKeyboardHelpContent()
}, providedOptions );

super(
Expand Down
6 changes: 3 additions & 3 deletions js/micro/MicroScreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import PhScaleStrings from '../PhScaleStrings.js';
import MicroModel from './model/MicroModel.js';
import MicroScreenView from './view/MicroScreenView.js';
import PickRequired from '../../../phet-core/js/types/PickRequired.js';
import MicroKeyboardHelpContent from './view/MicroKeyboardHelpContent.js';

type SelfOptions = EmptySelfOptions;

Expand All @@ -42,8 +41,9 @@ class MicroScreen extends Screen<MicroModel, MicroScreenView> {
navigationBarIcon: new ScreenIcon( new Image( microNavbarIcon_png ), {
maxIconWidthProportion: 1,
maxIconHeightProportion: 1
} ),
createKeyboardHelpNode: () => new MicroKeyboardHelpContent()
} )
//TODO https://github.com/phetsims/ph-scale/issues/249 restore when work on alternative input resume
// createKeyboardHelpNode: () => new MicroKeyboardHelpContent()
}, providedOptions );

super(
Expand Down
6 changes: 3 additions & 3 deletions js/mysolution/MySolutionScreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import PHScaleColors from '../common/PHScaleColors.js';
import phScale from '../phScale.js';
import PhScaleStrings from '../PhScaleStrings.js';
import MySolutionModel from './model/MySolutionModel.js';
import MySolutionKeyboardHelpContent from './view/MySolutionKeyboardHelpContent.js';
import MySolutionScreenView from './view/MySolutionScreenView.js';

type SelfOptions = EmptySelfOptions;
Expand All @@ -42,8 +41,9 @@ export default class MySolutionScreen extends Screen<MySolutionModel, MySolution
navigationBarIcon: new ScreenIcon( new Image( mySolutionNavbarIcon_png ), {
maxIconWidthProportion: 1,
maxIconHeightProportion: 1
} ),
createKeyboardHelpNode: () => new MySolutionKeyboardHelpContent()
} )
//TODO https://github.com/phetsims/ph-scale/issues/249 restore when work on alternative input resume
// createKeyboardHelpNode: () => new MySolutionKeyboardHelpContent()
}, providedOptions );

super(
Expand Down

0 comments on commit cd9a7e5

Please sign in to comment.