Commit 5d68d11b authored by olau@iola.dk's avatar olau@iola.dk

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
parent 8d448106
...@@ -688,7 +688,7 @@ ...@@ -688,7 +688,7 @@
// get the most space needed around the grid for things // get the most space needed around the grid for things
// that may stick out // that may stick out
var maxOutset = options.grid.borderWidth; 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)); maxOutset = Math.max(maxOutset, 2 * (series[i].points.radius + series[i].points.lineWidth/2));
plotOffset.left = plotOffset.right = plotOffset.top = plotOffset.bottom = maxOutset; plotOffset.left = plotOffset.right = plotOffset.top = plotOffset.bottom = maxOutset;
...@@ -826,7 +826,7 @@ ...@@ -826,7 +826,7 @@
minSize = axisOptions.minTickSize[0] * timeUnitSize[axisOptions.minTickSize[1]]; 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]] if (delta < (spec[i][0] * timeUnitSize[spec[i][1]]
+ spec[i + 1][0] * timeUnitSize[spec[i + 1][1]]) / 2 + spec[i + 1][0] * timeUnitSize[spec[i + 1][1]]) / 2
&& spec[i][0] * timeUnitSize[spec[i][1]] >= minSize) && spec[i][0] * timeUnitSize[spec[i][1]] >= minSize)
...@@ -1745,7 +1745,7 @@ ...@@ -1745,7 +1745,7 @@
var fragments = [], rowStarted = false, var fragments = [], rowStarted = false,
lf = options.legend.labelFormatter, s, label; lf = options.legend.labelFormatter, s, label;
for (i = 0; i < series.length; ++i) { for (var i = 0; i < series.length; ++i) {
s = series[i]; s = series[i];
label = s.label; label = s.label;
if (!label) if (!label)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment