Skip to content
This repository
Browse code

Short-circuit when removing all highlights.

There's no need to continue in the function when all highlights are
being cleared.
  • Loading branch information...
commit 5741f26756e764a32f60e172215ffed93bca231c 1 parent eee071c
David Schnur authored March 11, 2013

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  jquery.flot.js
1  jquery.flot.js
@@ -2839,6 +2839,7 @@ Licensed under the MIT license.
2839 2839
             if (s == null && point == null) {
2840 2840
                 highlights = [];
2841 2841
                 triggerRedrawOverlay();
  2842
+                return;
2842 2843
             }
2843 2844
 
2844 2845
             if (typeof s == "number")

0 notes on commit 5741f26

Please sign in to comment.
Something went wrong with that request. Please try again.