1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 04:57:58 +01:00

use gBrowser#mTabContainer in preference to tabContainer

This commit is contained in:
Doug Kearns
2007-12-02 08:53:40 +00:00
parent 5e56767701
commit b9f3270e50
2 changed files with 4 additions and 4 deletions

View File

@@ -38,7 +38,7 @@ vimperator.Events = function () //{{{
//document.getElementById("content").onclick = function (event) { alert("foo"); }; //document.getElementById("content").onclick = function (event) { alert("foo"); };
// any tab related events // any tab related events
var tabcontainer = getBrowser().tabContainer; var tabcontainer = getBrowser().mTabContainer;
tabcontainer.addEventListener("TabMove", function (event) tabcontainer.addEventListener("TabMove", function (event)
{ {
vimperator.statusline.updateTabCount(); vimperator.statusline.updateTabCount();

View File

@@ -46,7 +46,7 @@ vimperator.Tabs = function () //{{{
// - "$" for the last tab // - "$" for the last tab
function indexFromSpec(spec, wrap) function indexFromSpec(spec, wrap)
{ {
var position = getBrowser().tabContainer.selectedIndex; var position = getBrowser().mTabContainer.selectedIndex;
var length = getBrowser().mTabs.length; var length = getBrowser().mTabs.length;
var last = length - 1; var last = length - 1;
@@ -105,7 +105,7 @@ vimperator.Tabs = function () //{{{
return -1; return -1;
} }
return getBrowser().tabContainer.selectedIndex; return getBrowser().mTabContainer.selectedIndex;
}, },
// TODO: implement filter // TODO: implement filter
@@ -129,7 +129,7 @@ vimperator.Tabs = function () //{{{
if (index) if (index)
return getBrowser().mTabs[index]; return getBrowser().mTabs[index];
return getBrowser().tabContainer.selectedItem; return getBrowser().mTabContainer.selectedItem;
}, },
// spec == "" moves the tab to the last position as per Vim // spec == "" moves the tab to the last position as per Vim