Permalink
Browse files

Navigation: add check that active.url actually exists

  • Loading branch information...
1 parent 0e3c523 commit 7fb2c7b709f5ac7c833d01995fb839cecb7a0cf7 @lobbin lobbin committed with gabrielschulhof Sep 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/jquery.mobile.navigation.js
@@ -1116,7 +1116,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 7fb2c7b

Please sign in to comment.