Skip to content

Commit

Permalink
Merge pull request airbnb#295 from airbnb/fix-whitespace-ex
Browse files Browse the repository at this point in the history
[whitespace] class => classed. fixes airbnb#294
  • Loading branch information
hshoff committed Apr 7, 2015
2 parents 0501155 + 540365c commit ddbc7aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@
.updateCount();

// bad
var leds = stage.selectAll('.led').data(data).enter().append('svg:svg').class('led', true)
var leds = stage.selectAll('.led').data(data).enter().append('svg:svg').classed('led', true)
.attr('width', (radius + margin) * 2).append('svg:g')
.attr('transform', 'translate(' + (radius + margin) + ',' + (radius + margin) + ')')
.call(tron.led);
Expand All @@ -894,7 +894,7 @@
var leds = stage.selectAll('.led')
.data(data)
.enter().append('svg:svg')
.class('led', true)
.classed('led', true)
.attr('width', (radius + margin) * 2)
.append('svg:g')
.attr('transform', 'translate(' + (radius + margin) + ',' + (radius + margin) + ')')
Expand Down

0 comments on commit ddbc7aa

Please sign in to comment.