Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2894 from MauriceG/patch-3
Browse files Browse the repository at this point in the history
Fix for #2893: Buttons keep ui-btn-down-x class if leaved with mouse button pressed
  • Loading branch information
gseguin committed Nov 9, 2011
2 parents 1d41092 + 3080b2a commit 1b2f1d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery.mobile.buttonMarkup.js
Expand Up @@ -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 );
}
}
});
Expand Down

0 comments on commit 1b2f1d8

Please sign in to comment.