File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -72,10 +72,9 @@ $.widget( "ui.popup", {
72
72
// let it propagate to close
73
73
return ;
74
74
}
75
- var that = this ;
76
75
clearTimeout ( this . closeTimer ) ;
77
- setTimeout ( function ( ) {
78
- that . open ( event ) ;
76
+ this . _delay ( function ( ) {
77
+ this . open ( event ) ;
79
78
} , 1 ) ;
80
79
}
81
80
} ) ;
@@ -102,11 +101,10 @@ $.widget( "ui.popup", {
102
101
103
102
this . _bind ( {
104
103
focusout : function ( event ) {
105
- var that = this ;
106
104
// use a timer to allow click to clear it and letting that
107
105
// handle the closing instead of opening again
108
- that . closeTimer = setTimeout ( function ( ) {
109
- that . close ( event ) ;
106
+ this . closeTimer = this . _delay ( function ( ) {
107
+ this . close ( event ) ;
110
108
} , 100 ) ;
111
109
} ,
112
110
focusin : function ( event ) {
You can’t perform that action at this time.
0 commit comments