Permalink
Browse files

Navbar: Added comment to code that has been added as workaround.

  • Loading branch information...
1 parent 64143ae commit 1f039e0c58dc015079249e00c6eeb0d773df31ef @jaspermdegroot jaspermdegroot committed Feb 4, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 js/widgets/navbar.js
View
@@ -41,6 +41,7 @@ $.widget( "mobile.navbar", $.mobile.widget, {
if ( !$(event.target).hasClass( "ui-disabled" ) ) {
$navbtns.removeClass( $.mobile.activeBtnClass );
$( this ).addClass( $.mobile.activeBtnClass );
+ // The code below is a workaround to fix #1181. We have to see why removeActiveLinkClass() doesn't take care of it.
var activeNavbtn = $( this );
$( document ).one( "pagechange", function( event ) {
activeNavbtn.removeClass( $.mobile.activeBtnClass );

0 comments on commit 1f039e0

Please sign in to comment.