Fixes ESLint errors (#9668)

* fix: apply automatic eslint fixes

* lint: allow hashbang comment for tiddlywiki.js

* lint: first back of manual lint fixes for unused vars

* lint: added more fixes for unused vars

* lint: missed files

* lint: updated eslint config with selected rules from #9669
This commit is contained in:
Saq Imtiaz
2026-02-20 08:38:42 +00:00
committed by GitHub
parent 08f2b8bdf4
commit 785086e0a5
270 changed files with 3827 additions and 3970 deletions
+6 -6
View File
@@ -90,27 +90,27 @@ RangeWidget.prototype.getActionVariables = function(options) {
// Trigger actions. Use variables = {key:value, key:value ...}
// the "value" is needed.
return $tw.utils.extend({"actionValue": this.inputDomNode.value, "actionValueHasChanged": hasChanged}, options);
}
};
// actionsStart
RangeWidget.prototype.handleMouseDownEvent = function(event) {
this.handleEvent(event);
// Trigger actions
if(this.actionsMouseDown) {
var variables = this.getActionVariables() // TODO this line will go into the function call below.
var variables = this.getActionVariables(); // TODO this line will go into the function call below.
this.invokeActionString(this.actionsMouseDown,this,event,variables);
}
}
};
// actionsStop
RangeWidget.prototype.handleMouseUpEvent = function(event) {
this.handleEvent(event);
// Trigger actions
if(this.actionsMouseUp) {
var variables = this.getActionVariables()
var variables = this.getActionVariables();
this.invokeActionString(this.actionsMouseUp,this,event,variables);
}
}
};
RangeWidget.prototype.handleChangeEvent = function(event) {
this.handleInputEvent(event);
@@ -121,7 +121,7 @@ RangeWidget.prototype.handleInputEvent = function(event) {
// Trigger actions
if(this.actionsInput) {
// "tiddler" parameter may be missing. See .execute() below
var variables = this.getActionVariables({"actionValueHasChanged": "yes"}) // TODO this line will go into the function call below.
var variables = this.getActionVariables({"actionValueHasChanged": "yes"}); // TODO this line will go into the function call below.
this.invokeActionString(this.actionsInput,this,event,variables);
}
};