aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.tooltip.js
diff options
context:
space:
mode:
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" );
}
});