mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 17:47:16 +00:00
Tiny improvement to time object
This commit is contained in:
parent
d3112eca09
commit
c66037140b
1 changed files with 3 additions and 3 deletions
|
|
@ -62,9 +62,9 @@ function Media (audioId) {
|
|||
};
|
||||
|
||||
/* Helpers */
|
||||
this._timeObject = function(seconds) {
|
||||
var minutes = seconds / 60;
|
||||
var seconds = seconds % 60;
|
||||
this._timeObject = function(time) {
|
||||
var minutes = Math.floor(time / 60);
|
||||
var seconds = time - (minutes * 60);
|
||||
|
||||
return [
|
||||
Math.floor(minutes / 10),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue