Skip to content

Commit 55f8a96

Browse files
author
Jan Willem Tulp
committed
added i argument to the API summary description
1 parent 94ea734 commit 55f8a96

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ In summary, the API looks like this:
125125

126126
```js
127127
var myComponent = d3.component("div", "some-class")
128-
.create((selection, d) => { ... }) // Invoked for entering component instances.
129-
.render((selection, d) => { ... }) // Invoked for entering AND updating component instances.
130-
.destroy((selection, d) => { ... }); // Invoked for exiting instances, may return a transition.
128+
.create((selection, d, i) => { ... }) // Invoked for entering component instances.
129+
.render((selection, d, i) => { ... }) // Invoked for entering AND updating component instances.
130+
.destroy((selection, d, i) => { ... }); // Invoked for exiting instances, may return a transition.
131131

132132
// To invoke the component,
133133
d3.select("body") // create a selection with a single element,

0 commit comments

Comments
 (0)