1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 10:29:54 +00:00

Minor refactoring for clarity

See 9af68297cd (r48540814)
This commit is contained in:
jeremy@jermolene.com 2021-03-22 09:50:54 +00:00
parent 9c31ff1fb1
commit 7f202f35b4

View File

@ -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 {