diff --git a/js/jquery.mobile.forms.select.js b/js/jquery.mobile.forms.select.js index 28eb927d..6821c3a2 100644 --- a/js/jquery.mobile.forms.select.js +++ b/js/jquery.mobile.forms.select.js @@ -4,63 +4,60 @@ * Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses. * Note: Code is in draft form and is subject to change */ -(function($){ -$.fn.customSelect = function(options){ - return $(this).each(function(){ - var select = $(this) +(function ( $ ) { +$.widget( "mobile.selectmenu", $.mobile.widget, { + options: { + theme: undefined + }, + _create: function(){ + var select = this.element .attr( "tabindex", "-1" ) .wrap( "