diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 7d65ef22..757630bb 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -2149,7 +2149,8 @@ TreeStyleTabBrowser.prototype = { this.stopRendering(); var backupAttributes = {}; - backupAttributes[this.kCHILDREN] = this.getTabValue(tab, this.kCHILDREN); + if (this.hasChildTabs(tab)) + backupAttributes[this.kCHILDREN] = this.getTabValue(tab, this.kCHILDREN); var subtreeCollapsed = this.isSubtreeCollapsed(tab); if (