Permalink
Browse files

Fix highlight and unhighlight inconsistency.

The unhighlight method retrieved the point differently from highlight,
and incorrectly.  It now matches the behavior of highlight.
  • Loading branch information...
1 parent aeddf4e commit eee071c47d8c0076df7f91b65de90a69ab022766 @dnschnur dnschnur committed Mar 12, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 jquery.flot.js
View
@@ -2844,8 +2844,10 @@ Licensed under the MIT license.
if (typeof s == "number")
s = series[s];
- if (typeof point == "number")
- point = s.data[point];
+ if (typeof point == "number") {
+ var ps = s.datapoints.pointsize;
+ point = s.datapoints.points.slice(ps * point, ps * (point + 1));
+ }
var i = indexOfHighlight(s, point);
if (i != -1) {

1 comment on commit eee071c

Owner

dnschnur commented on eee071c Mar 12, 2013

Resolves #987.

Please sign in to comment.