From a03a15e7de32a1b41618146ac334b5cd7d432e91 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 10 Jun 2014 19:32:55 +0100 Subject: [PATCH] Allow the text widget to refresh if needed --- core/modules/widgets/text.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/modules/widgets/text.js b/core/modules/widgets/text.js index 591c0db43..4da2119ac 100755 --- a/core/modules/widgets/text.js +++ b/core/modules/widgets/text.js @@ -47,7 +47,13 @@ TextNodeWidget.prototype.execute = function() { Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering */ TextNodeWidget.prototype.refresh = function(changedTiddlers) { - return false; + var changedAttributes = this.computeAttributes(); + if(changedAttributes.text) { + this.refreshSelf(); + return true; + } else { + return false; + } }; exports.text = TextNodeWidget;