Skip to content

Namespaced event listeners. #1

Closed

Description

@mbostock

The on method should allow a namespace, similar to jQuery's bind feature. This allows multiple event listeners to be registered for the same event type under different namespaces, such as "click.foo" and "click.bar".

A new off action should similarly allow de-registration of event listeners.

Activity

  1. mbostock commented on Feb 16, 2011

    @mbostock
    MemberAuthor

    We don't need off, actually, since you can say on("click.foo", null).

  2. mbostock commented on Feb 16, 2011

    @mbostock
    MemberAuthor

    Done in 0.30.8.

  3. added a commit that references this issue on Jan 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions