From b9f3270e50f4537cab8adb2e9dd2f1313c732c04 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sun, 2 Dec 2007 08:53:40 +0000 Subject: [PATCH] use gBrowser#mTabContainer in preference to tabContainer --- content/events.js | 2 +- content/tabs.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/content/events.js b/content/events.js index 4f169490..4d7dfb4d 100644 --- a/content/events.js +++ b/content/events.js @@ -38,7 +38,7 @@ vimperator.Events = function () //{{{ //document.getElementById("content").onclick = function (event) { alert("foo"); }; // any tab related events - var tabcontainer = getBrowser().tabContainer; + var tabcontainer = getBrowser().mTabContainer; tabcontainer.addEventListener("TabMove", function (event) { vimperator.statusline.updateTabCount(); diff --git a/content/tabs.js b/content/tabs.js index cb5ef4e5..199864d4 100644 --- a/content/tabs.js +++ b/content/tabs.js @@ -46,7 +46,7 @@ vimperator.Tabs = function () //{{{ // - "$" for the last tab function indexFromSpec(spec, wrap) { - var position = getBrowser().tabContainer.selectedIndex; + var position = getBrowser().mTabContainer.selectedIndex; var length = getBrowser().mTabs.length; var last = length - 1; @@ -105,7 +105,7 @@ vimperator.Tabs = function () //{{{ return -1; } - return getBrowser().tabContainer.selectedIndex; + return getBrowser().mTabContainer.selectedIndex; }, // TODO: implement filter @@ -129,7 +129,7 @@ vimperator.Tabs = function () //{{{ if (index) return getBrowser().mTabs[index]; - return getBrowser().tabContainer.selectedItem; + return getBrowser().mTabContainer.selectedItem; }, // spec == "" moves the tab to the last position as per Vim