mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-22 04:15:45 +01:00
Convert expression closures to arrow syntax.
This commit is contained in:
@@ -36,7 +36,7 @@ const Library = Module("library", {
|
||||
*/
|
||||
getAlbums: function getAlbums(artist) {
|
||||
let albums = this._toJSArray(this.MAIN_LIBRARY.getItemsByProperty(SBProperties.artistName, artist))
|
||||
.map(function (track) track.getProperty(SBProperties.albumName));
|
||||
.map(track => track.getProperty(SBProperties.albumName));
|
||||
return array.uniq(albums);
|
||||
},
|
||||
|
||||
@@ -55,7 +55,7 @@ const Library = Module("library", {
|
||||
properties.appendProperty(SBProperties.albumName, album);
|
||||
|
||||
return this._toJSArray(this.MAIN_LIBRARY.getItemsByProperties(properties))
|
||||
.map(function (track) track.getProperty(SBProperties.trackName));
|
||||
.map(track => track.getProperty(SBProperties.trackName));
|
||||
}
|
||||
}, {
|
||||
}, {
|
||||
|
||||
Reference in New Issue
Block a user