mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-10-02 08:50:46 +00:00
Make sure we animate emptying the list widget
This commit is contained in:
parent
7c250fd7fe
commit
6a0ae2c48b
@ -175,8 +175,10 @@ ListWidget.prototype.handleListChanges = function(changedTiddlers) {
|
|||||||
return this.refreshChildren(changedTiddlers);
|
return this.refreshChildren(changedTiddlers);
|
||||||
} else {
|
} else {
|
||||||
// Replace the previous content with the empty message
|
// Replace the previous content with the empty message
|
||||||
|
for(t=this.children.length-1; t>=0; t--) {
|
||||||
|
this.removeListItem(t);
|
||||||
|
}
|
||||||
var nextSibling = this.findNextSiblingDomNode();
|
var nextSibling = this.findNextSiblingDomNode();
|
||||||
this.removeChildDomNodes();
|
|
||||||
this.makeChildWidgets(this.getEmptyMessage());
|
this.makeChildWidgets(this.getEmptyMessage());
|
||||||
this.renderChildren(this.parentDomNode,nextSibling);
|
this.renderChildren(this.parentDomNode,nextSibling);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user