a funny gag
This commit is contained in:
parent
1225f6d313
commit
7ed058a9db
6 changed files with 22 additions and 8 deletions
|
@ -17,8 +17,9 @@ class Branch extends HTMLLIElement {
|
|||
this.details = this.childNodes[0];
|
||||
this.innerUL = this.details.childNodes[1];
|
||||
|
||||
let doPersist = !this.hasAttribute("data-th-do-not-persist");
|
||||
let isOpen = branchIsOpen(this.id);
|
||||
if (isOpen !== undefined) {
|
||||
if (doPersist && isOpen !== undefined) {
|
||||
this.details.open = isOpen;
|
||||
}
|
||||
this.details.addEventListener("toggle", _ => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue