cleaned up after lint and tests

This commit is contained in:
Eric Husa 2019-11-24 04:48:05 -06:00
parent 547f1fc426
commit 6e821fe166
3 changed files with 8 additions and 9 deletions

View file

@ -306,7 +306,7 @@ class HighlighterWaiter {
* Resets mouse variable to up position. * Resets mouse variable to up position.
* Used on tab change. * Used on tab change.
*/ */
mouseUp(){ mouseUp() {
this.mouseButtonDown = false; this.mouseButtonDown = false;
} }
@ -396,11 +396,10 @@ class HighlighterWaiter {
document.getElementById(io + "-highlighter"), document.getElementById(io + "-highlighter"),
pos); pos);
if (direction === "forward"){ if (direction === "forward") {
this.highlightInput(pos); this.highlightInput(pos);
} } else {
else{ this.manager.input.updateInputHighlight(inputNum, pos);
this.manager.input.updateInputHighlight(inputNum, pos)
} }
} }

View file

@ -373,7 +373,7 @@ class InputWaiter {
}); });
} }
//Restore highlighting // Restore highlighting
this.updateInputHighlight(inputData.inputNum, inputData.pos); this.updateInputHighlight(inputData.inputNum, inputData.pos);
this.restoreHighlighting(); this.restoreHighlighting();

View file

@ -454,7 +454,7 @@ self.setInput = function(inputData) {
if (input === undefined || input === null) return; if (input === undefined || input === null) return;
let inputVal = input.data; let inputVal = input.data;
let highlight = input.highlight; const highlight = input.highlight;
const inputObj = { const inputObj = {
inputNum: inputNum, inputNum: inputNum,
input: inputVal, input: inputVal,
@ -597,7 +597,7 @@ self.updateInputHighlight = function(inputData) {
if (inputNum < 1) return; if (inputNum < 1) return;
self.inputs[inputNum].highlight = pos; self.inputs[inputNum].highlight = pos;
} };
/** /**
* Update the stored data object for an input. * Update the stored data object for an input.
@ -845,7 +845,7 @@ self.addInput = function(
newInputObj.data = ""; newInputObj.data = "";
newInputObj.status = "loaded"; newInputObj.status = "loaded";
newInputObj.progress = 100; newInputObj.progress = 100;
newInputObj.highlight = [{"start":0,"end":0}]; newInputObj.highlight = [{"start": 0, "end": 0}];
break; break;
case "file": case "file":
newInputObj.data = { newInputObj.data = {