Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Nov 5, 2018
2 parents ae7c496 + 496db6d commit b60c57c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions js/common/view/GQEquationFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ define( require => {
const b = Util.toFixedNumber( quadratic.b, options.bDecimals );
const c = Util.toFixedNumber( quadratic.c, options.cDecimals );

//REVIEW: Looks like this same string is built on line 142, should it be a constant for this file?
// y =
let equationString = GQSymbols.y + ' ' + MathSymbols.EQUAL_TO + ' ';

Expand Down Expand Up @@ -211,8 +212,7 @@ define( require => {
} );

return withBackground( equationNode );
}
,
},

/**
* Creates the axis of symmetry equation.
Expand Down
1 change: 1 addition & 0 deletions js/common/view/GQViewProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ define( require => {
const graphingQuadratics = require( 'GRAPHING_QUADRATICS/graphingQuadratics' );
const Tandem = require( 'TANDEM/Tandem' );

//Review: I believe this JSDoc should go above the constructor
/**
* @param {Object} [options]
*/
Expand Down
3 changes: 2 additions & 1 deletion js/common/view/PointToolNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ define( require => {
// background behind the coordinates, sized to the body so that it shows through the window
const backgroundNode = new Rectangle( 0, 0, bodyNode.width - 10, bodyNode.height - 10 );

// Put probe on correct side of body. Move the body, since the probe estabishes the origin.
// Put probe on correct side of body. Move the body, since the probe establishes the origin.
if ( pointTool.probeSide === 'left' ) {
bodyNode.left = probeNode.right - 1; // -1 for overlap, so you don't see a gap
}
Expand Down Expand Up @@ -212,6 +212,7 @@ define( require => {

allowTouchSnag: true,

//REVIEW: Blank lines should be added before the two comments in start() unless there is a reason not to.
// note where the drag started
start: ( event, listener ) => {
// Note the mouse-click offset when dragging starts.
Expand Down
4 changes: 2 additions & 2 deletions js/common/view/VertexCheckbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ define( require => {
// phetioDocumentation that is appropriate for icon type
if ( options.phetioDocumentation === undefined ) {
if ( options.manipulatorIcon ) {
options.phetioDocumentation ='checkbox that shows the vertex manipulator on the graph';
options.phetioDocumentation = 'checkbox that shows the vertex manipulator on the graph';
}
else {
options.phetioDocumentation ='checkbox that shows the vertex on the graph';
options.phetioDocumentation = 'checkbox that shows the vertex on the graph';
}
}

Expand Down

0 comments on commit b60c57c

Please sign in to comment.