1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-17 07:13:33 +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

@@ -299,7 +299,7 @@ var Abbreviations = Module("abbreviations", {
user: contexts.hives.abbrevs.user
});
},
completion: function () {
completion: function initCompletion() {
completion.abbreviation = function abbreviation(context, modes, group) {
group = group || abbreviations.user;
let fn = modes ? function (abbr) abbr.inModes(modes) : util.identity;
@@ -307,7 +307,7 @@ var Abbreviations = Module("abbreviations", {
context.completions = group.merged.filter(fn);
};
},
commands: function () {
commands: function initCommands() {
function addAbbreviationCommands(modes, ch, modeDescription) {
modes.sort();
modeDescription = modeDescription ? " in " + modeDescription + " mode" : "";