Skip to content

Commit

Permalink
Merge pull request #4766 from camptocamp/d3_hover
Browse files Browse the repository at this point in the history
Don't create local variable for 'svg'
  • Loading branch information
fredj committed Mar 21, 2019
2 parents e8e43a4 + 76be7dd commit 8cb0b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/profile/d3Elevation.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ function d3Elevation(options) {
}

// Select the svg element, if it exists.
let svg = d3select(this).selectAll('svg').data([data]);
svg = d3select(this).selectAll('svg').data([data]);
// Otherwise, create the skeletal chart.
const svgEnter = svg.enter().append('svg');
// Then select it again to get the complete object.
Expand Down

0 comments on commit 8cb0b00

Please sign in to comment.