Logic tweak to save a few bytes.

master
David Schnur 12 years ago
parent e4c035b37d
commit 4c86903b99

@ -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;

Loading…
Cancel
Save