From 800bc639f97a04fb69ffa59fb6c62252ef492299 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Thu, 13 Feb 2014 17:59:10 +0000 Subject: [PATCH] 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. --- core/modules/widgets/reveal.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/modules/widgets/reveal.js b/core/modules/widgets/reveal.js index 6b7558a2c..ab82c2192 100755 --- a/core/modules/widgets/reveal.js +++ b/core/modules/widgets/reveal.js @@ -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 {