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

Nested transitions compete for ownership. #37

Closed
mbostock opened this issue Jan 11, 2011 · 3 comments
Closed

Nested transitions compete for ownership. #37

mbostock opened this issue Jan 11, 2011 · 3 comments
Labels
bug Something isn’t working
Milestone

Comments

@mbostock
Copy link
Member

Consider the following:

var foo = d3.transition("foo");
foo.selectAll("bar").attr("attr1", "value1");
foo.select("bar.baz").attr("attr2", "value2");

The second select creates a new transition which clobbers the previous selectAll's transition.

@mbostock
Copy link
Member Author

A really easy way to fix this is to use the existing d3_transitionInheritId mechanism.

@mbostock
Copy link
Member Author

mbostock commented Apr 9, 2011

Another idea is to set a transition ID per event lifecycle. That could potentially lead to conflicts, though.

@mbostock
Copy link
Member Author

Fixed in 2.0.0.

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

No branches or pull requests

1 participant