From 3080b2a9c4fd7d39bd504c257ac97f2e1e7a9ef4 Mon Sep 17 00:00:00 2001 From: Maurice Gottlieb Date: Tue, 1 Nov 2011 14:34:53 +0100 Subject: [PATCH] removing now also the ui-btn-down-x class when button loses focus --- js/jquery.mobile.buttonMarkup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.mobile.buttonMarkup.js b/js/jquery.mobile.buttonMarkup.js index be891837dbb..2ee8a5e33f4 100644 --- a/js/jquery.mobile.buttonMarkup.js +++ b/js/jquery.mobile.buttonMarkup.js @@ -165,7 +165,7 @@ var attachEvents = function() { if ( btn ) { $btn = $( btn ); theme = $btn.attr( "data-" + $.mobile.ns + "theme" ); - $btn.removeClass( "ui-btn-hover-" + theme ).addClass( "ui-btn-up-" + theme ); + $btn.removeClass( "ui-btn-hover-" + theme + " ui-btn-down-" + theme ).addClass( "ui-btn-up-" + theme ); } } });