Skip to content

Commit

Permalink
remove dispose code in keyboard help, phetsims/scenery-phet#810
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kauzmann <[email protected]>
  • Loading branch information
zepumph committed Jun 8, 2023
1 parent bfce161 commit 2094f15
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions js/HomeScreenKeyboardHelpContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,11 @@ import { Node } from '../../scenery/js/imports.js';
import joist from './joist.js';

class HomeScreenKeyboardHelpContent extends Node {
private readonly disposeHomeScreenKeyboardHelpContent: () => void;

public constructor() {
const basicActionsKeyboardHelpSection = new BasicActionsKeyboardHelpSection();
super( {
children: [ basicActionsKeyboardHelpSection ]
} );

this.disposeHomeScreenKeyboardHelpContent = () => {
basicActionsKeyboardHelpSection.dispose();
};
}

public override dispose(): void {
this.disposeHomeScreenKeyboardHelpContent();
super.dispose();
}
}

Expand Down

0 comments on commit 2094f15

Please sign in to comment.