From 744b18b56ebf2555101e4a5d4399ae57275a13dc Mon Sep 17 00:00:00 2001 From: piro Date: Wed, 1 Apr 2009 03:46:30 +0000 Subject: [PATCH] =?UTF-8?q?=E3=82=BF=E3=83=96=E3=83=90=E3=83=BC=E3=81=AE?= =?UTF-8?q?=E3=80=8C=E6=96=B0=E3=81=97=E3=81=84=E3=82=BF=E3=83=96=E3=80=8D?= =?UTF-8?q?=E3=83=9C=E3=82=BF=E3=83=B3=E3=81=8C=E6=A9=9F=E8=83=BD=E3=81=97?= =?UTF-8?q?=E3=81=AA=E3=81=8F=E3=81=AA=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F?= =?UTF-8?q?=E3=81=AE=E3=82=92=E4=BF=AE=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@3990 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index aed4c91b..a37a8321 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -1147,10 +1147,8 @@ TreeStyleTabBrowser.prototype = { return; case 'click': - if (aEvent.target.ownerDocument == document) { + if (aEvent.target.ownerDocument == document) this.onTabClick(aEvent); - return; - } return; case 'dblclick': @@ -1761,17 +1759,13 @@ TreeStyleTabBrowser.prototype = { if (this.isEventFiredOnTwisty(aEvent)) { var tab = this.getTabFromEvent(aEvent); this.collapseExpandSubtree(tab, tab.getAttribute(this.kSUBTREE_COLLAPSED) != 'true'); + aEvent.preventDefault(); + aEvent.stopPropagation(); } else if (!this.getTabFromEvent(aEvent)) { var tab = this.getTabFromTabbarEvent(aEvent); if (tab) this.mTabBrowser.selectedTab = tab; } - else { - return; - } - - aEvent.preventDefault(); - aEvent.stopPropagation(); }, getTabFromTabbarEvent : function(aEvent) {