From 6adf5200434b306caf164652c7892b7e93a163b5 Mon Sep 17 00:00:00 2001 From: bzabos Date: Thu, 4 Sep 2014 11:34:43 -0600 Subject: [PATCH] Update val to be min when less, max when greater. --- js/jquery.knob.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/jquery.knob.js b/js/jquery.knob.js index 163847b..3da6d59 100755 --- a/js/jquery.knob.js +++ b/js/jquery.knob.js @@ -670,8 +670,8 @@ }; this.init = function () { - if (this.v < this.o.min - || this.v > this.o.max) { this.v = this.o.min; } + if (this.v < this.o.min) {this.v = this.o.min} + if (this.v > this.o.max) {this.v = this.o.max} this.$.val(this.v); this.w2 = this.w / 2;