From 9e4b4d8840f508618e07e50428eeeb1282350166 Mon Sep 17 00:00:00 2001 From: Sam Reid Date: Tue, 5 Apr 2022 18:45:15 -0600 Subject: [PATCH] Use override modifier, see https://github.com/phetsims/chipper/issues/1211 --- js/common/view/CountingCommonView.ts | 5 +---- js/common/view/PaperNumberNode.ts | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/js/common/view/CountingCommonView.ts b/js/common/view/CountingCommonView.ts index b7073a5..1bedb26 100644 --- a/js/common/view/CountingCommonView.ts +++ b/js/common/view/CountingCommonView.ts @@ -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 diff --git a/js/common/view/PaperNumberNode.ts b/js/common/view/PaperNumberNode.ts index 6f8afa2..3eb779a 100644 --- a/js/common/view/PaperNumberNode.ts +++ b/js/common/view/PaperNumberNode.ts @@ -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 );