1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 16:44:12 +01:00

Normalise naming of module initializer functions.

This commit is contained in:
Doug Kearns
2012-10-11 01:08:36 +11:00
parent 50597cc80a
commit 53f3ea342c
22 changed files with 84 additions and 84 deletions

View File

@@ -168,7 +168,7 @@ var AutoCommands = Module("autocommands", {
}
}, {
}, {
contexts: function () {
contexts: function initContexts() {
update(AutoCommands.prototype, {
hives: contexts.Hives("autocmd", AutoCmdHive),
user: contexts.hives.autocmd.user,
@@ -176,7 +176,7 @@ var AutoCommands = Module("autocommands", {
matchingHives: function matchingHives(uri, doc) contexts.matchingGroups(uri, doc).autocmd
});
},
commands: function () {
commands: function initCommands() {
commands.add(["au[tocmd]"],
"Execute commands automatically on events",
function (args) {
@@ -280,15 +280,15 @@ var AutoCommands = Module("autocommands", {
});
});
},
completion: function () {
completion: function initCompletion() {
completion.autocmdEvent = function autocmdEvent(context) {
context.completions = Iterator(config.autocommands);
};
},
javascript: function () {
javascript: function initJavascript() {
JavaScript.setCompleter(AutoCmdHive.prototype.get, [function () Iterator(config.autocommands)]);
},
options: function () {
options: function initOptions() {
options.add(["eventignore", "ei"],
"List of autocommand event names which should be ignored",
"stringlist", "",