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,7 +2149,8 @@ TreeStyleTabBrowser.prototype = {
this.stopRendering(); this.stopRendering();
var backupAttributes = {}; 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); var subtreeCollapsed = this.isSubtreeCollapsed(tab);
if ( if (