Skip to content

Commit

Permalink
Merge pull request d3#441 from jasondavies/spline
Browse files Browse the repository at this point in the history
Simplification to spline example.
  • Loading branch information
mbostock committed Jan 13, 2012
2 parents a92f8b3 + 1becccb commit be63aaf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions examples/spline/spline.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ function update() {
.data(points, function(d) { return d; });

circle.enter().append("circle")
.attr("class", function(d) { return d === selected ? "selected" : null; })
.attr("cx", function(d) { return d[0]; })
.attr("cy", function(d) { return d[1]; })
.attr("r", 1e-6)
.on("mousedown", function(d) {
selected = dragged = d;
Expand All @@ -71,7 +68,7 @@ function update() {
.attr("r", 6.5);

circle
.attr("class", function(d) { return d === selected ? "selected" : null; })
.classed("selected", function(d) { return d === selected; })
.attr("cx", function(d) { return d[0]; })
.attr("cy", function(d) { return d[1]; });

Expand Down

0 comments on commit be63aaf

Please sign in to comment.