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

cleaned up completion.js a lot, probaby still something to do

This commit is contained in:
Martin Stubenschrott
2008-06-08 04:01:56 +00:00
parent 1742c9cd44
commit 6ecd478298
7 changed files with 202 additions and 252 deletions

View File

@@ -161,7 +161,10 @@ const liberator = (function () //{{{
}
},
{
completer: function (filter) { return liberator.completion.dialog(filter); }
completer: function (filter)
{
return [0, liberator.completion.filter(liberator.config.dialogs || [], filter)];
}
});
liberator.commands.add(["exe[cute]"],
@@ -750,7 +753,7 @@ const liberator = (function () //{{{
// quit liberator, no matter how many tabs/windows are open
quit: function (saveSession)
{
liberator.autocommands.trigger("BrowserExit", "");
liberator.autocommands.trigger("Quit", "");
if (saveSession)
liberator.options.setPref("browser.startup.page", 3); // start with saved session
@@ -762,8 +765,6 @@ const liberator = (function () //{{{
restart: function ()
{
liberator.autocommands.trigger("BrowserRestart", "");
const nsIAppStartup = Components.interfaces.nsIAppStartup;
// notify all windows that an application quit has been requested.
@@ -912,6 +913,8 @@ const liberator = (function () //{{{
}, 0);
liberator.statusline.update();
liberator.autocommands.trigger("Startup", "");
liberator.log(liberator.config.name + " fully initialized", 1);
},