From 8dd766dbced8b4d5e1a7f71f549337eb19f0b6f2 Mon Sep 17 00:00:00 2001 From: Kin Blas Date: Wed, 9 Mar 2011 14:13:26 -0800 Subject: [PATCH] Removed experimental setting of the ui-btn-active class on button down. This breaks feedback on checkboxes and radios. --- js/jquery.mobile.buttonMarkup.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/jquery.mobile.buttonMarkup.js b/js/jquery.mobile.buttonMarkup.js index 2cd272ef..b2c0e6b7 100644 --- a/js/jquery.mobile.buttonMarkup.js +++ b/js/jquery.mobile.buttonMarkup.js @@ -85,11 +85,11 @@ var attachEvents = function() { $(".ui-btn:not(.ui-disabled)").live({ "vmousedown": function() { var theme = $(this).attr( "data-theme" ); - $(this).removeClass( "ui-btn-up-" + theme ).addClass( "ui-btn-down-" + theme + " " + $.mobile.activeBtnClass); + $(this).removeClass( "ui-btn-up-" + theme ).addClass( "ui-btn-down-" + theme ); }, "vmousecancel vmouseup": function() { var theme = $(this).attr( "data-theme" ); - $(this).removeClass( "ui-btn-down-" + theme + " " + $.mobile.activeBtnClass ).addClass( "ui-btn-up-" + theme ); + $(this).removeClass( "ui-btn-down-" + theme ).addClass( "ui-btn-up-" + theme ); }, "vmouseover focus": function() { var theme = $(this).attr( "data-theme" ); @@ -97,7 +97,7 @@ var attachEvents = function() { }, "vmouseout blur": function() { var theme = $(this).attr( "data-theme" ); - $(this).removeClass( "ui-btn-hover-" + theme + " " + $.mobile.activeBtnClass ).addClass( "ui-btn-up-" + theme ); + $(this).removeClass( "ui-btn-hover-" + theme ).addClass( "ui-btn-up-" + theme ); } });