1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00

Made the chooser slightly less broken

This commit is contained in:
Jeremy Ruston 2012-06-16 19:02:56 +01:00
parent 49cc644293
commit 04989a5ceb

View File

@ -92,8 +92,8 @@ exports.hideChooser = function() {
if(this.chooserDisplayed) {
// this.deselect();
this.chooserDisplayed = false;
for(var t=0; t<this.child.children[0].children.length; t++) {
this.child.children[0].domNode.removeChild(this.child.children[0].children[t].domNode);
while(this.child.children[0].domNode.hasChildNodes()) {
this.child.children[0].domNode.removeChild(this.child.children[0].domNode.firstChild);
}
this.child.children[0].children = [];
}