Skip to content

Commit

Permalink
Update README.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed May 27, 2016
1 parent 093b8f9 commit 1c0b6a5
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 @@ -661,13 +661,13 @@ Like `var`, each local is a distinct symbolic reference; unlike `var`, the value

<a name="local_set" href="#local_set">#</a> <i>local</i>.<b>set</b>(<i>node</i>, <i>value</i>)

Sets the value of this local on the specified *node* to the *value*, and returns the specified *value*. This is often performed within a [*selection*.each](#selection_each):
Sets the value of this local on the specified *node* to the *value*, and returns the specified *value*. This is often performed using [*selection*.each](#selection_each):

```js
selection.each(function(d) { foo.set(this, d.value); });
```

If you are just setting a single variable, this is equivalent to using [*selection*.property](#selection_property):
If you are just setting a single variable, consider using [*selection*.property](#selection_property):

```js
selection.property(foo, function(d) { return d.value; });
Expand Down

0 comments on commit 1c0b6a5

Please sign in to comment.