From 6a0ae2c48b5871bf8bd8b4ff4f7bb96fab4865ab Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Tue, 5 Nov 2013 08:52:17 +0000 Subject: [PATCH] Make sure we animate emptying the list widget --- core/modules/new_widgets/list.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/modules/new_widgets/list.js b/core/modules/new_widgets/list.js index ad654033f..38dcf08da 100755 --- a/core/modules/new_widgets/list.js +++ b/core/modules/new_widgets/list.js @@ -175,8 +175,10 @@ ListWidget.prototype.handleListChanges = function(changedTiddlers) { return this.refreshChildren(changedTiddlers); } else { // Replace the previous content with the empty message + for(t=this.children.length-1; t>=0; t--) { + this.removeListItem(t); + } var nextSibling = this.findNextSiblingDomNode(); - this.removeChildDomNodes(); this.makeChildWidgets(this.getEmptyMessage()); this.renderChildren(this.parentDomNode,nextSibling); return true;