From 5275a52740a46faae5da3f398034233bc65404bf Mon Sep 17 00:00:00 2001 From: Kostas Minaidis Date: Thu, 28 Sep 2017 01:25:50 +0300 Subject: [PATCH 1/2] Adding missing var on variable declaration. Might be needed also on minified version. --- auto.micro.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto.micro.js b/auto.micro.js index 6874543..4159300 100644 --- a/auto.micro.js +++ b/auto.micro.js @@ -101,7 +101,7 @@ AutoSuggestControl.prototype.init = function () { //save a reference to this object var oThis = this; //assign the onkeyup event handler - lastDate = new Date(); + var lastDate = new Date(); oThis.textbox.onkeyup = function (oEvent) { //check for the proper location of the event object From 1c682e9c1ad361df580ee06d09f2e5f11adee8f2 Mon Sep 17 00:00:00 2001 From: Kostas Minaidis Date: Thu, 28 Sep 2017 01:28:45 +0300 Subject: [PATCH 2/2] Adding missing var keyword on variable Declaration Might need an update on the minified version. --- auto.micro.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto.micro.js b/auto.micro.js index 4159300..6180085 100644 --- a/auto.micro.js +++ b/auto.micro.js @@ -108,7 +108,7 @@ AutoSuggestControl.prototype.init = function () { if (!oEvent) { oEvent = window.event; } - newDate = new Date(); + var newDate = new Date(); if (newDate.getTime() > lastDate.getTime() + 200) { oThis.handleKeyUp(oEvent); lastDate = newDate;