From 8310d185b3a5fc8f433f0736a22298e84ac73f7d Mon Sep 17 00:00:00 2001 From: Scott González Date: Mon, 28 Mar 2011 17:34:04 -0400 Subject: Slider: Properly handle value and value methods as setters. Fixes #4881 - Slider: value and values methods as setters aren't chainable. (cherry picked from commit 2197c61f1f91a7b5046fb994d370f38ded602ee6) --- ui/jquery.ui.slider.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui') diff --git a/ui/jquery.ui.slider.js b/ui/jquery.ui.slider.js index f6bc57025..a32e77966 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 ) { -- cgit v1.2.3