1. 08 Dec, 2011 5 commits
  2. 06 Dec, 2011 1 commit
  3. 30 Nov, 2011 5 commits
  4. 23 Nov, 2011 12 commits
  5. 22 Nov, 2011 3 commits
    • Mike Bostock's avatar
      Merge branch 'fix-dispatch' · 2df8c62c
      Mike Bostock authored
    • Mike Bostock's avatar
      dispatch.on(name) returns the current listener. · 1b3a3b3c
      Mike Bostock authored
      Fixes #383. This includes a non-backwards-compatible change to d3.rebind, so as
      to make it easier to rebind multiple methods on subclasses.
    • Mike Bostock's avatar
      Fix a bug when removing a shared listener. · 75ddc283
      Mike Bostock authored
      Previously, each listener function had a private _on property which recorded
      whether the listener was enabled; this was set to false when the listener was
      removed. (This is necessary because of the copy-on-write semantics when the
      array of listeners is modified while events are being dispatched.) If the
      listener was registered for multiple event types ("foo" and "bar") then removing
      the listener for any type would disable it for all types.
      The fix is to wrap the listener in an object. This also has better encapsulation
      since the state is kept private.
  6. 18 Nov, 2011 1 commit
  7. 16 Nov, 2011 6 commits
  8. 15 Nov, 2011 2 commits
  9. 14 Nov, 2011 2 commits
  10. 13 Nov, 2011 1 commit
  11. 10 Nov, 2011 2 commits
    • Mike Bostock's avatar
      Restore conservative click canceling. · 2f16227e
      Mike Bostock authored
      See #312. The also fixes the zoom behavior so that it cleans up temporary state
      when the zoom gesture is done. And, it fixes both behaviors such that the
      mouseup event is always stopped from propagation if a gesture occurs (even if a
      subsequent click is not prevented).
    • Mike Bostock's avatar
      Add drag.origin accessor. · 18dcad74
      Mike Bostock authored
      This allows you to specify how the drag behavior should infer the current
      position of the targetted element, such that a fixed offset can be maintained
      between the mouse position and the element position for the duration of the drag
      gesture. For example, if your data is an {x, y} object, use origin(Object).