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

Commit

Permalink
Added debug message when content is unable to be located
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Jun 5, 2011
1 parent 3635196 commit 4f8c23b
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 10 deletions.
7 changes: 5 additions & 2 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 3 10:26:22 2011 +0100
* Date: Fri Jun 3 10:52:10 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 @@ -1470,7 +1470,10 @@ function init(id, opts)
if(config.content.attr !== FALSE && attr) { config.content.text = attr; }

// No valid content was found, abort render
else { return FALSE; }
else {
$.error('Unable to locate content for tooltip! Aborting render of tooltip ' + id + '...');
return FALSE;
}
}

// Setup target options
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 3 10:26:22 2011 +0100
* Date: Fri Jun 3 10:52:10 2011 +0100
*/

/* Core qTip styles */
Expand Down
7 changes: 5 additions & 2 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 3 10:26:22 2011 +0100
* Date: Fri Jun 3 10:52:10 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 @@ -1470,7 +1470,10 @@ function init(id, opts)
if(config.content.attr !== FALSE && attr) { config.content.text = attr; }

// No valid content was found, abort render
else { return FALSE; }
else {
$.error('Unable to locate content for tooltip! Aborting render of tooltip ' + id + '...');
return FALSE;
}
}

// Setup target options
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.

5 changes: 4 additions & 1 deletion src/core.js
Expand Up @@ -1428,7 +1428,10 @@ function init(id, opts)
if(config.content.attr !== FALSE && attr) { config.content.text = attr; }

// No valid content was found, abort render
else { return FALSE; }
else {
$.error('Unable to locate content for tooltip! Aborting render of tooltip ' + id + '...');
return FALSE;
}
}

// Setup target options
Expand Down

0 comments on commit 4f8c23b

Please sign in to comment.