});
},
- commandline: function () {
+ commandline: function initCommandline() {
player.CommandMode = Class("CommandSearchViewMode", modules.CommandMode, {
init: function init(mode) {
this.mode = mode;
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) {
},
{ 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)))];
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(); });
};
}
},
- options: function () {
+ options: function initOptions() {
options.add(["repeat"],
"Set the playback repeat mode",
"number", 0,