From 6bc220587e6d13e34f653142ffe3dc694189a7f2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Sat, 28 May 2011 19:38:01 -0400 Subject: [PATCH] Tooltip: Fixed tracking of tooltip elements. --- ui/jquery.ui.tooltip.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js index a6d3b1dd3..fe264ce0d 100644 --- a/ui/jquery.ui.tooltip.js +++ b/ui/jquery.ui.tooltip.js @@ -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" ); } }); -- 2.39.5