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:
@@ -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" : "";
|
||||
|
||||
Reference in New Issue
Block a user