From cf058c1b18a12662881dbbc26fe80cfcd229d086 Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Tue, 7 Dec 2010 00:25:14 +0900 Subject: [PATCH] block to select tab for clicking on the twisty, without eval() --- content/treestyletab/treestyletabbrowser.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 56841508..db3f10f7 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -370,18 +370,6 @@ TreeStyleTabBrowser.prototype = { window['piro.sakura.ne.jp'].tabsDragUtils.initTabBrowser(b); - eval('b.mTabContainer._selectNewTab = '+ - b.mTabContainer._selectNewTab.toSource().replace( - '{', - - ) - ); - eval('b.mTabContainer.adjustTabstrip = '+ b.mTabContainer.adjustTabstrip.toSource().replace( /(\}\)?)$/, @@ -3133,7 +3121,8 @@ TreeStyleTabBrowser.prototype = { aEvent.button == 0 && this.isEventFiredOnTwisty(aEvent) ) { - this.getTabFromEvent(aEvent).__treestyletab__preventSelect = true; + // prevent to select the tab for clicking on twisty + aEvent.stopPropagation(); } else { this.onMozMouseHittest(aEvent);