File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,13 @@ $.widget( "ui.tooltip", {
103
103
target . data ( "tooltip-title" , target . attr ( "title" ) ) ;
104
104
}
105
105
106
+ target . data ( "tooltip-open" , true ) ;
107
+
106
108
content = this . options . content . call ( target [ 0 ] , function ( response ) {
109
+ // ignore async response if tooltip was closed already
110
+ if ( ! target . data ( "tooltip-open" ) ) {
111
+ return ;
112
+ }
107
113
// IE may instantly serve a cached response for ajax requests
108
114
// delay this call to _open so the other call to _open runs first
109
115
setTimeout ( function ( ) {
@@ -186,6 +192,7 @@ $.widget( "ui.tooltip", {
186
192
delete that . tooltips [ this . id ] ;
187
193
} ) ;
188
194
195
+ target . removeData ( "tooltip-open" ) ;
189
196
target . unbind ( "mouseleave.tooltip blur.tooltip keyup.tooltip" ) ;
190
197
191
198
this . _trigger ( "close" , event , { tooltip : tooltip } ) ;
You can’t perform that action at this time.
0 commit comments