Skip to content

Commit 9cdced8

Browse files
committed
Slider: Remove optionDemultiplexer.
1 parent 0ef6d39 commit 9cdced8

File tree

1 file changed

+31
-2
lines changed

1 file changed

+31
-2
lines changed

js/widgets/forms/slider.js

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ define( [ "jquery",
99
"../../jquery.mobile.core",
1010
"../../jquery.mobile.widget",
1111
"./textinput",
12-
"../optionDemultiplexer",
1312
"./reset" ], function( jQuery ) {
1413
//>>excludeEnd("jqmBuildExclude");
1514
(function( $, undefined ) {
@@ -178,6 +177,36 @@ $.widget( "mobile.slider", $.extend( {
178177
this.refresh( undefined, undefined, true );
179178
},
180179

180+
_setOptions: function( options ) {
181+
var closeButtonLocation, closeButtonText,
182+
currentOpts = this.options;
183+
184+
if ( options.theme !== undefined ) {
185+
this._setTheme( options.theme );
186+
}
187+
188+
if ( options.trackTheme !== undefined ) {
189+
this._setTrackTheme( options.trackTheme );
190+
}
191+
192+
if ( options.corners !== undefined ) {
193+
this._setCorners( options.corners );
194+
}
195+
196+
if ( options.mini !== undefined ) {
197+
this._setMini( options.mini );
198+
}
199+
200+
if ( options.highlight !== undefined ) {
201+
this._setHighlight( options.highlight );
202+
}
203+
204+
if ( options.disabled !== undefined ) {
205+
this._setDisabled( options.disabled );
206+
}
207+
this._super( options );
208+
},
209+
181210
_controlChange: function( event ) {
182211
// if the user dragged the handle, the "change" event was triggered from inside refresh(); don't call refresh() again
183212
if ( this._trigger( "controlchange", event ) === false ) {
@@ -558,7 +587,7 @@ $.widget( "mobile.slider", $.extend( {
558587
this.slider.toggleClass( "ui-disabled", value ).attr( "aria-disabled", value );
559588
}
560589

561-
}, $.mobile.behaviors.formReset, $.mobile.behaviors.optionDemultiplexer ) );
590+
}, $.mobile.behaviors.formReset ) );
562591

563592
$.mobile.slider.initSelector = "input[type='range'], :jqmData(type='range'), :jqmData(role='slider')";
564593

0 commit comments

Comments
 (0)