Make sure we animate emptying the list widget

print-window-tiddler
Jeremy Ruston 2013-11-05 08:52:17 +00:00
rodzic 7c250fd7fe
commit 6a0ae2c48b
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

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