mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-17 23:34:50 +00:00
Allow the text widget to refresh if needed
This commit is contained in:
parent
305617b632
commit
a03a15e7de
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user