1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 20:37:58 +01:00

moved run/system/source to vimperator.io and objectToString to vimp.util

This commit is contained in:
Martin Stubenschrott
2008-02-05 00:12:18 +00:00
parent cb7fef72ba
commit 8c100b78ba
10 changed files with 336 additions and 858 deletions

View File

@@ -185,33 +185,36 @@ vimperator.Events = function () //{{{
// any tab related events
var tabcontainer = getBrowser().mTabContainer;
tabcontainer.addEventListener("TabMove", function (event)
if (tabcontainer) // not every VIM-like extension has a tab container
{
vimperator.statusline.updateTabCount();
vimperator.buffer.updateBufferList();
}, false);
tabcontainer.addEventListener("TabOpen", function (event)
{
vimperator.statusline.updateTabCount();
vimperator.buffer.updateBufferList();
}, false);
tabcontainer.addEventListener("TabClose", function (event)
{
vimperator.statusline.updateTabCount();
vimperator.buffer.updateBufferList();
}, false);
tabcontainer.addEventListener("TabSelect", function (event)
{
// TODO: is all of that necessary?
vimperator.modes.reset();
vimperator.commandline.clear();
vimperator.modes.show();
vimperator.statusline.updateTabCount();
vimperator.buffer.updateBufferList();
vimperator.tabs.updateSelectionHistory();
tabcontainer.addEventListener("TabMove", function (event)
{
vimperator.statusline.updateTabCount();
vimperator.buffer.updateBufferList();
}, false);
tabcontainer.addEventListener("TabOpen", function (event)
{
vimperator.statusline.updateTabCount();
vimperator.buffer.updateBufferList();
}, false);
tabcontainer.addEventListener("TabClose", function (event)
{
vimperator.statusline.updateTabCount();
vimperator.buffer.updateBufferList();
}, false);
tabcontainer.addEventListener("TabSelect", function (event)
{
// TODO: is all of that necessary?
vimperator.modes.reset();
vimperator.commandline.clear();
vimperator.modes.show();
vimperator.statusline.updateTabCount();
vimperator.buffer.updateBufferList();
vimperator.tabs.updateSelectionHistory();
setTimeout(function () { vimperator.focusContent(true); }, 10); // just make sure, that no widget has focus
}, false);
setTimeout(function () { vimperator.focusContent(true); }, 10); // just make sure, that no widget has focus
}, false);
}
// this adds an event which is is called on each page load, even if the
// page is loaded in a background tab