From 494788e5ca124ee73d009bb6251a29dcc88444a9 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Thu, 9 Jul 2009 05:57:45 +1000 Subject: [PATCH] Test the "tabs" feature when adding Tab* events. --- common/content/events.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/content/events.js b/common/content/events.js index 096e6594..72536296 100644 --- a/common/content/events.js +++ b/common/content/events.js @@ -353,7 +353,7 @@ function Events() //{{{ var currentMacro = ""; var lastMacro = ""; - try // not every extension has a getBrowser() method + if (liberator.has("tabs")) { let tabcontainer = getBrowser().mTabContainer; if (tabcontainer) // not every VIM-like extension has a tab container @@ -391,7 +391,6 @@ function Events() //{{{ modes.show(); }, null); } - catch (e) {} // getBrowser().addEventListener("submit", function (event) { // // reset buffer loading state as early as possible, important for macros