From 72a56bd6927373c77727e6daba19b247168e7dac Mon Sep 17 00:00:00 2001 From: Michael Sloan Date: Sat, 28 Apr 2018 21:48:20 -0700 Subject: [PATCH] Remove reset timer --- mousetrap.js | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/mousetrap.js b/mousetrap.js index 535e77c7..8fa9e1ae 100644 --- a/mousetrap.js +++ b/mousetrap.js @@ -477,13 +477,6 @@ */ var _sequenceLevels = {}; - /** - * variable to store the setTimeout call - * - * @type {null|number} - */ - var _resetTimer; - /** * temporary state where we will ignore the next keyup * @@ -751,19 +744,6 @@ self.handleKey(character, _eventModifiers(e), e); } - /** - * called to set a 1 second timeout on the specified sequence - * - * this is so after each key press in the sequence you have 1 second - * to press the next key before you have to start over - * - * @returns void - */ - function _resetSequenceTimer() { - clearTimeout(_resetTimer); - _resetTimer = setTimeout(_resetSequences, 1000); - } - /** * binds a key sequence to an event * @@ -791,7 +771,6 @@ return function() { _nextExpectedAction = nextAction; ++_sequenceLevels[combo]; - _resetSequenceTimer(); }; }