mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-18 05:15:46 +01:00
Move util.Array to modules.Array_.
This commit is contained in:
@@ -42,7 +42,7 @@ function Library() // {{{
|
||||
{
|
||||
let albums = toJSArray(MAIN_LIBRARY.getItemsByProperty(SBProperties.artistName, artist))
|
||||
.map(function (track) track.getProperty(SBProperties.albumName));
|
||||
return util.Array.uniq(albums);
|
||||
return Array_.uniq(albums);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
@@ -402,7 +402,7 @@ function Player() // {{{
|
||||
if (/^[+-]/.test(arg))
|
||||
level = player.volume + level;
|
||||
|
||||
player.volume = util.Math.constrain(level, 0, 1);
|
||||
player.volume = Math_.constrain(level, 0, 1);
|
||||
},
|
||||
{ argCount: "1" });
|
||||
|
||||
@@ -567,7 +567,7 @@ function Player() // {{{
|
||||
let min = 0;
|
||||
let max = gMM.playbackControl.duration - 5000; // TODO: 5s buffer like cmus desirable?
|
||||
|
||||
gMM.playbackControl.position = util.Math.constrain(position, min, max);
|
||||
gMM.playbackControl.position = Math_.constrain(position, min, max);
|
||||
},
|
||||
|
||||
// FIXME: 10% ?
|
||||
|
||||
Reference in New Issue
Block a user