diff --git a/js/jquery.mobile.navigation.js b/js/jquery.mobile.navigation.js index 614f360d..89344381 100644 --- a/js/jquery.mobile.navigation.js +++ b/js/jquery.mobile.navigation.js @@ -772,15 +772,16 @@ return false; } + $activeClickedLink = $this.closest( ".ui-btn" ); //prevent # urls from bubbling //path.get() is replaced to combat abs url prefixing in IE if( url.replace(path.get(), "") == "#" ){ //for links created purely for interaction - ignore event.preventDefault(); + window.setTimeout(function() {removeActiveLinkClass(true);}, 200); return; } - $activeClickedLink = $this.closest( ".ui-btn" ); if( isExternal || hasAjaxDisabled || hasTarget || !$.mobile.ajaxEnabled || // TODO: deprecated - remove at 1.0