Commit 43633207 authored by olau@iola.dk's avatar olau@iola.dk

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
parent df745474
...@@ -607,12 +607,9 @@ More detail and specific examples can be found in the included HTML file. ...@@ -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 the slice
highlight(item.series, eventname); if (item)
highlight(item.series, eventname);
// trigger any hover bind events // trigger any hover bind events
var pos = { pageX: e.pageX, pageY: e.pageY }; 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. ...@@ -750,4 +747,4 @@ More detail and specific examples can be found in the included HTML file.
name: "pie", name: "pie",
version: "1.0" version: "1.0"
}); });
})(jQuery); })(jQuery);
\ No newline at end of file
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