From 2fad82704e2eda970cdf25b565edfa6ce322c7cf Mon Sep 17 00:00:00 2001 From: Aadish Gupta Date: Fri, 11 Mar 2016 12:39:10 -0700 Subject: [PATCH] bug fix changing the variable name --- js/gravity-force-lab/view/MassNode.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/gravity-force-lab/view/MassNode.js b/js/gravity-force-lab/view/MassNode.js index 6ce8da5c..29808988 100644 --- a/js/gravity-force-lab/view/MassNode.js +++ b/js/gravity-force-lab/view/MassNode.js @@ -209,10 +209,10 @@ define( function( require ) { // for mass1 xMax is left boundary of var sumRadius = modelViewTransform.modelToViewDeltaX( model.mass1.radius ) + modelViewTransform.modelToViewDeltaX( model.mass2.radius ); if ( massModel.position === model.mass1.position ) { - xMax = modelViewTransform.modelToViewX( model.mass2.position ) - sumRadius - modelViewTransform.modelToViewDeltaX( GravityForceLabModel.MinSeparationBetweenMasses ); + xMax = modelViewTransform.modelToViewX( model.mass2.position ) - sumRadius - modelViewTransform.modelToViewDeltaX( GravityForceLabModel.MIN_SEPARATION_BETWEEN_MASSES ); } if ( massModel.position === model.mass2.position ) { - xMin = modelViewTransform.modelToViewX( model.mass1.position ) + sumRadius + modelViewTransform.modelToViewDeltaX( GravityForceLabModel.MinSeparationBetweenMasses ); + xMin = modelViewTransform.modelToViewX( model.mass1.position ) + sumRadius + modelViewTransform.modelToViewDeltaX( GravityForceLabModel.MIN_SEPARATION_BETWEEN_MASSES ); } x = Math.max( Math.min( x, xMax ), xMin ); massModel.positionProperty.set( modelViewTransform.viewToModelX( x ) );