Skip to content

Commit

Permalink
revert change to this.stroke, #16
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Dec 11, 2020
1 parent 4c8e88a commit db47485
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/CanvasLinePlot.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* @author Sam Reid (PhET Interactive Simulations)
*/

import Property from '../../axon/js/Property.js';
import merge from '../../phet-core/js/merge.js';
import bamboo from './bamboo.js';
import CanvasPainter from './CanvasPainter.js';
Expand Down Expand Up @@ -55,7 +54,7 @@ class CanvasLinePlot extends CanvasPainter {
*/
paintCanvas( context ) {
context.beginPath();
context.strokeStyle = ( this.stroke instanceof Property ) ? this.stroke.value : this.stroke;
context.strokeStyle = this.stroke;
context.lineWidth = this.lineWidth;

for ( let i = 0; i < this.dataSet.length; i++ ) {
Expand Down

0 comments on commit db47485

Please sign in to comment.