-
Notifications
You must be signed in to change notification settings - Fork 22.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for null node in selection.data.
If a selection is missing elements, then selection.data would still attempt to evaluate the optional key function for the missing elements, resulting in an uncaught TypeError. For example: d3.selectAll("p") .select(function(d, i) { return i & 1 ? this : null; }) .data([1, 2, 3], Number); Now, any missing elements are automatically assigned to the exit selection.
- Loading branch information
Showing
2 changed files
with
42 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters