add clone functionality
This commit is contained in:
@@ -31,8 +31,9 @@ class View {
|
||||
|
||||
removeDirTree() {
|
||||
let mainul = document.getElementsByTagName("ul")[0];
|
||||
if (mainul !== undefined) {
|
||||
mainul.firstChild.remove();
|
||||
while (mainul.firstChild) {
|
||||
mainul.lastChild.remove();
|
||||
}
|
||||
this.hloubka = 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user