mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-30 19:52:25 +01:00
Revert "Move util.Array to modules.Array_."
This reverts commit d6cdda48a18c9fa05365b50046470fec9935fd3c. Array_ method chaining needs fixing.
This commit is contained in:
@@ -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% ?
|
||||
|
||||
Reference in New Issue
Block a user