From 8b9964055324b5014f5fea6147b95818f208b66c Mon Sep 17 00:00:00 2001 From: David Schnur Date: Sat, 1 Dec 2012 08:23:32 -0500 Subject: [PATCH] Declare variables that should have been local. --- jquery.flot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jquery.flot.js b/jquery.flot.js index 8cfa611..2a9c335 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -2293,7 +2293,7 @@ for (var i = 0; i < entries.length; ++i) { - entry = entries[i]; + var entry = entries[i]; if (i % options.legend.noColumns == 0) { if (rowStarted) @@ -2584,7 +2584,7 @@ function drawPointHighlight(series, point) { var x = point[0], y = point[1], - axisx = series.xaxis, axisy = series.yaxis; + axisx = series.xaxis, axisy = series.yaxis, highlightColor = (typeof series.highlightColor === "string") ? series.highlightColor : $.color.parse(series.color).scale('a', 0.5).toString(); if (x < axisx.min || x > axisx.max || y < axisy.min || y > axisy.max)