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