Skip to content

Commit

Permalink
Merge pull request #4 from Zekvyrin/master
Browse files Browse the repository at this point in the history
fixed a minor bug
  • Loading branch information
cnanney committed Sep 18, 2014
2 parents 1217b20 + 63e7d96 commit 47016f7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions js/flipcounter.js
Expand Up @@ -161,13 +161,10 @@ var flipCounter = function(d, options){
function _doCount(first){
var first_run = typeof first === "undefined" ? false : first;

x = counter.value;
x = counter.value.toFixed(counter.decimals);

if (!first_run) counter.value += counter.inc;
y = counter.value;
if(counter.decimals){
x = x.toFixed(counter.decimals);
y = y.toFixed(counter.decimals);
}
y = counter.value.toFixed(counter.decimals);
_digitCheck(x, y);
// Do first animation
if (counter.auto === true) nextCount = setTimeout(_doCount, counter.pace);
Expand Down

0 comments on commit 47016f7

Please sign in to comment.