Tiny improvement to time object

This commit is contained in:
Jordan Eldredge 2014-11-08 21:20:51 -08:00
parent d3112eca09
commit c66037140b

View file

@ -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),