]> source.dussan.org Git - jquery-ui.git/commitdiff
Tooltip: Removed logic for handling tracking tooltips which gain focus while open...
authorScott González <scott.gonzalez@gmail.com>
Wed, 14 Nov 2012 19:42:36 +0000 (14:42 -0500)
committerScott González <scott.gonzalez@gmail.com>
Wed, 14 Nov 2012 19:42:36 +0000 (14:42 -0500)
ui/jquery.ui.tooltip.js

index ffffe198184a5df0004c77b011069d49762c4bf8..2ccd61f46c18051cd6ad04893930cc7a44d4075d 100644 (file)
@@ -138,20 +138,8 @@ $.widget( "ui.tooltip", {
                                // but always pointing at the same event target
                                .closest( this.options.items );
 
-               // No element to show a tooltip for
-               if ( !target.length ) {
-                       return;
-               }
-
-               // If the tooltip is open and we're tracking then reposition the tooltip.
-               // This makes sure that a tracking tooltip doesn't obscure a focused element
-               // if the user was hovering when the element gained focused.
-               if ( this.options.track && target.data( "ui-tooltip-id" ) ) {
-                       this._find( target ).position( $.extend({
-                               of: target
-                       }, this.options.position ) );
-                       // Stop tracking (#8622)
-                       this._off( this.document, "mousemove" );
+               // No element to show a tooltip for or the tooltip is already open
+               if ( !target.length || target.data( "ui-tooltip-id" ) ) {
                        return;
                }