Tooltip: Fixed tracking of tooltip elements.

This commit is contained in:
Scott González 2011-05-28 19:38:01 -04:00
parent 2155993096
commit 6bc220587e

View File

@ -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" );
}
});