move slider to enhanceWith

This commit is contained in:
John Bender 2011-10-10 14:07:40 -07:00
parent 63ab61cb89
commit 404010839d

View file

@ -316,11 +316,7 @@ $.widget( "mobile.slider", $.mobile.widget, {
//auto self-init widgets
$( document ).bind( "pagecreate create", function( e ){
$( $.mobile.slider.prototype.options.initSelector, e.target )
.not( ":jqmData(role='none'), :jqmData(role='nojs')" )
.slider();
$.mobile.slider.prototype.enhanceWithin( e.target );
});
})( jQuery );