Permalink
Browse files

Merge branch 'master' of github.com:mbostock/d3

  • Loading branch information...
2 parents fbcb028 + be63aaf commit ad76418aee189ef1fd60fb8b88b19a0310c442ea @mbostock mbostock committed Jan 17, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 examples/spline/spline.js
@@ -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;
@@ -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]; });

0 comments on commit ad76418

Please sign in to comment.