Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[popup] Add hashListeningEnabled to the intersection that establishes…

… whether we will use history or not
  • Loading branch information...
commit 8cdc71591b42207289c1888ff0614524f0d590c3 1 parent 5a02567
@gabrielschulhof gabrielschulhof authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/widgets/popup.js
View
4 js/widgets/popup.js
@@ -153,7 +153,7 @@ define( [ "jquery",
// We need to adjust the history option to be false if there's no AJAX nav.
// We can't do it in the option declarations because those are run before
// it is determined whether there shall be AJAX nav.
- this.options.history = this.options.history && $.mobile.ajaxEnabled;
+ this.options.history = this.options.history && $.mobile.ajaxEnabled && $.mobile.hashListeningEnabled;
if ( thisPage.length === 0 ) {
thisPage = $( "body" );
@@ -702,7 +702,7 @@ define( [ "jquery",
// if history alteration is disabled close on navigate events
// and leave the url as is
- if( !( opts.history && $.mobile.hashListeningEnabled ) ) {
+ if( !( opts.history ) ) {
self._open( options );
self._bindContainerClose();
Please sign in to comment.
Something went wrong with that request. Please try again.