Skip to content

Commit

Permalink
Use override modifier, see phetsims/chipper#1211
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Apr 6, 2022
1 parent a2579c0 commit 9e4b4d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions js/common/view/CountingCommonView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,7 @@ class CountingCommonView extends ScreenView {
return 0;
}

/**
* @override
*/
public layout( bounds: Bounds2 ): void {
public override layout( bounds: Bounds2 ): void {
super.layout( bounds );

// Some views may need to make extra room for a status bar
Expand Down
2 changes: 1 addition & 1 deletion js/common/view/PaperNumberNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ class PaperNumberNode extends Node {
/**
* Removes listeners from the model. Should be called when removed from the scene graph.
*/
public dispose(): void {
public override dispose(): void {
Property.unmultilink( this.countingObjectTypeAndGroupTypeMultilink! );
this.paperNumber.positionProperty.unlink( this.translationListener );
this.paperNumber.numberValueProperty.unlink( this.updateNumberListener );
Expand Down

0 comments on commit 9e4b4d8

Please sign in to comment.