From ca372620e09d36075f0faff114c7cc5db0109a15 Mon Sep 17 00:00:00 2001 From: David Schnur Date: Tue, 10 Jul 2012 19:21:18 -0400 Subject: [PATCH] Fixed mistake in code from pull request #50 - The faster toFixed alternative now returns a string, as tickFormatter is expected to do --- jquery.flot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.flot.js b/jquery.flot.js index ce7253b..1ac0528 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -1220,7 +1220,7 @@ axis.tickFormatter = function (v, axis) { var factor = Math.pow(10, axis.tickDecimals); - return Math.round(v * factor) / factor; + return "" + Math.round(v * factor) / factor; }; }