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

Commit e23d56d

Browse files
author
Gabriel Schulhof
committed
Init: Eliminate FF warning
Fixes gh-7589
1 parent 8ea937f commit e23d56d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/jquery.mobile.init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ define([
5858
$pages = $( ":jqmData(role='page'), :jqmData(role='dialog')" ),
5959
hash = path.stripHash( path.stripQueryParams(path.parseLocation().hash) ),
6060
theLocation = $.mobile.path.parseLocation(),
61-
hashPage = document.getElementById( hash );
61+
hashPage = hash ? document.getElementById( hash ) : undefined;
6262

6363
// if no pages are found, create one with body's inner html
6464
if ( !$pages.length ) {

0 commit comments

Comments
 (0)