aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-03-28 17:34:04 -0400
committerScott González <scott.gonzalez@gmail.com>2011-03-28 17:34:04 -0400
commit2197c61f1f91a7b5046fb994d370f38ded602ee6 (patch)
treebb114c9669bcb816f35a509331b92a549b8c72f0 /ui
parentd236c0d6e1ecf9755624ce1f033ba648124c219e (diff)
downloadjquery-ui-2197c61f1f91a7b5046fb994d370f38ded602ee6.tar.gz
jquery-ui-2197c61f1f91a7b5046fb994d370f38ded602ee6.zip
Slider: Properly handle value and value methods as setters. Fixes #4881 - Slider: value and values methods as setters aren't chainable.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.slider.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/jquery.ui.slider.js b/ui/jquery.ui.slider.js
index 38c5996d0..eb6545f62 100644
--- a/ui/jquery.ui.slider.js
+++ b/ui/jquery.ui.slider.js
@@ -466,6 +466,7 @@ $.widget( "ui.slider", $.ui.mouse, {
this.options.value = this._trimAlignValue( newValue );
this._refreshValue();
this._change( null, 0 );
+ return;
}
return this._value();
@@ -480,6 +481,7 @@ $.widget( "ui.slider", $.ui.mouse, {
this.options.values[ index ] = this._trimAlignValue( newValue );
this._refreshValue();
this._change( null, index );
+ return;
}
if ( arguments.length ) {