Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
move value tracking into the refresh to make sure its captured as oft…
Browse files Browse the repository at this point in the history
…en as possible
  • Loading branch information
johnbender committed Jul 27, 2012
1 parent 6a12b15 commit 7ac65eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/widgets/forms/slider.js
Expand Up @@ -311,7 +311,6 @@ $.widget( "mobile.slider", $.mobile.widget, {
_checkedRefresh: function() {
if( this.value != this._value() ){
this.refresh( this._value() );
this.value = this._value();
}
},

Expand All @@ -326,6 +325,9 @@ $.widget( "mobile.slider", $.mobile.widget, {
this.disable();
}

// set the stored value for comparison later
this.value = this._value();

var control = this.element, percent,
cType = control[0].nodeName.toLowerCase(),
min = cType === "input" ? parseFloat( control.attr( "min" ) ) : 0,
Expand Down

0 comments on commit 7ac65eb

Please sign in to comment.