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

Commit

Permalink
Hide.leave regression fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Jul 13, 2011
1 parent 0b55cd6 commit c16ec86
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 13 deletions.
16 changes: 13 additions & 3 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: Tue Jul 12 21:12:52 2011 +0100
* Date: Wed Jul 13 15:07: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 @@ -45,9 +45,19 @@
function log() {
log.history = log.history || [];
log.history.push(arguments);

// Make sure console is present
if('object' === typeof console) {

// Setup console and arguments
var c = console[ console.warn ? 'warn' : 'log' ],
a = c.apply ? c.apply(console, arguments) : c(Array.prototype.slice.call(arguments));
args = Array.prototype.slice.call(arguments), a;

// Add qTip2 marker to first argument if it's a string
if(typeof arguments[0] === 'string') { args[0] = 'qTip2: ' + args[0]; }

// Apply console.warn or .log if not supported
a = c.apply ? c.apply(console, args) : c(args);
}
}

Expand Down Expand Up @@ -502,7 +512,7 @@ function QTip(target, options, id, attr)
targets.window.bind(
'mouseleave' + namespace,
function(event) {
//if(/select|option/.test(event.target) && !event.relatedTarget) { self.hide(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: Tue Jul 12 21:12:52 2011 +0100
* Date: Wed Jul 13 15:07:25 2011 +0100
*/

/* Core qTip styles */
Expand Down
16 changes: 13 additions & 3 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: Tue Jul 12 21:12:52 2011 +0100
* Date: Wed Jul 13 15:07: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 @@ -45,9 +45,19 @@
function log() {
log.history = log.history || [];
log.history.push(arguments);

// Make sure console is present
if('object' === typeof console) {

// Setup console and arguments
var c = console[ console.warn ? 'warn' : 'log' ],
a = c.apply ? c.apply(console, arguments) : c(Array.prototype.slice.call(arguments));
args = Array.prototype.slice.call(arguments), a;

// Add qTip2 marker to first argument if it's a string
if(typeof arguments[0] === 'string') { args[0] = 'qTip2: ' + args[0]; }

// Apply console.warn or .log if not supported
a = c.apply ? c.apply(console, args) : c(args);
}
}

Expand Down Expand Up @@ -502,7 +512,7 @@ function QTip(target, options, id, attr)
targets.window.bind(
'mouseleave' + namespace,
function(event) {
//if(/select|option/.test(event.target) && !event.relatedTarget) { self.hide(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.

2 changes: 1 addition & 1 deletion src/core.js
Expand Up @@ -449,7 +449,7 @@ function QTip(target, options, id, attr)
targets.window.bind(
'mouseleave' + namespace,
function(event) {
//if(/select|option/.test(event.target) && !event.relatedTarget) { self.hide(event); }
if(/select|option/.test(event.target) && !event.relatedTarget) { self.hide(event); }
}
);
}
Expand Down
12 changes: 11 additions & 1 deletion src/intro.js
Expand Up @@ -31,9 +31,19 @@
function log() {
log.history = log.history || [];
log.history.push(arguments);

// Make sure console is present
if('object' === typeof console) {

// Setup console and arguments
var c = console[ console.warn ? 'warn' : 'log' ],
a = c.apply ? c.apply(console, arguments) : c(Array.prototype.slice.call(arguments));
args = Array.prototype.slice.call(arguments), a;

// Add qTip2 marker to first argument if it's a string
if(typeof arguments[0] === 'string') { args[0] = 'qTip2: ' + args[0]; }

// Apply console.warn or .log if not supported
a = c.apply ? c.apply(console, args) : c(args);
}
}

0 comments on commit c16ec86

Please sign in to comment.