Skip to content

Commit

Permalink
Update justgage.js
Browse files Browse the repository at this point in the history
-- Fixed an issue with decimals: creating a chart from scratch with a non-integral value was impossible, since the value would have been always parsed as int, and not as float, as it should be (then eventually, settings about decimals to display will take effect).
  • Loading branch information
winterismute committed Jan 14, 2014
1 parent ae4ff03 commit f54b6cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion justgage.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@
// overflow values
if (obj.config.value > obj.config.max) obj.config.value = obj.config.max;
if (obj.config.value < obj.config.min) obj.config.value = obj.config.min;
obj.originalValue = obj.kvLookup('value', config, dataset, -1, 'int');
obj.originalValue = obj.kvLookup('value', config, dataset, -1, 'float');

// create canvas
if (obj.config.id !== null && (document.getElementById(obj.config.id)) !== null) {
Expand Down

0 comments on commit f54b6cc

Please sign in to comment.