Skip to content

Commit e286808

Browse files
committed
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.
1 parent 963a84c commit e286808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/jquery.mobile.navigation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@
329329
documentBase = $base.length ? path.parseUrl( path.makeUrlAbsolute( $base.attr( "href" ), documentUrl.href ) ) : documentUrl,
330330

331331
//cache the comparison once.
332-
documentBaseDiffers = ( documentUrl.hrefNoHash === documentBase.hrefNoHash );
332+
documentBaseDiffers = ( documentUrl.hrefNoHash !== documentBase.hrefNoHash );
333333

334334
//base element management, defined depending on dynamic base tag support
335335
var base = $.support.dynamicBaseTag ? {

0 commit comments

Comments
 (0)