From 73ef7ce261bda99abc984df5ef430fe9598d47fe Mon Sep 17 00:00:00 2001 From: Chris Malley Date: Mon, 9 Nov 2015 10:54:20 -0700 Subject: [PATCH] format with PhET style --- js/gravity-and-orbits/module/ModeConfig.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/gravity-and-orbits/module/ModeConfig.js b/js/gravity-and-orbits/module/ModeConfig.js index 30033fa0..0edf21ce 100644 --- a/js/gravity-and-orbits/module/ModeConfig.js +++ b/js/gravity-and-orbits/module/ModeConfig.js @@ -36,8 +36,8 @@ define( function( require ) { var deltaVelocity = this.getTotalMomentum().times( -1.0 / this.getTotalMass() ); var bodies = this.getBodies(); for ( var i = 0; i < bodies.length; i++ ) { - bodies[i].vx += deltaVelocity.x; - bodies[i].vy += deltaVelocity.y; + bodies[ i ].vx += deltaVelocity.x; + bodies[ i ].vy += deltaVelocity.y; } }, @@ -51,7 +51,7 @@ define( function( require ) { var totalMomentum = new Vector2(); var bodies = this.getBodies(); for ( var i = 0; i < bodies.length; i++ ) { - totalMomentum = totalMomentum.plus( bodies[i].getMomentum() ); + totalMomentum = totalMomentum.plus( bodies[ i ].getMomentum() ); } return totalMomentum; }, @@ -64,7 +64,7 @@ define( function( require ) { var totalMass = 0.0; var bodies = this.getBodies(); for ( var i = 0; i < bodies.length; i++ ) { - totalMass += bodies[i].mass; + totalMass += bodies[ i ].mass; } return totalMass; },