Clear bindings array in keybinding.off

(closes #3111)
This commit is contained in:
Bryan Housel
2016-05-15 23:32:06 -04:00
parent 4c88196c93
commit 2e90553288
+1
View File
@@ -44,6 +44,7 @@ d3.keybinding = function(namespace) {
}
keybinding.off = function(selection) {
bindings = [];
selection = selection || d3.select(document);
selection.on('keydown.capture' + namespace, null);
selection.on('keydown.bubble' + namespace, null);