mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-22 07:04:43 +00:00
Update to buttonMarkup to use appropriate data selector
This commit is contained in:
parent
87db1cf5de
commit
57ac32ffc6
1 changed files with 2 additions and 2 deletions
|
|
@ -30,8 +30,8 @@ $.fn.buttonMarkup = function( options ) {
|
|||
buttonIcon = o.icon ? document.createElement( "span" ) : null;
|
||||
|
||||
// if so, prevent double enhancement, and continue with rest of the elements.
|
||||
if( e.tagName === "INPUT" && e.getAttribute( "data-role" ) === "button" ) continue;
|
||||
|
||||
if( e.tagName === "INPUT" && el.jqmData('role') === "button" ) continue;
|
||||
|
||||
// if this is a button, check if it's been enhanced and, if not, use the right function
|
||||
if( e.tagName === "BUTTON" ) {
|
||||
if ( !$( e.parentNode ).hasClass( "ui-btn" ) ) $( e ).button();
|
||||
|
|
|
|||
Loading…
Reference in a new issue