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

Arguments and return value for apply. #7

Closed
mbostock opened this issue Sep 30, 2010 · 0 comments
Closed

Arguments and return value for apply. #7

mbostock opened this issue Sep 30, 2010 · 0 comments

Comments

@mbostock
Copy link
Member

The apply method should probably take as an optional argument an array of nodes as the initial selection, defaulting to [document].

The apply method should similarly return the array of matched nodes. For example,

d3.select("#chart").apply()[0]

should be the same as:

document.getElementById("chart")
equintanilla pushed a commit to equintanilla/d3 that referenced this issue Sep 3, 2014
This is required to ensure IE9 runs in "standards mode".

Fixes d3#7.
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