Skip to content

Commit

Permalink
RatioNode doc cleanup, #83
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Jun 15, 2019
1 parent fd24ffb commit 4913f16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/common/view/RatioNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,16 +256,16 @@ define( function( require ) {
* Called when the solution's pH changes.
* @param {number} numberOfH3OMolecules
* @param {number} numberOfOHMolecules
* @private
* @public
*/
drawMolecules: function( numberOfH3OMolecules, numberOfOHMolecules ) {
if ( numberOfH3OMolecules !== this.numberOfH3OMolecules || numberOfOHMolecules !== this.numberOfOHMolecules ) {

/*
* paintCanvas may be called when other things in beakerBounds change,
* and we don't want the molecule positions to change when the pH remains constant.
* So generate and store molecule coordinates here, reusing the array.
* See #25.
* So generate and store molecule coordinates here, reusing the arrays.
* See https://github.com/phetsims/ph-scale/issues/25
*/
var i;
for ( i = 0; i < numberOfH3OMolecules; i++ ) {
Expand Down

0 comments on commit 4913f16

Please sign in to comment.