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

Fix d3.selectAll(HTMLCollection) #2376

Closed
wants to merge 1 commit into from
Closed

Conversation

natevw
Copy link
Contributor

@natevw natevw commented Mar 31, 2015

Using a selection created via e.g. var sel = d3.selectAll(someElement.children) used to work, but in 9c3df31#diff-d93c7c1ccac09d19287c11d2d115758aL61 a critical conversion to d3_array was factored out of that path. This resulted in such selections exploding when certain array-dependent methods were used, such as sel.sort().

Simple fix, plus now a test for this code path. (The existing test had only been exercising sel.selectAll but not d3.selectAll!)

…7c1ccac09d19287c11d2d115758aL61 - doing a d3.selectAll on an HTMLCollection resulted in broken calls to e.g. `.sort()` due to dropped conversion to a proper array
@mbostock mbostock added the bug Something isn’t working label Mar 31, 2015
@mbostock mbostock added this to the 3.5.x milestone Mar 31, 2015
@mbostock mbostock modified the milestones: 3.5.7, 3.5.x Oct 22, 2015
@mbostock
Copy link
Member

Merged into #2591.

@mbostock mbostock closed this Oct 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn’t working
Development

Successfully merging this pull request may close these issues.

None yet

2 participants