From ff55ce6425120422dd0ec0446f2c6d5bc6663fd5 Mon Sep 17 00:00:00 2001 From: mattpass Date: Thu, 25 Jun 2020 17:04:47 +0100 Subject: [PATCH] Rename to doFindTimeout and remove 2 x flags on scroll --- assets/js/icecoder.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/assets/js/icecoder.js b/assets/js/icecoder.js index b5dd7af..4a08aea 100644 --- a/assets/js/icecoder.js +++ b/assets/js/icecoder.js @@ -416,12 +416,12 @@ var ICEcoder = { // On key up cMonKeyUp: function(thisCM, cMinstance) { - if (undefined !== typeof this.doFindInt) { - clearInterval(this.doFindInt); + if (undefined !== typeof this.doFindTimeout) { + clearInterval(this.doFindTimeout); } // If we have something to find in this document, find in 50 ms (unless cancelled by another keypress) if ("" !== get('find').value && t['this document'] === document.findAndReplace.target.value) { - this.doFindInt = setTimeout(function (ic) { + this.doFindTimeout = setTimeout(function (ic) { ic.findReplace(get('find').value, false, false, false); }, 50, this); } @@ -613,9 +613,6 @@ var ICEcoder = { cMonScroll: function(thisCM, cMinstance) { let cM, cMdiff, otherCM; - // this.mouseDown = false; - // this.mouseDownInCM = false; - if (true === this.splitPane) { // Get both main & diff instance and work out the instance we're not scrolling cM = this.getcMInstance();