Skip to content

Commit

Permalink
manually dispose KeyboardHelpSectionRows, phetsims/scenery-phet#769
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Apr 4, 2023
1 parent c9bd1f4 commit e8554aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/view/GravityForceLabKeyboardHelpContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,10 @@ class MoveOrJumpGrabbedRulerHelpSection extends KeyboardHelpSection {
labelInnerContent: jumpHomePDOMString
} );

super( moveOrJumpGrabbedRulerString, [ jumpStartRow, jumpHomeRow, moveRulerRow, moveInSmallerStepsRow ], options );
const rows = [ jumpStartRow, jumpHomeRow, moveRulerRow, moveInSmallerStepsRow ];
super( moveOrJumpGrabbedRulerString, rows, options );
this.disposeEmitter.addListener( () => rows.forEach( row => row.dispose() ) );

}
}

Expand Down

0 comments on commit e8554aa

Please sign in to comment.