Skip to content
This repository has been archived by the owner on Nov 7, 2018. It is now read-only.

Double callback execution bugfix #162

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Double callback execution bugfix #162

wants to merge 1 commit into from

Conversation

heyitaki
Copy link

I realize this is a deprecated repo, but the src code for d3.keybinding is hosted here, instead of as a separate repo anywhere else.

In d3.keybinding, the callback for each listener is called twice. This is happening because capture is being called twice (once from dispatch.on, and one once from bubble, which also is triggered by dispatch.on). Simply removing the capture listeners allows the code to work as expected.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant