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.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js
index 57e65f923..9b4d52bd1 100644
--- a/ui/jquery.ui.tooltip.js
+++ b/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;