mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
Delete old timeout.
This commit is contained in:
parent
62d118afc7
commit
2d1f3c86d1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user