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

Commit

Permalink
Popup: Make it work as a widget on its own. Fixes #5742.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Schulhof committed Mar 10, 2013
1 parent 58e94db commit 6e1eee7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/widgets/popup.js
Expand Up @@ -219,7 +219,7 @@ define( [

// define the container for navigation event bindings
// TODO this would be nice at the the mobile widget level
this.options.container = this.options.container || $.mobile.pageContainer;
this.options.container = this.options.container || $.mobile.pageContainer || thisPage;

// Apply the proto
thisPage.append( ui.screen );
Expand Down Expand Up @@ -846,7 +846,7 @@ define( [
}

// swallow the the initial navigation event, and bind for the next
$(window).one( "beforenavigate", function( e ) {
$.mobile.window.one( "beforenavigate", function( e ) {
e.preventDefault();
self._open( options );
self._bindContainerClose();
Expand Down

0 comments on commit 6e1eee7

Please sign in to comment.