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

@@ -456,7 +456,7 @@ const Player = Module("player", {
});
},
commandline: function () {
commandline: function initCommandline() {
player.CommandMode = Class("CommandSearchViewMode", modules.CommandMode, {
init: function init(mode) {
this.mode = mode;
@@ -472,7 +472,7 @@ const Player = Module("player", {
get onSubmit() player.closure.onSearchSubmit
});
},
commands: function () {
commands: function initCommands() {
commands.add(["f[ilter]"],
"Filter tracks based on keywords {genre/artist/album/track}",
function (args) {
@@ -672,7 +672,7 @@ const Player = Module("player", {
},
{ argCount: "1" });
},
completion: function () {
completion: function initCompletion() {
completion.album = function album(context, artist) {
context.title = ["Album"];
context.completions = [[v, ""] for ([, v] in Iterator(library.getAlbums(artist)))];
@@ -708,7 +708,7 @@ const Player = Module("player", {
context.completions = [[v, ""] for ([, v] in Iterator(library.getTracks(artist, album)))];
};
},
mappings: function () {
mappings: function initMappings() {
mappings.add([modes.PLAYER],
["x"], "Play track",
function () { ex.playerplay(); });
@@ -806,7 +806,7 @@ const Player = Module("player", {
};
}
},
options: function () {
options: function initOptions() {
options.add(["repeat"],
"Set the playback repeat mode",
"number", 0,