From 4c86903b99fd95b4dbb35c0d00d0147063f825a2 Mon Sep 17 00:00:00 2001 From: David Schnur Date: Sat, 21 Dec 2013 03:45:32 -0800 Subject: [PATCH] Logic tweak to save a few bytes. --- jquery.flot.crosshair.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.flot.crosshair.js b/jquery.flot.crosshair.js index c5df9d9..9aaf677 100644 --- a/jquery.flot.crosshair.js +++ b/jquery.flot.crosshair.js @@ -139,7 +139,7 @@ The plugin also adds four public methods: ctx.translate(plotOffset.left, plotOffset.top); if (crosshair.x != -1) { - var adj = plot.getOptions().crosshair.lineWidth % 2 === 0 ? 0 : 0.5; + var adj = plot.getOptions().crosshair.lineWidth % 2 ? 0.5 : 0; ctx.strokeStyle = c.color; ctx.lineWidth = c.lineWidth;