summaryrefslogtreecommitdiff
path: root/melodactyl
diff options
context:
space:
mode:
authorDoug Kearns <dougkearns@gmail.com>2012-10-11 01:08:36 +1100
committerDoug Kearns <dougkearns@gmail.com>2012-10-11 01:08:36 +1100
commit53f3ea342cc3ec47357c0836e89c127742762453 (patch)
tree6f5bd10d1c6a7641f6709a5f3bfcd4cf84b07730 /melodactyl
parent50597cc80a48f4a192f44723039e11348b4a6c84 (diff)
downloadpentadactyl-53f3ea342cc3ec47357c0836e89c127742762453.tar.gz
Normalise naming of module initializer functions.
Diffstat (limited to 'melodactyl')
-rw-r--r--melodactyl/content/player.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/melodactyl/content/player.js b/melodactyl/content/player.js
index f3b943ac..8a7bab29 100644
--- a/melodactyl/content/player.js
+++ b/melodactyl/content/player.js
@@ -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,