From a2ddb30f7801bdb779947de35f7fe17f00d79e95 Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 19 Dec 2018 17:39:35 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B01420=20-=20Autocomplete=20fix=20keyboard?= =?UTF-8?q?=20behavior=20(compatibility=20fix)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/jquery.autocomplete.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/js/jquery.autocomplete.js b/js/jquery.autocomplete.js index 7edaa6ac0e..3c5e3efe36 100644 --- a/js/jquery.autocomplete.js +++ b/js/jquery.autocomplete.js @@ -446,25 +446,25 @@ }; function Timer(callback, delay) { - let id, running; + var iId, bRunning; this.start = function() { - running = true; - id = setTimeout(this.doCallback, delay); + bRunning = true; + iId = setTimeout(this.doCallback, delay); }; this.doCallback = function () { - running = false; + bRunning = false; callback(); }; this.stop = function() { - running = false; - clearTimeout(id); + bRunning = false; + clearTimeout(iId); }; this.isRunning = function() { - return running; + return bRunning; }; this.start();