From 43633207677c2ea478fb7dd6434134faf2eceea8 Mon Sep 17 00:00:00 2001 From: "olau@iola.dk" Date: Tue, 14 Dec 2010 17:50:11 +0000 Subject: [PATCH] Fix bug with unhighlighting slices (fix by Johan Sall Larson) git-svn-id: https://flot.googlecode.com/svn/trunk@279 1e0a6537-2640-0410-bfb7-f154510ff394 --- jquery.flot.pie.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/jquery.flot.pie.js b/jquery.flot.pie.js index ed01cf2..4b1a074 100644 --- a/jquery.flot.pie.js +++ b/jquery.flot.pie.js @@ -607,12 +607,9 @@ More detail and specific examples can be found in the included HTML file. } } - // if no slice was found, quit - if (!item) - return; - // highlight the slice - highlight(item.series, eventname); + if (item) + highlight(item.series, eventname); // trigger any hover bind events var pos = { pageX: e.pageX, pageY: e.pageY }; @@ -750,4 +747,4 @@ More detail and specific examples can be found in the included HTML file. name: "pie", version: "1.0" }); -})(jQuery); \ No newline at end of file +})(jQuery);