Skip to content

Commit

Permalink
Cleanup in Aligner, see #86
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Nov 6, 2017
1 parent da0facc commit b5b0c1d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions js/faradays-law/view/Aligner.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ define( function( require ) {

// constants
var BULB_POSITION = new Vector2( 190, 244 );
var Voltmeter_POSITION = BULB_POSITION.minusXY( 0, 165 );
var VOLTMETER_POSITION = BULB_POSITION.minusXY( 0, 165 );

/**
*
* @param {FaradaysLawModel} model
* @param {Object} bottomCoilEndRelativePositions
* @param {Object} topCoilEndRelativePositions
Expand All @@ -29,7 +28,7 @@ define( function( require ) {
this.bottomCoilPosition = model.bottomCoil.position;
this.topCoilPosition = model.topCoil.position;
this.bulbPosition = BULB_POSITION;
this.voltmeterPosition = Voltmeter_POSITION;
this.voltmeterPosition = VOLTMETER_POSITION;

this.bottomCoilEndPositions = {
topEnd: bottomCoilEndRelativePositions.topEnd.plus( model.bottomCoil.position ),
Expand All @@ -45,4 +44,4 @@ define( function( require ) {
faradaysLaw.register( 'Aligner', Aligner );

return inherit( Object, Aligner );
} );
} );

0 comments on commit b5b0c1d

Please sign in to comment.