SS.setTabState(tab, SS.getTabState(tab)) のように、タブに元のセッションを再設定した時に、タブをリセットしないようにした

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@7159 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-09-09 08:26:32 +00:00
parent 7ccf67ca65
commit 308c11bb67

View File

@ -2530,7 +2530,13 @@ TreeStyleTabBrowser.prototype = {
on restoring. Restoring the old ID (the next statement)
breaks the children list of the temporary parent and causes
many problems. So, to prevent these problems, I part the tab
from the temporary parent manually. */
from the temporary parent manually.
If the ID stored in the session equals to the value of the
attribute stored in the element itself, then don't reset the
tab, because the restoring session is got from the tab itself.
( like SS.setTabState(tab, SS.getTabState(tab)) )
*/
if (id != tab.getAttribute(this.kID))
this.resetTab(tab, false);
}
this.deleteTabValue(tab, this.kCLOSED_SET_ID);