From 3aae643e140044e440673772d90ebaf0be18ec1f Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sun, 18 Nov 2018 19:31:53 +0000 Subject: [PATCH] Reveal widget with lazily loaded state tiddlers Fixes #3476 --- core/modules/widgets/reveal.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/modules/widgets/reveal.js b/core/modules/widgets/reveal.js index 05931a5f3..49ded5ddd 100755 --- a/core/modules/widgets/reveal.js +++ b/core/modules/widgets/reveal.js @@ -122,6 +122,9 @@ RevealWidget.prototype.readState = function() { (this.stateIndex ? this.wiki.extractTiddlerDataItem(this.stateTitle,this.stateIndex) : this.wiki.getTiddlerText(this.stateTitle))) || this["default"] || this.getVariable("currentTiddler") : (this.stateTiddlerTitle ? this.wiki.getTextReference(this.state,this["default"],this.getVariable("currentTiddler")) : this["default"]); + if(state === null) { + state = this["default"]; + } switch(this.type) { case "popup": this.readPopupState(state);