From 65c52e7872d67641e4d9bd885e3cea05e19692ba Mon Sep 17 00:00:00 2001 From: piro Date: Thu, 23 Jul 2009 16:59:35 +0000 Subject: [PATCH] =?UTF-8?q?=E8=A6=AA=E3=82=BF=E3=83=96=E3=81=8C=E6=97=A2?= =?UTF-8?q?=E3=81=AB=E9=96=89=E3=81=98=E3=82=89=E3=82=8C=E3=81=A6=E3=81=84?= =?UTF-8?q?=E3=81=9F=E6=99=82=E3=81=AE=E3=81=9F=E3=82=81=E3=81=AE=E5=AF=BE?= =?UTF-8?q?=E5=87=A6?= 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@4795 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index c10385aa..c866b0ab 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -2969,9 +2969,11 @@ TreeStyleTabBrowser.prototype = { aChild.dispatchEvent(event); if (this.isGroupTab(parentTab) && !this.hasChildTabs(parentTab)) { - window.setTimeout(function(aSelf) { - aSelf.getTabBrowserFromChild(parentTab).removeTab(parentTab); - }, 0, this); + window.setTimeout(function(aTabBrowser) { + if (parentTab.parentNode) + aTabBrowser.removeTab(parentTab); + parentTab = null; + }, 0, this.getTabBrowserFromChild(parentTab)); } }, detachTab : function(aChild, aDontUpdateIndent) // alias