Commit 4c86903b authored by David Schnur's avatar David Schnur

Logic tweak to save a few bytes.

parent e4c035b3
...@@ -139,7 +139,7 @@ The plugin also adds four public methods: ...@@ -139,7 +139,7 @@ The plugin also adds four public methods:
ctx.translate(plotOffset.left, plotOffset.top); ctx.translate(plotOffset.left, plotOffset.top);
if (crosshair.x != -1) { 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.strokeStyle = c.color;
ctx.lineWidth = c.lineWidth; ctx.lineWidth = c.lineWidth;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment