move button to enhanceWithin

This commit is contained in:
John Bender 2011-10-10 14:12:52 -07:00
parent f368f01a82
commit a4836ec5fd

View file

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