Skip to content
Permalink
Browse files

Tooltip: Make sure we have a target before trying to open the tooltip.

  • Loading branch information...
scottgonzalez committed Feb 26, 2011
1 parent b4d75c1 commit 31a181abfc05334eca8e9875e17746fcb01515d8
Showing with 3 additions and 0 deletions.
  1. +3 −0 ui/jquery.ui.tooltip.js
@@ -68,6 +68,9 @@ $.widget("ui.tooltip", {

open: function(event) {
var target = $(event && event.target || this.element).closest(this.options.items);
if ( !target.length ) {
return;
}
// already visible? possible when both focus and mouseover events occur
if (this.current && this.current[0] == target[0])
return;

0 comments on commit 31a181a

Please sign in to comment.
You can’t perform that action at this time.