1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Fix problem with the reveal widget not refreshing properly when used with text references

The check for changed tiddlers was failing because `this.stateTitle`
contains the entire text reference, not just the tiddler title.
This commit is contained in:
Jermolene 2014-02-13 17:59:10 +00:00
parent dc8e84fcb7
commit 800bc639f9

View File

@ -156,8 +156,10 @@ RevealWidget.prototype.refresh = function(changedTiddlers) {
this.refreshSelf();
return true;
} else {
var refreshed = false;
if(changedTiddlers[this.stateTitle]) {
var refreshed = false,
currentlyOpen = this.isOpen;
this.readState();
if(this.isOpen !== currentlyOpen) {
if(this.retain === "yes") {
this.updateState();
} else {