Selectmenu: changed to _delay

This commit is contained in:
Felix Nagel 2011-10-12 02:02:19 +02:00
parent 2e229e8ddc
commit c0864df4d7

View File

@ -155,7 +155,7 @@ $.widget( "ui.selectmenu", {
this._bind( document, { this._bind( document, {
'mousedown': function( event ) { 'mousedown': function( event ) {
if ( this.opened && !$( event.target ).is( this.menu ) ) { if ( this.opened && !$( event.target ).is( this.menu ) ) {
window.setTimeout( function() { this._delay( function() {
this.close( event ); this.close( event );
}, 200); }, 200);
} }