Skip to content
Browse files

Popup: Lowered the closing delay from 150ms to 50ms. Makes response f…

…aster since the _closeTry and _closeVet approach is working smooth.
  • Loading branch information...
1 parent aa135de commit a3cd4fd09e9b58b463ccccebdac1bef45339e176 @rxaviers committed May 26, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 ui/jquery.ui.popup.js
View
4 ui/jquery.ui.popup.js
@@ -202,15 +202,15 @@ $.widget( "ui.popup", {
this.closeTimer = this._delay( function() {
this.close( event );
this.closeTimer = null;
- }, 150 );
+ }, 50 );
},
// Vets any close attempt in a timed window.
_closeVet: function() {
this.closeVeto = true;
this._delay( function() {
this.closeVeto = false;
- }, 150 );
+ }, 50 );
if ( this.closeTimer ) {
clearTimeout( this.closeTimer );
this.closeTimer = null;

0 comments on commit a3cd4fd

Please sign in to comment.
Something went wrong with that request. Please try again.