mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Tooltip: Fixed tracking of tooltip elements.
This commit is contained in:
parent
2155993096
commit
6bc220587e
5
ui/jquery.ui.tooltip.js
vendored
5
ui/jquery.ui.tooltip.js
vendored
@ -126,7 +126,7 @@ $.widget( "ui.tooltip", {
|
||||
tooltip.stop( true );
|
||||
this._hide( tooltip, this.options.hide, function() {
|
||||
$( this ).remove();
|
||||
delete that[ this.id ];
|
||||
delete that.tooltips[ this.id ];
|
||||
});
|
||||
|
||||
// TODO: why isn't click unbound here?
|
||||
@ -157,11 +157,10 @@ $.widget( "ui.tooltip", {
|
||||
return id ? $( "#" + id ) : $();
|
||||
},
|
||||
|
||||
destroy: function() {
|
||||
_destroy: function() {
|
||||
$.each( this.tooltips, function( id ) {
|
||||
$( "#" + id ).remove();
|
||||
});
|
||||
this._super( "destroy" );
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user