サブツリーを折り畳めない設定のとき、favicon付近をクリックしてもタブのフォーカスが切り替わらないことがあったのを修正

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6261 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-02-04 08:56:21 +00:00
parent b67dbc4725
commit f8f4402e9a

View File

@ -454,7 +454,10 @@ var TreeStyleTabUtils = {
isEventFiredOnTwisty : function TSTUtils_isEventFiredOnTwisty(aEvent) isEventFiredOnTwisty : function TSTUtils_isEventFiredOnTwisty(aEvent)
{ {
var tab = this.getTabFromEvent(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+'"]'; var expression = 'ancestor-or-self::*[@class="'+this.kTWISTY+'"]';
if (this.shouldExpandTwistyArea && !this._expandTwistyAreaBlockers.length) if (this.shouldExpandTwistyArea && !this._expandTwistyAreaBlockers.length)