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 09:38:42 +01:00
committed by GitHub
parent 08f2b8bdf4
commit 785086e0a5
270 changed files with 3827 additions and 3970 deletions

View File

@@ -27,7 +27,6 @@ EditBinaryWidget.prototype = new Widget();
Render this widget into the DOM
*/
EditBinaryWidget.prototype.render = function(parent,nextSibling) {
var self = this;
// Save the parent dom node
this.parentDomNode = parent;
// Compute our attributes
@@ -66,7 +65,7 @@ EditBinaryWidget.prototype.execute = function() {
download: {type: "indirect", textReference: "!!draft.title"}
},
children: [{
type: "transclude",
type: "transclude",
attributes: {
tiddler: {type: "string", value: EXPORT_BUTTON_IMAGE}
}
@@ -87,7 +86,7 @@ EditBinaryWidget.prototype.execute = function() {
class: {type: "string", value: "tc-binary-warning"}
},
children: [warn, link]
}
};
// Construct the child widgets
this.makeChildWidgets([element]);
};