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

Commit

Permalink
Fixed log() issue, now using Paul Irish's solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Jun 18, 2011
1 parent 17b816b commit 2b2e0c6
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 19 deletions.
13 changes: 8 additions & 5 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: Fri Jun 17 19:00:31 2011 +0100
* Date: Sat Jun 18 13:56:55 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 @@ -39,11 +39,14 @@
hideOffset = '-31000px',
replaceSuffix = '_replacedByqTip',
oldtitle = 'oldtitle',
trackingBound = FALSE;

trackingBound;

/* Thanks to Paul Irish for this one: http://paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/ */
function log() {
if(console) {
return (console.info || console.log || $.noop).apply(console, arguments);
log.history = log.history || [];
log.history.push(arguments);
if(console){
(console.warn || console.log)(Array.prototype.slice.call(arguments));
}
}

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: Fri Jun 17 19:00:31 2011 +0100
* Date: Sat Jun 18 13:56:55 2011 +0100
*/

/* Core qTip styles */
Expand Down
13 changes: 8 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 Jun 17 19:00:31 2011 +0100
* Date: Sat Jun 18 13:56:55 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 @@ -39,11 +39,14 @@
hideOffset = '-31000px',
replaceSuffix = '_replacedByqTip',
oldtitle = 'oldtitle',
trackingBound = FALSE;

trackingBound;

/* Thanks to Paul Irish for this one: http://paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/ */
function log() {
if(console) {
return (console.info || console.log || $.noop).apply(console, arguments);
log.history = log.history || [];
log.history.push(arguments);
if(console){
(console.warn || console.log)(Array.prototype.slice.call(arguments));
}
}

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: 7 additions & 4 deletions src/intro.js
Expand Up @@ -25,11 +25,14 @@
hideOffset = '-31000px',
replaceSuffix = '_replacedByqTip',
oldtitle = 'oldtitle',
trackingBound = FALSE;

trackingBound;

/* Thanks to Paul Irish for this one: http://paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/ */
function log() {
if(console) {
return (console.info || console.log || $.noop).apply(console, arguments);
log.history = log.history || [];
log.history.push(arguments);
if(console){
(console.warn || console.log)(Array.prototype.slice.call(arguments));
}
}

0 comments on commit 2b2e0c6

Please sign in to comment.