Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

selection.node #29

Closed
mbostock opened this issue Nov 8, 2010 · 1 comment
Closed

selection.node #29

mbostock opened this issue Nov 8, 2010 · 1 comment

Comments

@mbostock
Copy link
Member

mbostock commented Nov 8, 2010

In a similar vein to selection.attr("foo"), we should have a selection.node() method which returns the first node. This is identical to selection[0][0] but works as expected when some of the nodes are null, and makes the code more readable.

@mbostock
Copy link
Member Author

mbostock commented Dec 9, 2010

Implemented.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant