Permalink
Browse files

Revert "added option 'angleAperture' || default = 360"

This reverts commit babc6fc.
  • Loading branch information...
1 parent babc6fc commit 4bf72f722b290cbd2365fa35cc1e28f7ac102d9e @FabrizioC committed Jun 27, 2012
Showing with 2 additions and 3 deletions.
  1. BIN .DS_Store
  2. +2 −3 js/jquery.knob.js
View
BIN .DS_Store
Binary file not shown.
View
@@ -49,7 +49,7 @@ $(function () {
};
this.angle = function (nv) {
- return (nv - opt.min) * opt.angleAperture / (opt.max - opt.min);
+ return (nv - opt.min) * PI2 / (opt.max - opt.min);
};
this.draw = function (nv) {
@@ -242,8 +242,7 @@ $(function () {
,'tickWidth' : $this.data('tickWidth') || 0.02
,'tickColorizeValues' : $this.data('tickColorizeValues') || true
,'skin' : $this.data('skin') || 'default'
- ,'angleOffset': degreeToRadians($this.data('angleoffset'))
- ,'angleAperture': degreeToRadians($this.data('angleaperture')) || 2 * Math.PI
+ ,'angleOffset': degreeToRadians($this.data('angleoffset'))
// Hooks
,'draw' :

0 comments on commit 4bf72f7

Please sign in to comment.