mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-03 07:13:59 +01:00
Rename to doFindTimeout and remove 2 x flags on scroll
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user