1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-18 07:44:51 +00:00

Allow the text widget to refresh if needed

This commit is contained in:
Jermolene 2014-06-10 19:32:55 +01:00
parent 305617b632
commit a03a15e7de

View File

@ -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 Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/ */
TextNodeWidget.prototype.refresh = function(changedTiddlers) { TextNodeWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes.text) {
this.refreshSelf();
return true;
} else {
return false; return false;
}
}; };
exports.text = TextNodeWidget; exports.text = TextNodeWidget;