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

Commit

Permalink
[popup] Do not allow the event to bubble up to the document, after all
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Schulhof committed Aug 17, 2012
1 parent db8ef0f commit 58f837f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions js/widgets/popup.js
Expand Up @@ -182,11 +182,7 @@ define( [ "jquery",
self._setOption( key, value, true );
});

if ( $.mobile.browser.ie ) {
ui.screen.bind( "vclick", $.proxy( this, "_eatEventAndClose" ) );
} else {
this._on( $( document ), { "vclick": "_closeOnScreenVClick" } );
}
ui.screen.bind( "vclick", $.proxy( this, "_eatEventAndClose" ) );

$.each( this._globalHandlers, function( idx, value ) {
value.src.bind( value.handler );
Expand Down

0 comments on commit 58f837f

Please sign in to comment.