Permalink
Browse files

Slider: Move triggering before change to fix regression with highligh…

…t breaking out on track click with rangeslider.
  • Loading branch information...
1 parent 236cc14 commit a067c40e836b9a2248b10e3771e6b86e9b7484c7 Alexander Schmitz committed Dec 26, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 js/widgets/forms/slider.js
@@ -483,12 +483,11 @@ $.widget( "mobile.slider", $.mobile.widget, {
valueChanged = control[ 0 ].selectedIndex !== newval;
control[ 0 ].selectedIndex = newval;
}
- if ( !isfromControl && valueChanged ) {
- if ( this._trigger( "beforechange", event ) === false) {
+ if ( this._trigger( "beforechange", event ) === false) {
return false;
- }
+ }
+ if ( !isfromControl && valueChanged ) {
control.trigger( "change" );
-
}
}
},

0 comments on commit a067c40

Please sign in to comment.