1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-28 11:00:27 +00:00

Fix tiddler widget to refresh properly

Previously wasn’t refreshing for changes to the tiddler that it refers
to
This commit is contained in:
Jermolene 2014-07-12 09:08:20 +01:00
parent 0f78c4afbf
commit 9de679b84b

View File

@ -53,7 +53,7 @@ Selectively refreshes the widget if needed. Returns true if the widget or any of
*/
TiddlerWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes.tiddler) {
if(changedAttributes.tiddler || changedTiddlers[this.tiddlerTitle]) {
this.refreshSelf();
return true;
} else {