Delete old timeout.

This commit is contained in:
Brian E. Granger 2014-02-05 23:05:40 -08:00
parent 62d118afc7
commit 2d1f3c86d1

View File

@ -639,7 +639,7 @@ var IPython = (function (IPython) {
if (c[shortcut] === data.count-1) {
c[shortcut] = 0;
var timer = t[shortcut];
if (timer) {clearTimeout(timer);}
if (timer) {clearTimeout(timer); delete t[shortcut];}
return data.handler(event);
} else {
c[shortcut] = c[shortcut] + 1;