1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 22:22:27 +01:00
This commit is contained in:
Nelo Wallus
2016-01-08 19:44:12 +01:00
parent 54fb39d139
commit 0897c7a804

View File

@@ -27,9 +27,9 @@ var INFO = [
// pass true to close, false to open // pass true to close, false to open
function fold_collapse_expand_target(tab, collapse, children = false) { function fold_collapse_expand_target(tab, collapse, children = false) {
if (children) { if (children) {
let childs = TreeStyleTabService.getDescendantTabs(tab); let children = TreeStyleTabService.getDescendantTabs(tab);
for (let x in childs) { for (let x in children) {
gBrowser.treeStyleTab.collapseExpandSubtree(childs[x], collapse); gBrowser.treeStyleTab.collapseExpandSubtree(children[x], collapse);
} }
} }
gBrowser.treeStyleTab.collapseExpandSubtree(tab, collapse); gBrowser.treeStyleTab.collapseExpandSubtree(tab, collapse);