From 308c11bb67aa15ac6d2096f3800ab5d757251160 Mon Sep 17 00:00:00 2001 From: piro Date: Thu, 9 Sep 2010 08:26:32 +0000 Subject: [PATCH] =?UTF-8?q?SS.setTabState(tab,=20SS.getTabState(tab))=20?= =?UTF-8?q?=E3=81=AE=E3=82=88=E3=81=86=E3=81=AB=E3=80=81=E3=82=BF=E3=83=96?= =?UTF-8?q?=E3=81=AB=E5=85=83=E3=81=AE=E3=82=BB=E3=83=83=E3=82=B7=E3=83=A7?= =?UTF-8?q?=E3=83=B3=E3=82=92=E5=86=8D=E8=A8=AD=E5=AE=9A=E3=81=97=E3=81=9F?= =?UTF-8?q?=E6=99=82=E3=81=AB=E3=80=81=E3=82=BF=E3=83=96=E3=82=92=E3=83=AA?= =?UTF-8?q?=E3=82=BB=E3=83=83=E3=83=88=E3=81=97=E3=81=AA=E3=81=84=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@7159 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 68b59be3..98d0f486 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -2530,8 +2530,14 @@ 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. */ - this.resetTab(tab, false); + 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);