1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-28 11:05:48 +01:00

renamed Startup, Quit and QuitPre autocmd events to VimperatorEnter,

VimperatorLeave and VimperatorLeavePre
This commit is contained in:
Doug Kearns
2008-09-10 16:50:52 +00:00
parent 1d83391c54
commit 6c9238fe74
5 changed files with 29 additions and 26 deletions

View File

@@ -1075,7 +1075,7 @@ const liberator = (function () //{{{
option.reset();
}
liberator.autocommands.trigger("Startup", "");
liberator.autocommands.trigger(liberator.config.name + "Enter", "");
}, 0);
liberator.statusline.update();
@@ -1085,7 +1085,7 @@ const liberator = (function () //{{{
shutdown: function ()
{
liberator.autocommands.trigger("QuitPre", "");
liberator.autocommands.trigger(liberator.config.name + "LeavePre", "");
// save our preferences
liberator.commandline.destroy();
@@ -1096,7 +1096,7 @@ const liberator = (function () //{{{
liberator.dump("All liberator modules destroyed\n");
liberator.autocommands.trigger("Quit", "");
liberator.autocommands.trigger(liberator.config.name + "Leave", "");
},
sleep: function (ms)

View File

@@ -46,11 +46,12 @@ liberator.config = { //{{{
get visualbellWindow() { return document.getElementById(this.mainWindowID); },
isComposeWindow: false,
autocommands: [["FolderLoaded", "Triggered after switching folders in Thunderbird"],
["PageLoadPre", "Triggered after a page load is initiated"],
["PageLoad", "Triggered when a page gets (re)loaded/opened"],
["Quit", "Triggered before exiting Thunderbird"],
["Startup", "Triggered after Thunderbird starts"]],
autocommands: [["FolderLoaded", "Triggered after switching folders in Thunderbird"],
["PageLoadPre", "Triggered after a page load is initiated"],
["PageLoad", "Triggered when a page gets (re)loaded/opened"],
["MuttatorEnter", "Triggered after Thunderbird starts"],
["MuttatorLeave", "Triggered before exiting Thunderbird"],
["MuttatorLeavePre", "Triggered before exiting Thunderbird"]],
dialogs: [
["about", "About Thunderbird",

View File

@@ -38,14 +38,14 @@ liberator.config = { //{{{
get visualbellWindow() { return getBrowser().mPanelContainer; },
autocommands: [["BookmarkAdd", "Triggered after a page is bookmarked"],
["LocationChange", "Triggered when changing tabs or when naviagtion to a new location"],
["PageLoadPre", "Triggered after a page load is initiated"],
["PageLoad", "Triggered when a page gets (re)loaded/opened"],
["QuitPre", "Triggered before exiting Firefox, just before destroying each module"],
["Quit", "Triggered before exiting Firefox"],
["ShellCmdPost", "Triggered after executing a shell command with :!cmd"],
["Startup", "Triggered after Firefox starts"]],
autocommands: [["BookmarkAdd", "Triggered after a page is bookmarked"],
["LocationChange", "Triggered when changing tabs or when naviagtion to a new location"],
["PageLoadPre", "Triggered after a page load is initiated"],
["PageLoad", "Triggered when a page gets (re)loaded/opened"],
["ShellCmdPost", "Triggered after executing a shell command with :!cmd"],
["VimperatorEnter", "Triggered after Firefox starts"],
["VimperatorLeavePre", "Triggered before exiting Firefox, just before destroying each module"],
["VimperatorLeave", "Triggered before exiting Firefox"]],
dialogs: [
["about", "About Firefox",