mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-18 15:54:50 +00:00
Merge pull request #1131 from Skeeve/patch-7
allow empty state tiddlers and missing state attributes act as missing s...
This commit is contained in:
commit
6f0736e82a
@ -106,8 +106,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
|
||||||
if(this.stateTitle) {
|
var state = this.stateTitle ? this.wiki.getTextReference(this.stateTitle,this["default"],this.getVariable("currentTiddler")) : this["default"];
|
||||||
var state = this.wiki.getTextReference(this.stateTitle,this["default"],this.getVariable("currentTiddler"));
|
|
||||||
switch(this.type) {
|
switch(this.type) {
|
||||||
case "popup":
|
case "popup":
|
||||||
this.readPopupState(state);
|
this.readPopupState(state);
|
||||||
@ -120,7 +119,6 @@ RevealWidget.prototype.readState = function() {
|
|||||||
this.isOpen = !this.isOpen;
|
this.isOpen = !this.isOpen;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
RevealWidget.prototype.readMatchState = function(state) {
|
RevealWidget.prototype.readMatchState = function(state) {
|
||||||
|
Loading…
Reference in New Issue
Block a user