mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-08 06:43:49 +00:00
Reveal widget: faulty logic for default handling
@BurningTreeC I think this might have been a typo in your recent refactorings; if you look back at an old version such as c0c1b557eb/core/modules/widgets/reveal.js
then there is no sign of this fallback.
Fixes #3874
This commit is contained in:
parent
a01dc6cb3d
commit
02ae8969b2
@ -119,7 +119,7 @@ Read the state tiddler
|
|||||||
RevealWidget.prototype.readState = function() {
|
RevealWidget.prototype.readState = function() {
|
||||||
// Read the information from the state tiddler
|
// Read the information from the state tiddler
|
||||||
var state,
|
var state,
|
||||||
defaultState = this["default"] || this.getVariable("currentTiddler");
|
defaultState = this["default"];
|
||||||
if(this.stateTitle) {
|
if(this.stateTitle) {
|
||||||
var stateTitleTiddler = this.wiki.getTiddler(this.stateTitle);
|
var stateTitleTiddler = this.wiki.getTiddler(this.stateTitle);
|
||||||
if(this.stateField) {
|
if(this.stateField) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user