Skip to content

Commit 9c1ed14

Browse files
committed
Prevents panels without IDs from being triggered by unrelated links.
1 parent 42477a5 commit 9c1ed14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/widgets/panel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ $.widget( "mobile.panel", $.mobile.widget, {
157157
var self = this;
158158

159159
this._page.on( "click.panel" , "a", function( e ) {
160-
if( this.href.split( "#" )[ 1 ] === self._panelID ){
160+
if( this.href.split( "#" )[ 1 ] === self._panelID && self._panelID !== undefined ){
161161
e.preventDefault();
162162
var $link = $( this );
163163
$link.addClass( $.mobile.activeBtnClass );

0 commit comments

Comments
 (0)