mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-29 12:10:26 +00:00
improved check for activePageLink existence
This commit is contained in:
parent
bb5708e543
commit
3cc1c76d9d
1 changed files with 1 additions and 1 deletions
|
|
@ -216,7 +216,7 @@
|
|||
|
||||
//remove active classes after page transition or error
|
||||
function removeActiveLinkClass(forceRemoval){
|
||||
if(activeClickedLink && (!activeClickedLink.closest( '.ui-page-active' ).length) || forceRemoval ){
|
||||
if( !!activeClickedLink && (!activeClickedLink.closest( '.ui-page-active' ).length || forceRemoval )){
|
||||
activeClickedLink.removeClass( activeBtnClass );
|
||||
}
|
||||
activeClickedLink = null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue