mbostock/d3 — Issue #471: selection.exit().transition().remove().each("end",...) issue
Author: dperetti
Created: 2012-01-26 03:17:49+00:00
State: open

It seems to me that, since [this change](https://github.com/mbostock/d3/commit/392ded0820247224b549cad66053a604d5b02eb3), the selection is not removed if you use a mere "end" event.

This is because the callback provided in the each("end", callback()) call replaces the default "end" event that remove() sets up.

The workaround is to use some "end.blah" event. Is this the expected behavior ?

It just took me 4 hours to find out, as I was upgrading from version 2.3.2 and my transitions were broken :-)

NB: the [documentation](https://github.com/mbostock/d3/wiki/Transitions#wiki-each) should be updated, by the way.

Cheers.