Permalink
Browse files

Rangeslider: Implement Classes Option

Fixes gh-7717
Closes gh-8116
  • Loading branch information...
cgack authored and arschmitz committed Apr 17, 2015
1 parent 0a44599 commit 3e9fa717d531d372c36ae42077f8a7ba9f7d5a12
@@ -23,6 +23,9 @@ module.exports = {
"js/widgets/forms/flipswitch.js",
"js/widgets/forms/flipswitch.backcompat.js",
"tests/unit/flipswitch/*.js",
"js/widgets/forms/rangeslider.js",
"js/widgets/forms/rangeslider.backcompat.js",
"js/tests/unit/rangeslider/*.js",
"js/widgets/controlgroup.js",
"js/widgets/controlgroup.backcompat.js",
"js/widgets/tabs.ajax.js",
View
@@ -74,6 +74,7 @@
'widgets/forms/slider.js',
'widgets/forms/slider.tooltip.js',
'widgets/forms/rangeslider.js',
'widgets/forms/rangeslider.backcompat.js',
'widgets/forms/textinput.js',
'widgets/forms/textinput.backcompat.js',
'widgets/forms/clearButton.js',
View
@@ -44,6 +44,7 @@
"./widgets/forms/flipswitch",
"./widgets/forms/flipswitch.backcompat",
"./widgets/forms/rangeslider",
"./widgets/forms/rangeslider.backcompat",
"./widgets/forms/textinput",
"./widgets/forms/textinput.backcompat",
"./widgets/forms/clearButton",
@@ -0,0 +1,46 @@
/*!
* jQuery Mobile Rangeslider Backcompat @VERSION
* http://jquerymobile.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
//>>label: Rangeslider
//>>group: Forms
//>>description: Deprecated rangeslider features
( function( factory ) {
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define( [
"jquery",
"../widget.backcompat",
"./rangeslider" ], factory );
} else {
// Browser globals
factory( jQuery );
}
} )( function( $ ) {
if ( $.mobileBackcompat !== false ) {
$.widget( "mobile.rangeslider", $.mobile.rangeslider, {
options: {
corners: true,
mini: false,
highlight: true
},
classProp: "ui-rangeslider"
} );
$.widget( "mobile.rangeslider", $.mobile.rangeslider, $.mobile.widget.backcompat );
}
return $.mobile.rangeslider;
} );
Oops, something went wrong.

0 comments on commit 3e9fa71

Please sign in to comment.