1
0
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:
Doug Kearns
2009-09-13 03:35:48 +10:00
parent a2a2f17e62
commit 7c66dc2b17
17 changed files with 68 additions and 69 deletions

View File

@@ -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);
},
/**

View File

@@ -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% ?