1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-29 23:40:45 +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
*/
TextNodeWidget.prototype.refresh = function(changedTiddlers) {
return false;
var changedAttributes = this.computeAttributes();
if(changedAttributes.text) {
this.refreshSelf();
return true;
} else {
return false;
}
};
exports.text = TextNodeWidget;