Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 7fb2c7b

Browse files
lobbinGabriel Schulhof
authored and
Gabriel Schulhof
committed
Navigation: add check that active.url actually exists
1 parent 0e3c523 commit 7fb2c7b

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
@@ -1116,7 +1116,7 @@ define( [
11161116
// However, if a dialog is already displayed at this point, and we're
11171117
// about to display another dialog, then we must add another hash and
11181118
// history entry on top so that one may navigate back to the original dialog
1119-
if ( active.url.indexOf( dialogHashKey ) > -1 && !$.mobile.activePage.is( ".ui-dialog" ) ) {
1119+
if ( active.url && active.url.indexOf( dialogHashKey ) > -1 && !$.mobile.activePage.is( ".ui-dialog" ) ) {
11201120
settings.changeHash = false;
11211121
alreadyThere = true;
11221122
}

0 commit comments

Comments
 (0)