From 5741f26756e764a32f60e172215ffed93bca231c Mon Sep 17 00:00:00 2001 From: David Schnur Date: Mon, 11 Mar 2013 22:17:56 -0400 Subject: [PATCH] Short-circuit when removing all highlights. There's no need to continue in the function when all highlights are being cleared. --- jquery.flot.js | 1 + 1 file changed, 1 insertion(+) diff --git a/jquery.flot.js b/jquery.flot.js index 408af04..8b008ff 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -2839,6 +2839,7 @@ Licensed under the MIT license. if (s == null && point == null) { highlights = []; triggerRedrawOverlay(); + return; } if (typeof s == "number")