Short-circuit when removing all highlights.

There's no need to continue in the function when all highlights are
being cleared.
pull/1/head
David Schnur 13 years ago
parent eee071c47d
commit 5741f26756

@ -2839,6 +2839,7 @@ Licensed under the MIT license.
if (s == null && point == null) {
highlights = [];
triggerRedrawOverlay();
return;
}
if (typeof s == "number")

Loading…
Cancel
Save