From b72efb3bec8757019f77000ebc22a8ca070fdb4b Mon Sep 17 00:00:00 2001 From: Ghislain Seguin Date: Thu, 1 Dec 2011 17:15:52 -0800 Subject: [PATCH] Removed dep on jqm.core --- js/jquery.mobile.buttonMarkup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/jquery.mobile.buttonMarkup.js b/js/jquery.mobile.buttonMarkup.js index 4356811d..a2d0832b 100755 --- a/js/jquery.mobile.buttonMarkup.js +++ b/js/jquery.mobile.buttonMarkup.js @@ -2,7 +2,7 @@ * "buttons" plugin - for making button-like links */ -define( [ "jquery", "jquery.mobile.core", "jquery.mobile.vmouse" ], function( $, undefined ) { +define( [ "jquery", "jquery.mobile.vmouse" ], function( $, undefined ) { $.fn.buttonMarkup = function( options ) { options = options || {}; @@ -73,7 +73,7 @@ $.fn.buttonMarkup = function( options ) { } e.setAttribute( "data-" + $.mobile.ns + "theme", o.theme ); - el.addClass( buttonClass ); + el.removeClass( "ui-link" ).addClass( buttonClass ); buttonInner.className = innerClass; buttonInner.setAttribute("aria-hidden", "true");