Permalink
Browse files

Short-circuit when removing all highlights.

There's no need to continue in the function when all highlights are
being cleared.
  • Loading branch information...
1 parent eee071c commit 5741f26756e764a32f60e172215ffed93bca231c @dnschnur dnschnur committed Mar 12, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 jquery.flot.js
View
@@ -2839,6 +2839,7 @@ Licensed under the MIT license.
if (s == null && point == null) {
highlights = [];
triggerRedrawOverlay();
+ return;
}
if (typeof s == "number")

0 comments on commit 5741f26

Please sign in to comment.