1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Fix bug where count widget wasn't being updated correctly

This commit is contained in:
Jermolene 2014-03-10 18:15:00 +00:00
parent f04527ae32
commit 01e1133219

View File

@ -54,6 +54,7 @@ Selectively refreshes the widget if needed. Returns true if the widget or any of
*/
CountWidget.prototype.refresh = function(changedTiddlers) {
// Re-execute the filter to get the count
this.computeAttributes();
var oldCount = this.currentCount;
this.execute();
if(this.currentCount !== oldCount) {