diff --git a/js/common/view/ElapsedTimeNumberDisplay.js b/js/common/view/ElapsedTimeNumberDisplay.js index 00071d0..4b35cc4 100644 --- a/js/common/view/ElapsedTimeNumberDisplay.js +++ b/js/common/view/ElapsedTimeNumberDisplay.js @@ -53,20 +53,12 @@ class ElapsedTimeNumberDisplay extends NumberDisplay { size: CollisionLabConstants.DISPLAY_FONT.size } ) }, - decimalPlaces: CollisionLabConstants.DISPLAY_DECIMAL_PLACES - + decimalPlaces: CollisionLabConstants.DISPLAY_DECIMAL_PLACES, + isDisposable: false }, options ); super( elapsedTimeProperty, options.displayRange, options ); } - - /** - * @public - * @override - */ - dispose() { - assert && assert( false, 'ElapsedTimeNumberDisplay is not intended to be disposed' ); - } } collisionLab.register( 'ElapsedTimeNumberDisplay', ElapsedTimeNumberDisplay ); diff --git a/js/common/view/KineticEnergyNumberDisplay.js b/js/common/view/KineticEnergyNumberDisplay.js index 4de3ace..79645f5 100644 --- a/js/common/view/KineticEnergyNumberDisplay.js +++ b/js/common/view/KineticEnergyNumberDisplay.js @@ -38,20 +38,12 @@ class KineticEnergyNumberDisplay extends PlayAreaNumberDisplay { textOptions: { font: CollisionLabConstants.DISPLAY_FONT }, - maxWidth: 300 // constrain width for i18n, determined empirically. - + maxWidth: 300, // constrain width for i18n, determined empirically. + isDisposable: false }, options ); super( totalKineticEnergyProperty, options ); } - - /** - * @public - * @override - */ - dispose() { - assert && assert( false, 'KineticEnergyNumberDisplay is not intended to be disposed' ); - } } collisionLab.register( 'KineticEnergyNumberDisplay', KineticEnergyNumberDisplay );