mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 17:44:11 +01:00
Replace a couple of references to util.Array with array.
This commit is contained in:
@@ -141,7 +141,7 @@ const Abbreviations = Module("abbreviations", {
|
|||||||
for (let [, mabbrevs] in Iterator(this.abbrevs))
|
for (let [, mabbrevs] in Iterator(this.abbrevs))
|
||||||
lhses = lhses.concat([key for (key in mabbrevs)]);
|
lhses = lhses.concat([key for (key in mabbrevs)]);
|
||||||
lhses.sort();
|
lhses.sort();
|
||||||
lhses = util.Array.uniq(lhses);
|
lhses = array.uniq(lhses);
|
||||||
|
|
||||||
for (let [, lhs] in Iterator(lhses)) {
|
for (let [, lhs] in Iterator(lhses)) {
|
||||||
let exists = {};
|
let exists = {};
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ const Library = Module("library", {
|
|||||||
getAlbums: function getAlbums(artist) {
|
getAlbums: function getAlbums(artist) {
|
||||||
let albums = this._toJSArray(this.MAIN_LIBRARY.getItemsByProperty(SBProperties.artistName, artist))
|
let albums = this._toJSArray(this.MAIN_LIBRARY.getItemsByProperty(SBProperties.artistName, artist))
|
||||||
.map(function (track) track.getProperty(SBProperties.albumName));
|
.map(function (track) track.getProperty(SBProperties.albumName));
|
||||||
return util.Array.uniq(albums);
|
return array.uniq(albums);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user