]> git.donarmstrong.com Git - dactyl.git/blobdiff - melodactyl/content/library.js
Import r6976 from upstream hg supporting Firefox up to 25.*
[dactyl.git] / melodactyl / content / library.js
index 5ab691ebd72625f7802ce6c9394b40d6fa56b3e5..65bfb768447c6be14ce6564485ca1e5fe7019d40 100644 (file)
@@ -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));
     }
 }, {
 }, {