From e234f8ea7ada5e68b318e5e3841c3ce586cb381b Mon Sep 17 00:00:00 2001 From: piro Date: Thu, 23 Jul 2009 16:26:33 +0000 Subject: [PATCH] =?UTF-8?q?=E5=AD=90=E3=82=BF=E3=83=96=E3=81=8C=E3=81=B2?= =?UTF-8?q?=E3=81=A8=E3=81=A4=E3=82=82=E3=81=AA=E3=81=8F=E3=81=AA=E3=82=8B?= =?UTF-8?q?=E6=99=82=E3=81=AF=E3=83=80=E3=83=9F=E3=83=BC=E3=81=AE=E8=A6=AA?= =?UTF-8?q?=E3=82=BF=E3=83=96=E3=82=92=E8=87=AA=E5=8B=95=E3=81=A7=E9=96=89?= =?UTF-8?q?=E3=81=98=E3=82=8B?= 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@4789 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 0135bc62..28953e8e 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -2967,6 +2967,16 @@ TreeStyleTabBrowser.prototype = { var event = document.createEvent('Events'); event.initEvent('TreeStyleTabParted', true, true); aChild.dispatchEvent(event); + + if (this.isGroupTab(parentTab)) { + window.setTimeout(function(aSelf) { + aSelf.getTabBrowserFromChild(parentTab).removeTab(parentTab); + }, 0, this); + } + }, + detachTab : function(aChild, aDontUpdateIndent) // alias + { + return this.partTab(aChild, aDontUpdateIndent); }, updateTabsIndent : function(aTabs, aLevel, aProp, aJustNow)