Commit 9c3f7ecb authored by Mike Bostock's avatar Mike Bostock
Browse files


parent 088156ee
......@@ -738,9 +738,7 @@ Thus, the entering *c*, *d* and *e* are inserted before *f*, since *f* is the fo
There is now only one class of selection. 3.x implemented enter selections using a special class to change the behavior of *enter*.append and *enter*.select; a consequence of this decision was that enter selections in 3.x lacked certain methods (*e.g.*, [#2043]( In 4.0, enter selections are normal selections; they have the same methods and the same behavior; [enter nodes]( now implement [*node*.appendChild](, [*node*.insertBefore](, [*node*.querySelector](, and [*node*.querySelectorAll](
* change how *selection*.data handles duplicate keys
other changes
The *selection*.data behavior has been changed slightly with respect to duplicate keys. In 3.x, if multiple data had the same key, the duplicate data would be ignored and not included in either enter, update or exit; in 4.0 the duplicate data is always put in the enter selection. In both 3.x and 4.0, if multiple elements have the same key, the duplicate elements are put in the exit selection. Thus, 4.0’s behavior is now symmetric for enter and exit.
* *selection*.call no longer sets `this` context
* new *selection*.raise, *selection*.lower
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment