Permalink
Browse files

Fix toTimer to display proper 00:00 format

  • Loading branch information...
1 parent 9c9d61f commit cfcbc8eb26d8b3447b83eb2a047c72c4b770d312 Jay Salvat committed Jul 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 buzz.js
View
@@ -713,7 +713,7 @@ var buzz = {
m = withHours ? Math.floor( time / 60 % 60 ) : Math.floor( time / 60 );
m = isNaN( m ) ? '--' : ( m >= 10 ) ? m : '0' + m;
s = Math.floor( time % 60 );
- s = isNaN( s ) ? '--' : ( time >= 10 ) ? s : '0' + s;
+ s = isNaN( s ) ? '--' : ( s >= 10 ) ? s : '0' + s;
return withHours ? h + ':' + m + ':' + s : m + ':' + s;
},

0 comments on commit cfcbc8e

Please sign in to comment.