]> source.dussan.org Git - jquery-ui.git/commitdiff
Tooltip: Fixed tracking of tooltip elements.
authorScott González <scott.gonzalez@gmail.com>
Sat, 28 May 2011 23:38:01 +0000 (19:38 -0400)
committerScott González <scott.gonzalez@gmail.com>
Sat, 28 May 2011 23:38:01 +0000 (19:38 -0400)
ui/jquery.ui.tooltip.js

index a6d3b1dd3ff2d994cc3fe65e9963ac25dd9db894..fe264ce0df95cac5c65842088d467a7e99dfb230 100644 (file)
@@ -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" );
        }
 });