Skip to content

Commit

Permalink
N°1420 - Autocomplete fix keyboard behavior (compatibility fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
eespie committed Dec 19, 2018
1 parent 75fbb83 commit a2ddb30
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions js/jquery.autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a2ddb30

Please sign in to comment.