From 7ea751f9fb30f84cbb3f4c8c0330480e777ff986 Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Tue, 7 Dec 2010 00:16:53 +0900 Subject: [PATCH] remove codes for Firefox 2 --- content/treestyletab/treestyletabbrowser.js | 24 --------------------- 1 file changed, 24 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index cf6d05c4..56841508 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -370,30 +370,6 @@ TreeStyleTabBrowser.prototype = { window['piro.sakura.ne.jp'].tabsDragUtils.initTabBrowser(b); - /* Closing collapsed last tree breaks selected tab. - To solve this problem, I override the setter to - force to set a tab and forbid it becomes null. */ - let (getter, setter) { - getter = b.__lookupGetter__('selectedTab'); - setter = b.__lookupSetter__('selectedTab'); - eval('setter = '+setter.toSource().replace( - '{', - .toString() - )); - /* We have to use both __defineSetter__ and __defineGetter__ - just in same time!! If we update only setter, - getter will be vanished. */ - b.__defineGetter__('selectedTab', getter); - b.__defineSetter__('selectedTab', setter); - getter = null; - setter = null; - } - - eval('b.mTabContainer._selectNewTab = '+ b.mTabContainer._selectNewTab.toSource().replace( '{',