From a8202d240dca6bb892686b5fdf2c9412c4c1efec Mon Sep 17 00:00:00 2001 From: John Bender Date: Mon, 31 Oct 2011 13:24:17 -0700 Subject: [PATCH] reference the buttonMarkup text wrapper element through data --- js/jquery.mobile.buttonMarkup.js | 12 +++++++++--- js/jquery.mobile.forms.button.js | 4 +++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/js/jquery.mobile.buttonMarkup.js b/js/jquery.mobile.buttonMarkup.js index dc0af097..9ddf9cfd 100644 --- a/js/jquery.mobile.buttonMarkup.js +++ b/js/jquery.mobile.buttonMarkup.js @@ -21,6 +21,7 @@ $.fn.buttonMarkup = function( options ) { // Classes Defined innerClass = "ui-btn-inner", + textClass = "ui-btn-text", buttonClass, iconClass, wrap; @@ -70,11 +71,16 @@ $.fn.buttonMarkup = function( options ) { el.attr( "data-" + $.mobile.ns + "theme", o.theme ) .addClass( buttonClass ); - wrap = ( "