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

Commit

Permalink
Removed redundant debug() in favour of $.error. qTip now requires 1.4…
Browse files Browse the repository at this point in the history
….1 and above.
  • Loading branch information
Craga89 committed May 8, 2011
1 parent e4b091e commit bd6c090
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 28 deletions.
10 changes: 2 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: Sun May 8 22:49:04 2011 +0100
* Date: Mon May 9 00:36:47 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 All @@ -35,12 +35,6 @@
hideOffset = '-31000px',
replaceSuffix = '_replacedByqTip',
oldtitle = 'oldtitle';

// Simple console.error wrapper
function debug() {
var c = window.console;
return c && (c.error || c.log || $.noop).apply(c, arguments);
}
// Option object sanitizer
function sanitizeOptions(opts)
{
Expand Down Expand Up @@ -1435,7 +1429,7 @@ function init(id, opts)

// If we don't get an object returned attempt to parse it manualyl without parseJSON
try { html5 = typeof html5 === 'string' ? (new Function("return " + html5))() : html5; }
catch(e) { debug('Unable to parse HTML5 attribute data: ' + html5); }
catch(e) { $.error('Unable to parse HTML5 attribute data: ' + html5); }

// Merge in and sanitize metadata
config = $.extend(TRUE, {}, QTIP.defaults, opts,
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: Sun May 8 22:49:04 2011 +0100
* Date: Mon May 9 00:36:47 2011 +0100
*/

/* Fluid class for determining actual width in IE */
Expand Down
10 changes: 2 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: Sun May 8 22:49:04 2011 +0100
* Date: Mon May 9 00:36:47 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 All @@ -35,12 +35,6 @@
hideOffset = '-31000px',
replaceSuffix = '_replacedByqTip',
oldtitle = 'oldtitle';

// Simple console.error wrapper
function debug() {
var c = window.console;
return c && (c.error || c.log || $.noop).apply(c, arguments);
}
// Option object sanitizer
function sanitizeOptions(opts)
{
Expand Down Expand Up @@ -1435,7 +1429,7 @@ function init(id, opts)

// If we don't get an object returned attempt to parse it manualyl without parseJSON
try { html5 = typeof html5 === 'string' ? (new Function("return " + html5))() : html5; }
catch(e) { debug('Unable to parse HTML5 attribute data: ' + html5); }
catch(e) { $.error('Unable to parse HTML5 attribute data: ' + html5); }

// Merge in and sanitize metadata
config = $.extend(TRUE, {}, QTIP.defaults, opts,
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 @@ -1392,7 +1392,7 @@ function init(id, opts)

// If we don't get an object returned attempt to parse it manualyl without parseJSON
try { html5 = typeof html5 === 'string' ? (new Function("return " + html5))() : html5; }
catch(e) { debug('Unable to parse HTML5 attribute data: ' + html5); }
catch(e) { $.error('Unable to parse HTML5 attribute data: ' + html5); }

// Merge in and sanitize metadata
config = $.extend(TRUE, {}, QTIP.defaults, opts,
Expand Down
6 changes: 0 additions & 6 deletions src/intro.js
Expand Up @@ -21,9 +21,3 @@
hideOffset = '-31000px',
replaceSuffix = '_replacedByqTip',
oldtitle = 'oldtitle';

// Simple console.error wrapper
function debug() {
var c = window.console;
return c && (c.error || c.log || $.noop).apply(c, arguments);
}

0 comments on commit bd6c090

Please sign in to comment.