mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Tooltip: Fixed tracking of tooltip elements.
This commit is contained in:
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" );
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user