mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-27 07:13:59 +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,
|
$pageContainer,
|
||||||
|
|
||||||
//will be defined when a link is clicked and given an active class
|
//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
|
//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
|
//length will grow as pages are visited, and shrink as "back" link/button is clicked
|
||||||
|
|
@ -209,7 +209,7 @@
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
activeClickedLink = $this.closest( ".ui-btn" ).addClass( $.mobile.activeBtnClass );
|
$activeClickedLink = $this.closest( ".ui-btn" ).addClass( $.mobile.activeBtnClass );
|
||||||
|
|
||||||
if( external || !$.mobile.ajaxLinksEnabled ){
|
if( external || !$.mobile.ajaxLinksEnabled ){
|
||||||
//deliberately redirect, in case click was triggered
|
//deliberately redirect, in case click was triggered
|
||||||
|
|
@ -283,10 +283,10 @@
|
||||||
|
|
||||||
//remove active classes after page transition or error
|
//remove active classes after page transition or error
|
||||||
function removeActiveLinkClass(forceRemoval){
|
function removeActiveLinkClass(forceRemoval){
|
||||||
if( !!activeClickedLink && (!activeClickedLink.closest( '.ui-page-active' ).length || forceRemoval )){
|
if( !!$activeClickedLink && (!$activeClickedLink.closest( '.ui-page-active' ).length || forceRemoval )){
|
||||||
activeClickedLink.removeClass( $.mobile.activeBtnClass );
|
$activeClickedLink.removeClass( $.mobile.activeBtnClass );
|
||||||
}
|
}
|
||||||
activeClickedLink = null;
|
$activeClickedLink = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue