Skip to content

Commit

Permalink
change let -> const if not reassigned, phetsims/tasks#973
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Dec 12, 2018
1 parent fa0b2cf commit 864abb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/energy-skate-park/common/view/MeasuringTapePanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ define( require => {
fill: EnergySkateParkColorScheme.panelFill
}, options );

let measuringTapeIcon = MeasuringTapeNode.createIcon();
const measuringTapeIcon = MeasuringTapeNode.createIcon();

// set scale of measuring tape icon, but don't pas to createIcon because it makes the icon generated with
// Node.toImage look too aliased, see https://github.com/phetsims/energy-skate-park/issues/27
Expand Down
4 changes: 2 additions & 2 deletions js/energy-skate-park/measure/view/SkaterPathSensorNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ define( require => {
this.probeNode.addInputListener( new DragListener( {
transform: modelViewTransform,
drag: ( event, listener ) => {
let pMouse = this.globalToParentPoint( event.pointer.point );
let modelMouse = modelViewTransform.viewToModelPosition( pMouse );
const pMouse = this.globalToParentPoint( event.pointer.point );
const modelMouse = modelViewTransform.viewToModelPosition( pMouse );
sensorPositionProperty.set( modelMouse );
}
} ) );
Expand Down

0 comments on commit 864abb8

Please sign in to comment.