mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-11 19:25:46 +01:00
Whitespace fixes.
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
// Import Artist List as this can be huge
|
// Import Artist List as this can be huge
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function Player() // {{{
|
function Player() // {{{
|
||||||
{
|
{
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
@@ -15,7 +13,6 @@ function Player() // {{{
|
|||||||
// Get the focus to the visible playlist first
|
// Get the focus to the visible playlist first
|
||||||
//window._SBShowMainLibrary();
|
//window._SBShowMainLibrary();
|
||||||
|
|
||||||
|
|
||||||
function getArtistsArray()
|
function getArtistsArray()
|
||||||
{
|
{
|
||||||
var list = LibraryUtils.mainLibrary;
|
var list = LibraryUtils.mainLibrary;
|
||||||
@@ -232,7 +229,6 @@ function Player() // {{{
|
|||||||
["<C-5>"], "Rate the current media item 5",
|
["<C-5>"], "Rate the current media item 5",
|
||||||
function () { player.rateMediaItem(5); });
|
function () { player.rateMediaItem(5); });
|
||||||
|
|
||||||
|
|
||||||
////////////////// ///////////////////////////////////////////////////////////}}}
|
////////////////// ///////////////////////////////////////////////////////////}}}
|
||||||
////////////////////// COMMANDS ////////////////////////////////////////////////
|
////////////////////// COMMANDS ////////////////////////////////////////////////
|
||||||
/////////////////////////////////////////////////////////////////////////////{{{
|
/////////////////////////////////////////////////////////////////////////////{{{
|
||||||
@@ -326,7 +322,7 @@ function Player() // {{{
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
argCount: "?",
|
argCount: "?",
|
||||||
completer: function(context, args) completion.playlist(context, args),
|
completer: function (context, args) completion.playlist(context, args),
|
||||||
literal: 0
|
literal: 0
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -652,9 +648,9 @@ function Player() // {{{
|
|||||||
let mainLibrary = LibraryUtils.mainLibrary;
|
let mainLibrary = LibraryUtils.mainLibrary;
|
||||||
let playlists = [mainLibrary];
|
let playlists = [mainLibrary];
|
||||||
let listener = {
|
let listener = {
|
||||||
onEnumerationBegin: function() { },
|
onEnumerationBegin: function () { },
|
||||||
onEnumerationEnd: function() { },
|
onEnumerationEnd: function () { },
|
||||||
onEnumeratedItem: function(list, item)
|
onEnumeratedItem: function (list, item)
|
||||||
{
|
{
|
||||||
// FIXME: why are there null items and duplicates?
|
// FIXME: why are there null items and duplicates?
|
||||||
if (!playlists.some(function (list) list.name == item.name) && item.name != null)
|
if (!playlists.some(function (list) list.name == item.name) && item.name != null)
|
||||||
@@ -707,7 +703,6 @@ function Player() // {{{
|
|||||||
var items = list.getItemsByProperty(SBProperties.artistName, artist).enumerate();
|
var items = list.getItemsByProperty(SBProperties.artistName, artist).enumerate();
|
||||||
var i = 0, j = 0;
|
var i = 0, j = 0;
|
||||||
|
|
||||||
|
|
||||||
while (items.hasMoreElements())
|
while (items.hasMoreElements())
|
||||||
{
|
{
|
||||||
album = items.getNext().getProperty(SBProperties.albumName);
|
album = items.getNext().getProperty(SBProperties.albumName);
|
||||||
@@ -755,5 +750,4 @@ function Player() // {{{
|
|||||||
//}}}
|
//}}}
|
||||||
} // }}}
|
} // }}}
|
||||||
|
|
||||||
|
|
||||||
// vim: set fdm=marker sw=4 ts=4 et:
|
// vim: set fdm=marker sw=4 ts=4 et:
|
||||||
|
|||||||
Reference in New Issue
Block a user