From e286808391438193d05fdec294bfa2373a71cac7 Mon Sep 17 00:00:00 2001 From: Kin Blas Date: Fri, 10 Jun 2011 16:13:58 -0700 Subject: [PATCH] Rule of thumb ... get your logic right and your code will behave as you expect. - I should've been using !== instead === when figuring out docBaseDiffers. --- js/jquery.mobile.navigation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.mobile.navigation.js b/js/jquery.mobile.navigation.js index 25b3bf73..6e706a64 100644 --- a/js/jquery.mobile.navigation.js +++ b/js/jquery.mobile.navigation.js @@ -329,7 +329,7 @@ documentBase = $base.length ? path.parseUrl( path.makeUrlAbsolute( $base.attr( "href" ), documentUrl.href ) ) : documentUrl, //cache the comparison once. - documentBaseDiffers = ( documentUrl.hrefNoHash === documentBase.hrefNoHash ); + documentBaseDiffers = ( documentUrl.hrefNoHash !== documentBase.hrefNoHash ); //base element management, defined depending on dynamic base tag support var base = $.support.dynamicBaseTag ? {