From 7b912125970850d9dcbe0075c9208cb64424ce1a Mon Sep 17 00:00:00 2001 From: Akshath Sivaprasad Date: Wed, 11 Jul 2018 01:14:12 -0700 Subject: [PATCH] Double callback execution bugfix --- keybinding/keybinding.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/keybinding/keybinding.js b/keybinding/keybinding.js index e16ade7..7886b0e 100644 --- a/keybinding/keybinding.js +++ b/keybinding/keybinding.js @@ -38,14 +38,12 @@ d3.keybinding = function(namespace) { function keybinding(selection) { selection = selection || d3.select(document); - selection.on('keydown.capture' + namespace, capture, true); selection.on('keydown.bubble' + namespace, bubble, false); return keybinding; } keybinding.off = function(selection) { selection = selection || d3.select(document); - selection.on('keydown.capture' + namespace, null); selection.on('keydown.bubble' + namespace, null); return keybinding; };