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

Commit

Permalink
Returning false from a content.text callback to prevents the tooltip …
Browse files Browse the repository at this point in the history
…from showing
  • Loading branch information
Craga89 committed Aug 25, 2010
1 parent 5977b6a commit 75187fe
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 42 deletions.
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 Aug 24 19:05:23 2010 +0100
* Date: Wed Aug 25 19:13:02 2010 +0100
*/

.ui-tooltip-accessible{
Expand Down
6 changes: 3 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 Aug 24 19:05:23 2010 +0100
* Date: Wed Aug 25 19:13:02 2010 +0100
*/

"use strict"; // Enable ECMAScript "strict" operation for this function. See more: http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/
Expand Down Expand Up @@ -42,8 +42,8 @@ function sanitizeOptions(opts)
};
}

var noContent = opts.content.text || FALSE;
if((noContent.length < 1 || (!noContent && !noContent.attr) || ('object' === typeof noContent && !noContent.jquery)) && !$.isFunction(noContent)) {
var noContent = $.isFunction(opts.content.text) ? opts.content.text() : opts.content.text || FALSE;
if((!noContent && !noContent.attr) || noContent.length < 1 || ('object' === typeof noContent && !noContent.jquery)) {
opts.content.text = FALSE;
}

Expand Down

0 comments on commit 75187fe

Please sign in to comment.