Navigation Menu

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

Commit

Permalink
Custom select: Call the close() method upon "popupafterclose" by bind…
Browse files Browse the repository at this point in the history
…ing it via this._on().
  • Loading branch information
Gabriel Schulhof committed Jun 18, 2013
1 parent 77143ac commit 571b4f3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions js/widgets/forms/select.custom.js
Expand Up @@ -248,9 +248,7 @@ $.widget( "mobile.selectmenu", $.mobile.selectmenu, {
this._on( this.menuPage, { pagehide: "_handleMenuPageHide" } );

// Events on the popup
this.listbox.bind( "popupafterclose", function() {
self.close();
});
this._on( this.listbox, { popupafterclose: "close" } );

// Close button on small overlays
if ( this.isMultiple ) {
Expand Down

0 comments on commit 571b4f3

Please sign in to comment.