Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

default emptry string val to 0 on refresh Fixes #3029

  • Loading branch information...
commit cbaa42d63cb8c178ca8d65e9797294920cc427ab 1 parent 5f6ce0d
John Bender johnbender authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  js/jquery.mobile.forms.slider.js
2  js/jquery.mobile.forms.slider.js
View
@@ -269,7 +269,7 @@ $.widget( "mobile.slider", $.mobile.widget, {
percent = Math.round( ( ( data.pageX - this.slider.offset().left ) / this.slider.width() ) * 100 );
} else {
if ( val == null ) {
- val = cType === "input" ? parseFloat( control.val() ) : control[0].selectedIndex;
+ val = cType === "input" ? parseFloat( control.val() || 0 ) : control[0].selectedIndex;
}
percent = ( parseFloat( val ) - min ) / ( max - min ) * 100;
}
Please sign in to comment.
Something went wrong with that request. Please try again.