diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-05-28 19:38:01 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-05-28 19:38:01 -0400 |
commit | 6bc220587e6d13e34f653142ffe3dc694189a7f2 (patch) | |
tree | 774825848c93ecf3f78195186aef68af9157b994 /ui | |
parent | 215599309660733221d51830d12f2ed117961b36 (diff) | |
download | jquery-ui-6bc220587e6d13e34f653142ffe3dc694189a7f2.tar.gz jquery-ui-6bc220587e6d13e34f653142ffe3dc694189a7f2.zip |
Tooltip: Fixed tracking of tooltip elements.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.tooltip.js | 5 |
1 files 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" ); } }); |