Skip to content
This repository has been archived by the owner on Jun 14, 2020. It is now read-only.

Commit

Permalink
Fork for issue #250 #250
Browse files Browse the repository at this point in the history
  • Loading branch information
nigel-v-thomas committed Oct 3, 2011
1 parent 8576534 commit 1ca79f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core.js
Expand Up @@ -375,6 +375,7 @@ function QTip(target, options, id, attr)
hide: options.hide.target,
viewport: $(posOptions.viewport),
document: $(document),
body: $(document.body),
window: $(window)
},
events = {
Expand Down Expand Up @@ -487,7 +488,7 @@ function QTip(target, options, id, attr)

// Hide tooltip on document mousedown if unfocus events are enabled
if(('' + options.hide.event).indexOf('unfocus') > -1) {
targets.document.bind('mousedown'+namespace, function(event) {
targets.body.bind('mousedown'+namespace, function(event) {
var $target = $(event.target),
enabled = !tooltip.hasClass(disabled) && tooltip.is(':visible');

Expand Down

0 comments on commit 1ca79f5

Please sign in to comment.