From 05f5c62e457085ab4234c27077c8ee297b43dbb2 Mon Sep 17 00:00:00 2001 From: "olau@iola.dk" Date: Thu, 18 Sep 2008 09:10:11 +0000 Subject: [PATCH] Fixed missing var declaration causing trouble in IE, reworded interacting example git-svn-id: https://flot.googlecode.com/svn/trunk@87 1e0a6537-2640-0410-bfb7-f154510ff394 --- examples/interacting.html | 4 ++-- jquery.flot.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/interacting.html b/examples/interacting.html index 969e38f..b5c8003 100644 --- a/examples/interacting.html +++ b/examples/interacting.html @@ -13,8 +13,8 @@
-

One of the goals of Flot is to support user interactions intelligently. - Try mousing the above plot.

+

One of the goals of Flot is to support user interactions. Try + pointing and clicking on the points.

Mouse hovers at (0, 0).

diff --git a/jquery.flot.js b/jquery.flot.js index e8a5cf4..f2371fd 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -1600,8 +1600,8 @@ pos.x2 = x2axis.c2p(canvasX); if (y2axis.used) pos.y2 = y2axis.c2p(canvasY); - - item = findNearbyItem(canvasX, canvasY); + + var item = findNearbyItem(canvasX, canvasY); if (item) { // fill in mouse pos for any listeners out there