move checkbox radio to enhanceWithin

This commit is contained in:
John Bender 2011-10-10 13:49:55 -07:00
parent 18737f4940
commit aa16aec358

View file

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