prefixed var with $

This commit is contained in:
scottjehl 2010-11-07 15:03:40 -05:00
parent 02e6e5f26b
commit 0972d65e04

View file

@ -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;
} }