don't save children information if it is not needed

This commit is contained in:
Piro / SHIMODA Hiroshi 2010-11-11 01:52:02 +09:00
parent 4a6774e0b7
commit 8bec6fc3b5

View File

@ -2149,6 +2149,7 @@ TreeStyleTabBrowser.prototype = {
this.stopRendering(); this.stopRendering();
var backupAttributes = {}; var backupAttributes = {};
if (this.hasChildTabs(tab))
backupAttributes[this.kCHILDREN] = this.getTabValue(tab, this.kCHILDREN); backupAttributes[this.kCHILDREN] = this.getTabValue(tab, this.kCHILDREN);
var subtreeCollapsed = this.isSubtreeCollapsed(tab); var subtreeCollapsed = this.isSubtreeCollapsed(tab);