From 3e2760ebe41b593327eaa5e8e0517044f6ef8a93 Mon Sep 17 00:00:00 2001 From: ido tal Date: Wed, 2 Jul 2014 02:23:08 +0300 Subject: [PATCH] Fix #160 --- js/jquery.knob.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/js/jquery.knob.js b/js/jquery.knob.js index 57bbcf4..7cb406e 100755 --- a/js/jquery.knob.js +++ b/js/jquery.knob.js @@ -760,10 +760,12 @@ c.lineWidth = this.lineWidth; c.lineCap = this.lineCap; - c.beginPath(); - c.strokeStyle = this.o.bgColor; - c.arc(this.xy, this.xy, this.radius, this.endAngle - 0.00001, this.startAngle + 0.00001, true); - c.stroke(); + if (this.o.bgColor !== "none") { + c.beginPath(); + c.strokeStyle = this.o.bgColor; + c.arc(this.xy, this.xy, this.radius, this.endAngle - 0.00001, this.startAngle + 0.00001, true); + c.stroke(); + } if (this.o.displayPrevious) { pa = this.arc(this.v);