From 5d68d11b67a020dacf1506b0fc3e09d998d891b7 Mon Sep 17 00:00:00 2001 From: "olau@iola.dk" Date: Mon, 22 Mar 2010 11:49:40 +0000 Subject: [PATCH] Fix a couple of undeclared variables, noticed by Daniel Farina git-svn-id: https://flot.googlecode.com/svn/trunk@244 1e0a6537-2640-0410-bfb7-f154510ff394 --- jquery.flot.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jquery.flot.js b/jquery.flot.js index e6373e7..8ff9451 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -688,7 +688,7 @@ // get the most space needed around the grid for things // that may stick out var maxOutset = options.grid.borderWidth; - for (i = 0; i < series.length; ++i) + for (var i = 0; i < series.length; ++i) maxOutset = Math.max(maxOutset, 2 * (series[i].points.radius + series[i].points.lineWidth/2)); plotOffset.left = plotOffset.right = plotOffset.top = plotOffset.bottom = maxOutset; @@ -826,7 +826,7 @@ minSize = axisOptions.minTickSize[0] * timeUnitSize[axisOptions.minTickSize[1]]; } - for (i = 0; i < spec.length - 1; ++i) + for (var i = 0; i < spec.length - 1; ++i) if (delta < (spec[i][0] * timeUnitSize[spec[i][1]] + spec[i + 1][0] * timeUnitSize[spec[i + 1][1]]) / 2 && spec[i][0] * timeUnitSize[spec[i][1]] >= minSize) @@ -1745,7 +1745,7 @@ var fragments = [], rowStarted = false, lf = options.legend.labelFormatter, s, label; - for (i = 0; i < series.length; ++i) { + for (var i = 0; i < series.length; ++i) { s = series[i]; label = s.label; if (!label)