mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-01 00:36:41 +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:
@@ -94,7 +94,7 @@ TranscludeWidget.prototype.execute = function() {
|
||||
this.setVariable("transclusion",recursionMarker);
|
||||
// Parse
|
||||
var text = this.wiki.getTiddlerText(this.transcludeTitle);
|
||||
if (!!this.section||!!this.slice) {
|
||||
if(!!this.section||!!this.slice) {
|
||||
text =this.refineTiddlerText(text, this.section, this.slice);
|
||||
}
|
||||
|
||||
@@ -151,8 +151,7 @@ TranscludeWidget.prototype.getTextSlice = function(text,sliceName)
|
||||
|
||||
TranscludeWidget.prototype.refineTiddlerText = function(text,section,slice)
|
||||
{
|
||||
var textsection = null;
|
||||
if (slice) {
|
||||
if(slice) {
|
||||
var textslice = this.getTextSlice(text,slice);
|
||||
if(textslice)
|
||||
return textslice;
|
||||
@@ -172,7 +171,7 @@ TranscludeWidget.prototype.refineTiddlerText = function(text,section,slice)
|
||||
return t;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
|
||||
|
||||
Reference in New Issue
Block a user