Skip to content
Permalink
Browse files

Popup: Replace var that with this and _delay

  • Loading branch information...
jzaefferer committed Sep 12, 2011
1 parent e1ec6f8 commit 45ed8d8447ce270682a1294cbd120195d446d907
Showing with 4 additions and 6 deletions.
  1. +4 −6 ui/jquery.ui.popup.js
@@ -72,10 +72,9 @@ $.widget( "ui.popup", {
// let it propagate to close
return;
}
var that = this;
clearTimeout( this.closeTimer );
setTimeout(function() {
that.open( event );
this._delay(function() {
this.open( event );
}, 1);
}
});
@@ -102,11 +101,10 @@ $.widget( "ui.popup", {

this._bind({
focusout: function( event ) {
var that = this;
// use a timer to allow click to clear it and letting that
// handle the closing instead of opening again
that.closeTimer = setTimeout( function() {
that.close( event );
this.closeTimer = this._delay( function() {
this.close( event );
}, 100);
},
focusin: function( event ) {

0 comments on commit 45ed8d8

Please sign in to comment.
You can’t perform that action at this time.