Skip to content

Commit

Permalink
fromValue was getting appended with string
Browse files Browse the repository at this point in the history
fromValue was getting appended with a string, rather than calculating
the number, resulting in fromValue having values which appeared like
so: 23.7.01245876332
  • Loading branch information
justrhysism committed Mar 13, 2013
1 parent 8a4f98d commit 6041fa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gauge.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ var Gauge = function( config) {
delay : cfg.delay,
duration : cfg.duration,
delta : cfg.fn,
step : function( delta) { fromValue = from + path * delta; self.draw(); }
step : function( delta) { fromValue = parseFloat(from) + path * delta; self.draw(); }
});
};

Expand Down

0 comments on commit 6041fa5

Please sign in to comment.