Skip to content

Commit

Permalink
Do not prevent default 'click' action of everything on the page
Browse files Browse the repository at this point in the history
IMESelector#hide returns false, preventing all other click
handlers, including browser's native ones, from running.
Wrap it in a good ol' closure instead of using jQuery.proxy.
Fixes bug 53041.

Elementary, dear Watson.
  • Loading branch information
MatmaRex committed Aug 19, 2013
1 parent fa434ce commit 44ba0c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/jquery.ime.selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@
} );

// Hide the menu when clicked outside
$( 'html' ).click( $.proxy( this.hide, this ) );
$( 'html' ).click( function () {
imeselector.hide();
} );

// ... but when clicked on window do not propagate it.
this.$menu.on( 'click', function ( event ) {
Expand Down

0 comments on commit 44ba0c0

Please sign in to comment.