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

Commit

Permalink
Fixed window focus issue when hiding tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Apr 8, 2011
1 parent 91613d4 commit 673938d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion dist/jquery.qtip.css
Expand Up @@ -9,7 +9,7 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Fri Apr 8 16:32:03 2011 +0100
* Date: Fri Apr 8 16:33:01 2011 +0100
*/

/* Fluid class for determining actual width in IE */
Expand Down
10 changes: 5 additions & 5 deletions dist/jquery.qtip.js
Expand Up @@ -9,7 +9,7 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Fri Apr 8 16:32:03 2011 +0100
* Date: Fri Apr 8 16:33:01 2011 +0100
*/

"use strict"; // Enable ECMAScript "strict" operation for this function. See more: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/
Expand Down Expand Up @@ -551,9 +551,8 @@ function QTip(target, options, id, attr)

// Hide mouseleave/mouseout tooltips on window blur/mouseleave
if((/mouseleave|mouseout/i).test(options.hide.event)) {
$(window).bind('blur mouseleave', function(event) {
var oEvent = event.originalEvent;
if(!oEvent.currentTarget || !oEvent.relatedTarget) { self.hide(event); }
$(window).bind('blur mouseout', function(event) {
if(!event.relatedTarget) { self.hide(event); }
});
}

Expand Down Expand Up @@ -1664,7 +1663,8 @@ QTIP.defaults = {
adjust: {
x: 0, y: 0,
mouse: TRUE,
resize: TRUE
resize: TRUE,
method: 'flip'
},
effect: TRUE
},
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.qtip.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/jquery.qtip.pack.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/core.js
Expand Up @@ -509,9 +509,8 @@ function QTip(target, options, id, attr)

// Hide mouseleave/mouseout tooltips on window blur/mouseleave
if((/mouseleave|mouseout/i).test(options.hide.event)) {
$(window).bind('blur mouseleave', function(event) {
var oEvent = event.originalEvent;
if(!oEvent.currentTarget || !oEvent.relatedTarget) { self.hide(event); }
$(window).bind('blur mouseout', function(event) {
if(!event.relatedTarget) { self.hide(event); }
});
}

Expand Down Expand Up @@ -1622,7 +1621,8 @@ QTIP.defaults = {
adjust: {
x: 0, y: 0,
mouse: TRUE,
resize: TRUE
resize: TRUE,
method: 'flip'
},
effect: TRUE
},
Expand Down

0 comments on commit 673938d

Please sign in to comment.