Permalink
Browse files

Navigation: add check that active.url actually exists

  • Loading branch information...
1 parent fef41bb commit 7e8ea3601d9f482ccd08092591e1a98d5aca1880 @lobbin lobbin committed with gabrielschulhof Sep 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/jquery.mobile.navigation.js
@@ -1119,7 +1119,7 @@ define( [
// However, if a dialog is already displayed at this point, and we're
// about to display another dialog, then we must add another hash and
// history entry on top so that one may navigate back to the original dialog
- if ( active.url.indexOf( dialogHashKey ) > -1 && !$.mobile.activePage.is( ".ui-dialog" ) ) {
+ if ( active.url && active.url.indexOf( dialogHashKey ) > -1 && !$.mobile.activePage.is( ".ui-dialog" ) ) {
settings.changeHash = false;
alreadyThere = true;
}

0 comments on commit 7e8ea36

Please sign in to comment.