From 7fb2c7b709f5ac7c833d01995fb839cecb7a0cf7 Mon Sep 17 00:00:00 2001 From: Robin Helgelin Date: Mon, 3 Sep 2012 10:43:26 +0200 Subject: [PATCH] Navigation: add check that active.url actually exists --- js/jquery.mobile.navigation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.mobile.navigation.js b/js/jquery.mobile.navigation.js index 2be7646ceee..d4c1f425285 100644 --- a/js/jquery.mobile.navigation.js +++ b/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; }