diff --git a/js/energy-skate-park/common/view/MeasuringTapePanel.js b/js/energy-skate-park/common/view/MeasuringTapePanel.js index e39e7cc0..24411120 100644 --- a/js/energy-skate-park/common/view/MeasuringTapePanel.js +++ b/js/energy-skate-park/common/view/MeasuringTapePanel.js @@ -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 diff --git a/js/energy-skate-park/measure/view/SkaterPathSensorNode.js b/js/energy-skate-park/measure/view/SkaterPathSensorNode.js index 99e4d843..fad4813a 100644 --- a/js/energy-skate-park/measure/view/SkaterPathSensorNode.js +++ b/js/energy-skate-park/measure/view/SkaterPathSensorNode.js @@ -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 ); } } ) );