if (word.subs.length) {
// delve into subcategory
put(worditem, '.parent');
- this.add(put(worditem, 'ul'), word.subs);
+ const expansion = put(worditem, 'ul');
+ //expansion.style.display = 'none';
+ this.add(expansion, word.subs);
+ //worditem.onclick = () => expansion.style.display = '';
}
if (this.preset.debug) {
put(figitem, '[title=$]', `id ${ref} level ${word.level}`);