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

Commit

Permalink
Fixed problem with specifying self-closing elements as content e.g. i…
Browse files Browse the repository at this point in the history
…mg/input
  • Loading branch information
Craga89 committed Aug 17, 2010
1 parent 1ac389f commit 51114a8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 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 10 23:51:21 2010 +0100
* Date: Mon Aug 16 21:31:56 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 10 23:51:21 2010 +0100
* Date: Mon Aug 16 21:31:56 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 @@ -41,9 +41,9 @@ function sanitizeOptions(opts)
text: opts.content
};
}

var noContent = opts.content.text || FALSE;
if(noContent.length < 1 || (!noContent && !noContent.attr) || (noContent.jquery && noContent.is(':empty'))) {
if(noContent.length < 1 || (!noContent && !noContent.attr) || !noContent.jquery) {
opts.content.text = FALSE;
}

Expand Down
6 changes: 3 additions & 3 deletions dist/jquery.qtip.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 51114a8

Please sign in to comment.