mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
prefixed var with $
This commit is contained in:
parent
02e6e5f26b
commit
0972d65e04
1 changed files with 5 additions and 5 deletions
|
|
@ -96,7 +96,7 @@
|
|||
$pageContainer,
|
||||
|
||||
//will be defined when a link is clicked and given an active class
|
||||
activeClickedLink = null,
|
||||
$activeClickedLink = null,
|
||||
|
||||
//array of pages that are visited during a single page load
|
||||
//length will grow as pages are visited, and shrink as "back" link/button is clicked
|
||||
|
|
@ -209,7 +209,7 @@
|
|||
return false;
|
||||
}
|
||||
|
||||
activeClickedLink = $this.closest( ".ui-btn" ).addClass( $.mobile.activeBtnClass );
|
||||
$activeClickedLink = $this.closest( ".ui-btn" ).addClass( $.mobile.activeBtnClass );
|
||||
|
||||
if( external || !$.mobile.ajaxLinksEnabled ){
|
||||
//deliberately redirect, in case click was triggered
|
||||
|
|
@ -283,10 +283,10 @@
|
|||
|
||||
//remove active classes after page transition or error
|
||||
function removeActiveLinkClass(forceRemoval){
|
||||
if( !!activeClickedLink && (!activeClickedLink.closest( '.ui-page-active' ).length || forceRemoval )){
|
||||
activeClickedLink.removeClass( $.mobile.activeBtnClass );
|
||||
if( !!$activeClickedLink && (!$activeClickedLink.closest( '.ui-page-active' ).length || forceRemoval )){
|
||||
$activeClickedLink.removeClass( $.mobile.activeBtnClass );
|
||||
}
|
||||
activeClickedLink = null;
|
||||
$activeClickedLink = null;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue