aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.slider.js
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2009-10-12 11:06:57 +0000
committerRichard Worth <rdworth@gmail.com>2009-10-12 11:06:57 +0000
commit3af7fa81f4a179acb4e1e5c597f1f8d7d08c0b63 (patch)
treeac67e2dd5e6f521c3202556625c6df5462cf1799 /ui/jquery.ui.slider.js
parentb7bf4b4527d3e849b55274e38e62c0d893779a1a (diff)
downloadjquery-ui-3af7fa81f4a179acb4e1e5c597f1f8d7d08c0b63.tar.gz
jquery-ui-3af7fa81f4a179acb4e1e5c597f1f8d7d08c0b63.zip
slider: use internal methods _valueMin() and _valueMax()
Diffstat (limited to 'ui/jquery.ui.slider.js')
-rw-r--r--ui/jquery.ui.slider.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.slider.js b/ui/jquery.ui.slider.js
index f81403540..d27d9afab 100644
--- a/ui/jquery.ui.slider.js
+++ b/ui/jquery.ui.slider.js
@@ -410,8 +410,8 @@ $.widget("ui.slider", $.extend({}, $.ui.mouse, {
value: function(newValue) {
if (arguments.length) {
- newValue = newValue >= this.options.min ? newValue : this.options.min;
- newValue = newValue <= this.options.max ? newValue : this.options.max;
+ if (newValue < this._valueMin()) newValue = this._valueMin();
+ if (newValue > this._valueMax()) newValue = this._valueMax();
this.options.value = newValue;
this._refreshValue();
this._change(null, 0);