mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-10-04 23:21:42 +00:00
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:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user