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

Commit

Permalink
Removed hide.leave 'frame' functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Jul 13, 2011
1 parent bf0cf11 commit d18ea6b
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 28 deletions.
13 changes: 5 additions & 8 deletions dist/jquery.qtip.basic.js
Expand Up @@ -9,7 +9,7 @@
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Wed Jul 13 18:36:06 2011 +0100
* Date: Wed Jul 13 18:37:25 2011 +0100
*/

/*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */
Expand Down Expand Up @@ -508,13 +508,10 @@ function QTip(target, options, id, attr)
// If using mouseout/mouseleave as a hide event...
if(/mouse(out|leave)/i.test(options.hide.event)) {
// Hide tooltips when leaving current window/frame (but not select/option elements)
if(options.hide.leave) {
targets.window.bind(
'mouseleave' + namespace,
function(event) {
if(/select|option/.test(event.target) && !event.relatedTarget) { self.hide(event); }
}
);
if(options.hide.leave === 'window') {
targets.window.bind('mouseout' + namespace, function(event) {
if(/select|option/.test(event.target) && !event.relatedTarget) { self.hide(event); }
});
}
}

Expand Down
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: Wed Jul 13 18:36:06 2011 +0100
* Date: Wed Jul 13 18:37:25 2011 +0100
*/

/* Core qTip styles */
Expand Down
13 changes: 5 additions & 8 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: Wed Jul 13 18:36:06 2011 +0100
* Date: Wed Jul 13 18:37:25 2011 +0100
*/

/*jslint browser: true, onevar: true, undef: true, nomen: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: true */
Expand Down Expand Up @@ -508,13 +508,10 @@ function QTip(target, options, id, attr)
// If using mouseout/mouseleave as a hide event...
if(/mouse(out|leave)/i.test(options.hide.event)) {
// Hide tooltips when leaving current window/frame (but not select/option elements)
if(options.hide.leave) {
targets.window.bind(
'mouseleave' + namespace,
function(event) {
if(/select|option/.test(event.target) && !event.relatedTarget) { self.hide(event); }
}
);
if(options.hide.leave === 'window') {
targets.window.bind('mouseout' + namespace, function(event) {
if(/select|option/.test(event.target) && !event.relatedTarget) { self.hide(event); }
});
}
}

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.

11 changes: 4 additions & 7 deletions src/core.js
Expand Up @@ -445,13 +445,10 @@ function QTip(target, options, id, attr)
// If using mouseout/mouseleave as a hide event...
if(/mouse(out|leave)/i.test(options.hide.event)) {
// Hide tooltips when leaving current window/frame (but not select/option elements)
if(options.hide.leave) {
targets.window.bind(
'mouseleave' + namespace,
function(event) {
if(/select|option/.test(event.target) && !event.relatedTarget) { self.hide(event); }
}
);
if(options.hide.leave === 'window') {
targets.window.bind('mouseout' + namespace, function(event) {
if(/select|option/.test(event.target) && !event.relatedTarget) { self.hide(event); }
});
}
}

Expand Down

0 comments on commit d18ea6b

Please sign in to comment.