1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-13 14:45:47 +01:00

Revert "Move util.Array to modules.Array_."

This reverts commit d6cdda48a18c9fa05365b50046470fec9935fd3c.

Array_ method chaining needs fixing.
This commit is contained in:
Doug Kearns
2009-09-15 13:13:07 +10:00
parent 66f86d2da4
commit dbc99ad956
17 changed files with 69 additions and 68 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 Array_.uniq(albums);
return util.Array.uniq(albums);
},
/**

View File

@@ -402,7 +402,7 @@ function Player() // {{{
if (/^[+-]/.test(arg))
level = player.volume + level;
player.volume = Math_.constrain(level, 0, 1);
player.volume = util.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 = Math_.constrain(position, min, max);
gMM.playbackControl.position = util.Math.constrain(position, min, max);
},
// FIXME: 10% ?