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
1 changed files with 4 additions and 2 deletions

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 {