Permalink
Browse files

Init: Eliminate FF warning

Fixes gh-7589
  • Loading branch information...
1 parent 8ea937f commit e23d56dc6583710e93e98cc6d843489a7c401ac8 @gabrielschulhof gabrielschulhof committed Jul 29, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/jquery.mobile.init.js
@@ -58,7 +58,7 @@ define([
$pages = $( ":jqmData(role='page'), :jqmData(role='dialog')" ),
hash = path.stripHash( path.stripQueryParams(path.parseLocation().hash) ),
theLocation = $.mobile.path.parseLocation(),
- hashPage = document.getElementById( hash );
+ hashPage = hash ? document.getElementById( hash ) : undefined;
// if no pages are found, create one with body's inner html
if ( !$pages.length ) {

0 comments on commit e23d56d

Please sign in to comment.