mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 11:58:03 -05:00
Small typo fix in 18.6 'bad'-example.
Function call 'class()' to 'classed()'.
This commit is contained in:
@@ -1710,7 +1710,7 @@ Other Style Guides
|
||||
.updateCount();
|
||||
|
||||
// bad
|
||||
const leds = stage.selectAll('.led').data(data).enter().append('svg:svg').class('led', true)
|
||||
const 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);
|
||||
|
||||
Reference in New Issue
Block a user