1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 04:34:12 +01:00

Use [foo] instead of foo[] consistently in source doc type annotations.

This commit is contained in:
Štěpán Němec
2011-07-22 12:33:36 +02:00
parent eca606fab2
commit cc03bfadf8
15 changed files with 51 additions and 51 deletions

View File

@@ -22,7 +22,7 @@ const Library = Module("library", {
/**
* Returns an array of all the artist names in the main library.
*
* @returns {string[]}
* @returns {[string]}
*/
getArtists: function getArtists() this._toJSArray(this.MAIN_LIBRARY.getDistinctValuesForProperty(SBProperties.artistName)),
@@ -32,7 +32,7 @@ const Library = Module("library", {
* library.
*
* @param {string} artist The artist's name.
* @returns {string[]}
* @returns {[string]}
*/
getAlbums: function getAlbums(artist) {
let albums = this._toJSArray(this.MAIN_LIBRARY.getItemsByProperty(SBProperties.artistName, artist))
@@ -46,7 +46,7 @@ const Library = Module("library", {
*
* @param {string} artist The artist's name.
* @param {string} album The album's name.
* @returns {string[]}
* @returns {[string]}
*/
getTracks: function getTracks(artist, album) {
let properties = services.MutablePropertyArray();

View File

@@ -333,7 +333,7 @@ const Player = Module("player", {
/**
* Returns an array of all available playlists.
*
* @returns {sbIMediaList[]}
* @returns {[sbIMediaList]}
*/
getPlaylists: function getPlaylists() {
let mainLibrary = LibraryUtils.mainLibrary;
@@ -367,7 +367,7 @@ const Player = Module("player", {
/**
* Returns an array of all available media pages.
*
* @returns {sbIMediaPageInfo[]}
* @returns {[sbIMediaPageInfo]}
*/
getMediaPages: function getMediaPages() {
let list = SBGetBrowser().currentMediaPage.mediaListView.mediaList;