diff --git a/core/modules/widgets/reveal.js b/core/modules/widgets/reveal.js index 66a87f1af..2afa1d9ee 100755 --- a/core/modules/widgets/reveal.js +++ b/core/modules/widgets/reveal.js @@ -106,20 +106,18 @@ Read the state tiddler */ RevealWidget.prototype.readState = function() { // Read the information from the state tiddler - if(this.stateTitle) { - var state = this.wiki.getTextReference(this.stateTitle,this["default"],this.getVariable("currentTiddler")); - switch(this.type) { - case "popup": - this.readPopupState(state); - break; - case "match": - this.readMatchState(state); - break; - case "nomatch": - this.readMatchState(state); - this.isOpen = !this.isOpen; - break; - } + var state = this.stateTitle ? this.wiki.getTextReference(this.stateTitle,this["default"],this.getVariable("currentTiddler")) : this["default"]; + switch(this.type) { + case "popup": + this.readPopupState(state); + break; + case "match": + this.readMatchState(state); + break; + case "nomatch": + this.readMatchState(state); + this.isOpen = !this.isOpen; + break; } };