mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-05-29 08:42:17 +00:00
Minor refactoring for clarity
See https://github.com/Jermolene/TiddlyWiki5/commit/9af68297cd4c1df8e5d3bd238a7949bd4143aeb4#r48540814
This commit is contained in:
@@ -112,7 +112,7 @@ Selectively refreshes the widget if needed. Returns true if the widget or any of
|
||||
*/
|
||||
TranscludeWidget.prototype.refresh = function(changedTiddlers) {
|
||||
var changedAttributes = this.computeAttributes();
|
||||
if(Object.keys(changedAttributes).length || changedTiddlers[this.transcludeTitle]) {
|
||||
if($tw.utils.count(changedAttributes) || changedTiddlers[this.transcludeTitle]) {
|
||||
this.refreshSelf();
|
||||
return true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user