mbostock/d3 — Issue #460: Force layout should set d3.event, rather than passing it to listeners.
Author: mbostock
Created: 2012-01-24 01:22:33+00:00
State: open
Labels: bug

Currently, the force layout passes an event to listeners with a type and alpha property. For consistency with the other components, I think it'd make more sense if it set the global d3.event for the duration of the layout. Also, the force layout should set the `this` context of the callback to be the force layout, so that you can listen to multiple force layouts simultaneously, if desired.