From 7e2561775a387b916316ebd181defff305d33a28 Mon Sep 17 00:00:00 2001 From: pixelzoom Date: Wed, 13 Mar 2024 14:03:46 -0600 Subject: [PATCH] delete duplicate computation of STRENGTH_RANGE --- js/common/model/BarMagnet.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/common/model/BarMagnet.ts b/js/common/model/BarMagnet.ts index 0bc5b0fd..4eb96f5b 100644 --- a/js/common/model/BarMagnet.ts +++ b/js/common/model/BarMagnet.ts @@ -62,9 +62,7 @@ export default class BarMagnet extends Magnet { phetioDocumentation: 'To change strength, use strengthPercentProperty.' } ); - const strengthRange = new Range( ( STRENGTH_PERCENT_RANGE.min / 100 ) * MAX_STRENGTH, ( STRENGTH_PERCENT_RANGE.max / 100 ) * MAX_STRENGTH ); - - super( strengthProperty, strengthRange, options ); + super( strengthProperty, STRENGTH_RANGE, options ); this.strengthPercentProperty = strengthPercentProperty; }