From acfefd07553fd2b49a402d01c622840ffc1f027f Mon Sep 17 00:00:00 2001 From: denz1994 Date: Wed, 30 Jan 2019 16:03:04 -0500 Subject: [PATCH] Addressed REVIEW: Using unary operator to cast Number type. https://github.com/phetsims/masses-and-springs-basics/issues/48 --- js/common/view/SpringScreenView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/common/view/SpringScreenView.js b/js/common/view/SpringScreenView.js index 9db2ad87..767c11dd 100644 --- a/js/common/view/SpringScreenView.js +++ b/js/common/view/SpringScreenView.js @@ -340,7 +340,7 @@ define( function( require ) { sliderTrackSize: options.sliderTrackSize, tickLabelSpacing: options.tickLabelSpacing, constrainValue: function( value ) { - return Util.toFixed( value, 0 ); + return +Util.toFixed( value, 0 ); } } );