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

Commit

Permalink
Title callback: false fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Jul 18, 2011
1 parent 0c59b4d commit 66bd0e7
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
10 changes: 5 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: Wed Jul 13 19:46:07 2011 +0100
* Date: Wed Jul 13 19:47:57 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 @@ -315,11 +315,11 @@ function QTip(target, options, id, attr)

// Use function to parse content
if($.isFunction(content)) {
content = content.call(target, cache.event, self) || '';
}
content = content.call(target, cache.event, self);

// Remove title if content is FALSE
if(elem && content === FALSE) { removeTitle(); }
// Remove title if callback returns false
if(content === FALSE) { removeTitle(); }
}

// Append new content if its a DOM array and show it if hidden
else if(content.jquery && content.length > 0) {
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: Wed Jul 13 19:46:07 2011 +0100
* Date: Wed Jul 13 19:47:57 2011 +0100
*/

/* Core qTip styles */
Expand Down
10 changes: 5 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: Wed Jul 13 19:46:07 2011 +0100
* Date: Wed Jul 13 19:47:57 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 @@ -315,11 +315,11 @@ function QTip(target, options, id, attr)

// Use function to parse content
if($.isFunction(content)) {
content = content.call(target, cache.event, self) || '';
}
content = content.call(target, cache.event, self);

// Remove title if content is FALSE
if(elem && content === FALSE) { removeTitle(); }
// Remove title if callback returns false
if(content === FALSE) { removeTitle(); }
}

// Append new content if its a DOM array and show it if hidden
else if(content.jquery && content.length > 0) {
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.

8 changes: 4 additions & 4 deletions src/core.js
Expand Up @@ -252,11 +252,11 @@ function QTip(target, options, id, attr)

// Use function to parse content
if($.isFunction(content)) {
content = content.call(target, cache.event, self) || '';
}
content = content.call(target, cache.event, self);

// Remove title if content is FALSE
if(elem && content === FALSE) { removeTitle(); }
// Remove title if callback returns false
if(content === FALSE) { removeTitle(); }
}

// Append new content if its a DOM array and show it if hidden
else if(content.jquery && content.length > 0) {
Expand Down

0 comments on commit 66bd0e7

Please sign in to comment.