aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.tooltip.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-05-28 19:38:01 -0400
committerScott González <scott.gonzalez@gmail.com>2011-05-28 19:38:01 -0400
commit6bc220587e6d13e34f653142ffe3dc694189a7f2 (patch)
tree774825848c93ecf3f78195186aef68af9157b994 /ui/jquery.ui.tooltip.js
parent215599309660733221d51830d12f2ed117961b36 (diff)
downloadjquery-ui-6bc220587e6d13e34f653142ffe3dc694189a7f2.tar.gz
jquery-ui-6bc220587e6d13e34f653142ffe3dc694189a7f2.zip
Tooltip: Fixed tracking of tooltip elements.
Diffstat (limited to 'ui/jquery.ui.tooltip.js')
-rw-r--r--ui/jquery.ui.tooltip.js5
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" );
}
});