Skip to content

Commit

Permalink
removed instances of two or more blank lines in a row in the code, re…
Browse files Browse the repository at this point in the history
…solves #30
  • Loading branch information
jbphet committed Sep 23, 2015
1 parent 506a07f commit 246f055
Show file tree
Hide file tree
Showing 19 changed files with 2 additions and 36 deletions.
5 changes: 1 addition & 4 deletions js/neuron/controlpanel/IonsAndChannelsLegendPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,4 @@ define( function( require ) {
}

return inherit( Panel, IonsAndChannelsLegendPanel );

} );


} );
3 changes: 0 additions & 3 deletions js/neuron/controlpanel/SimSpeedControlPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ define( function( require ) {
var VerticalAquaRadioButtonGroup = require( 'SUN/VerticalAquaRadioButtonGroup' );
var Text = require( 'SCENERY/nodes/Text' );


// strings - labels for speed radio buttons
var fastForwardString = require( 'string!NEURON/fastForward' );
var normalString = require( 'string!NEURON/normal' );
Expand All @@ -35,7 +34,6 @@ define( function( require ) {
{ node: new Text( slowMotionString, { font: radioButtonFont } ), property: speedProperty, value: 0.5 }
], { radius: 8, spacing: 8 } );


Panel.call( this, speedRadioButtonGroup, {
// panel options
fill: NeuronConstants.CONTROL_PANEL_BACKGROUND,
Expand All @@ -47,5 +45,4 @@ define( function( require ) {
}

return inherit( Panel, SimSpeedControlPanel );

} );
4 changes: 1 addition & 3 deletions js/neuron/model/AxonMembrane.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,4 @@ define( function( require ) {
}
}
);
} );


} );
2 changes: 0 additions & 2 deletions js/neuron/model/DelayBuffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,6 @@ define( function( require ) {
// Keep going through the buffer.
index = index - 1 > 0 ? index - 1 : this.numEntries - 1;
}


}
delayedValue = this.delayElements[ index ].value;
}
Expand Down
1 change: 0 additions & 1 deletion js/neuron/model/DualGateChannelTraversalMotionStrategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ define( function( require ) {
// performance reasons and to reduce memory allocation, changing vector constructor function to use object literal
// http://jsperf.com/object-notation-vs-constructor


// Create points that represent the inner and outer mouths of the channel.
var outerOpeningLocation = { x: ctr.x + Math.cos( channel.getRotationalAngle() ) * r, y: ctr.y + Math.sin( channel.getRotationalAngle() ) * r };
var innerOpeningLocation = { x: ctr.x - Math.cos( channel.getRotationalAngle() ) * r, y: ctr.y - Math.sin( channel.getRotationalAngle() ) * r };
Expand Down
2 changes: 0 additions & 2 deletions js/neuron/model/GatedChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,3 @@ define( function( require ) {

} );
} );


1 change: 0 additions & 1 deletion js/neuron/model/MembraneChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ define( function( require ) {
var SIDE_HEIGHT_TO_CHANNEL_HEIGHT_RATIO = 1.3;
var DEFAULT_PARTICLE_VELOCITY = 40000; // In nanometers per sec of sim time.


/**
* @param {number} channelWidth
* @param {number} channelHeight
Expand Down
1 change: 0 additions & 1 deletion js/neuron/model/PotassiumGatedChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ define( function( require ) {
// vary a little bit in terms of when they open and close.
var MAX_STAGGER_DELAY = NeuronConstants.MIN_ACTION_POTENTIAL_CLOCK_DT * 10; // In seconds of sim time.


/**
* @param {NeuronModel} modelContainingParticles
* @param {ModifiedHodgkinHuxleyModel} hodgkinHuxleyModel
Expand Down
2 changes: 0 additions & 2 deletions js/neuron/model/PotassiumIon.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,3 @@ define( function( require ) {

} );
} );


2 changes: 0 additions & 2 deletions js/neuron/model/SlowBrownianMotionStrategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,3 @@ define( function( require ) {

} );
} );


1 change: 0 additions & 1 deletion js/neuron/model/SodiumDualGatedChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ define( function( require ) {
// vary a little bit in terms of when they open and close.
var MAX_STAGGER_DELAY = NeuronConstants.MIN_ACTION_POTENTIAL_CLOCK_DT * 5; // In seconds of sim time.


/**
* @param {number} channelWidth
* @param {NeuronModel} modelContainingParticles
Expand Down
2 changes: 0 additions & 2 deletions js/neuron/model/SodiumIon.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,3 @@ define( function( require ) {

} );
} );


1 change: 0 additions & 1 deletion js/neuron/model/SodiumLeakageChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ define( function( require ) {
// testing the Hodgkin-Huxley model.
var PEAK_NEGATIVE_CURRENT = 3.44;


/**
* @param {number} channelWidth
* @param {NeuronModel} modelContainingParticles
Expand Down
3 changes: 0 additions & 3 deletions js/neuron/model/SpeedChangeLinearMotionStrategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,3 @@ define( function( require ) {

} );
} );



1 change: 0 additions & 1 deletion js/neuron/model/TimedFadeAwayStrategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ define( function( require ) {
var inherit = require( 'PHET_CORE/inherit' );
var FadeStrategy = require( 'NEURON/neuron/model/FadeStrategy' );


/**
* @param {number} fadeTime - time, in seconds of sim time, for this to fade away.
* @constructor
Expand Down
2 changes: 0 additions & 2 deletions js/neuron/view/AxonCrossSectionNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ define( function( require ) {
thisNode.addChild( outerMembrane );
var innerMembrane = new Path( innerDiameterCircle, { fill: new Color( 73, 210, 242 ), stroke: Color.BLACK, lineWidth: LINE_WIDTH } );
thisNode.addChild( innerMembrane );


}

return inherit( Node, AxonCrossSectionNode );
Expand Down
2 changes: 0 additions & 2 deletions js/neuron/view/MembraneChannelNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ define( function( require ) {
var inactivationGateString;
var edgeColor = membraneChannelModel.getEdgeColor().colorUtilsDarker( 0.3 );


if ( membraneChannelModel.getHasInactivationGate() ) {

// Add the ball and string that make up the inactivation gate.
Expand Down Expand Up @@ -172,7 +171,6 @@ define( function( require ) {

}


function updateLocation() {
thisNode.channelLayer.translate( mvt.modelToViewPosition( membraneChannelModel.getCenterLocation() ) );
thisNode.edgeLayer.translate( mvt.modelToViewPosition( membraneChannelModel.getCenterLocation() ) );
Expand Down
1 change: 0 additions & 1 deletion js/neuron/view/ParticleNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ define( function( require ) {
thisNode.particle = particle;
thisNode.modelViewTransform = modelViewTransform;


// Create the initial representation with the aspects that don't change.
var representation = new Path( new Shape(), { lineWidth: PARTICLE_EDGE_STROKE, stroke: Color.BLACK } );
thisNode.addChild( representation );
Expand Down
2 changes: 0 additions & 2 deletions js/neuron/view/TextureInterleavedShaderWebGlLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,6 @@ define( function( require ) {
}

instance.data.drawable.render( this.shaderProgram, this.uniformViewMatrix );


}
}

Expand Down

0 comments on commit 246f055

Please sign in to comment.