diff options
Diffstat (limited to 'ui/jquery.ui.slider.js')
-rw-r--r-- | ui/jquery.ui.slider.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/jquery.ui.slider.js b/ui/jquery.ui.slider.js index ca2dad2eb..84dc9633c 100644 --- a/ui/jquery.ui.slider.js +++ b/ui/jquery.ui.slider.js @@ -405,6 +405,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; this._setData("value", newValue); this._change(null, 0); } |