Skip to content

Commit 6bc2205

Browse files
committed
Tooltip: Fixed tracking of tooltip elements.
1 parent 2155993 commit 6bc2205

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ui/jquery.ui.tooltip.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ $.widget( "ui.tooltip", {
126126
tooltip.stop( true );
127127
this._hide( tooltip, this.options.hide, function() {
128128
$( this ).remove();
129-
delete that[ this.id ];
129+
delete that.tooltips[ this.id ];
130130
});
131131

132132
// TODO: why isn't click unbound here?
@@ -157,11 +157,10 @@ $.widget( "ui.tooltip", {
157157
return id ? $( "#" + id ) : $();
158158
},
159159

160-
destroy: function() {
160+
_destroy: function() {
161161
$.each( this.tooltips, function( id ) {
162162
$( "#" + id ).remove();
163163
});
164-
this._super( "destroy" );
165164
}
166165
});
167166

0 commit comments

Comments
 (0)