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

Commit 7e8ea36

Browse files
lobbinGabriel Schulhof
authored andcommitted
Navigation: add check that active.url actually exists
1 parent fef41bb commit 7e8ea36

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

0 commit comments

Comments
 (0)