From 7f202f35b4b142b474fc13170c0bd724a2729b4f Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Mon, 22 Mar 2021 09:50:54 +0000 Subject: [PATCH] Minor refactoring for clarity See https://github.com/Jermolene/TiddlyWiki5/commit/9af68297cd4c1df8e5d3bd238a7949bd4143aeb4#r48540814 --- core/modules/widgets/transclude.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/widgets/transclude.js b/core/modules/widgets/transclude.js index 515301ce5..e2f2e78dc 100755 --- a/core/modules/widgets/transclude.js +++ b/core/modules/widgets/transclude.js @@ -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 {