Skip to content

Commit 66eb4d3

Browse files
author
root
committed
precond thickness opt aterrien#121
1 parent bfa2aba commit 66eb4d3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

js/jquery.knob.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,11 @@
9898
cursor : (this.$.data('cursor') === true && 30)
9999
|| this.$.data('cursor')
100100
|| 0,
101-
thickness : this.$.data('thickness') || 0.35,
101+
thickness : (
102+
this.$.data('thickness')
103+
&& Math.max(Math.min(this.$.data('thickness'), 1), 0.01)
104+
)
105+
|| 0.35,
102106
lineCap : this.$.data('linecap') || 'butt',
103107
width : this.$.data('width') || 200,
104108
height : this.$.data('height') || 200,

0 commit comments

Comments
 (0)