From f8f4402e9a5dc1719ffb1f745f5f521a3db2a926 Mon Sep 17 00:00:00 2001 From: piro Date: Thu, 4 Feb 2010 08:56:21 +0000 Subject: [PATCH] =?UTF-8?q?=E3=82=B5=E3=83=96=E3=83=84=E3=83=AA=E3=83=BC?= =?UTF-8?q?=E3=82=92=E6=8A=98=E3=82=8A=E7=95=B3=E3=82=81=E3=81=AA=E3=81=84?= =?UTF-8?q?=E8=A8=AD=E5=AE=9A=E3=81=AE=E3=81=A8=E3=81=8D=E3=80=81favicon?= =?UTF-8?q?=E4=BB=98=E8=BF=91=E3=82=92=E3=82=AF=E3=83=AA=E3=83=83=E3=82=AF?= =?UTF-8?q?=E3=81=97=E3=81=A6=E3=82=82=E3=82=BF=E3=83=96=E3=81=AE=E3=83=95?= =?UTF-8?q?=E3=82=A9=E3=83=BC=E3=82=AB=E3=82=B9=E3=81=8C=E5=88=87=E3=82=8A?= =?UTF-8?q?=E6=9B=BF=E3=82=8F=E3=82=89=E3=81=AA=E3=81=84=E3=81=93=E3=81=A8?= =?UTF-8?q?=E3=81=8C=E3=81=82=E3=81=A3=E3=81=9F=E3=81=AE=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= 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@6261 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- modules/utils.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/utils.js b/modules/utils.js index 12a08a8d..bdc019c9 100644 --- a/modules/utils.js +++ b/modules/utils.js @@ -454,7 +454,10 @@ var TreeStyleTabUtils = { isEventFiredOnTwisty : function TSTUtils_isEventFiredOnTwisty(aEvent) { var tab = this.getTabFromEvent(aEvent); - if (!tab || !this.hasChildTabs(tab)) return false; + if (!tab || + !this.hasChildTabs(tab) || + !this.canCollapseSubtree(tab)) + return false; var expression = 'ancestor-or-self::*[@class="'+this.kTWISTY+'"]'; if (this.shouldExpandTwistyArea && !this._expandTwistyAreaBlockers.length)