The plugins site is currently in development.
We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.
Error when attrbute is empty
| Project: | clueTip - flexible, enhanced tooltip |
| Version: | 0.9.3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | kswedberg |
| Status: | closed |
Jump to:
If you have a whole slough of a tags that have tooltips and one gets an empty title attribute the ClueTip code throws an error.
The fixed version of my code is attached.
Note: I also replaced the usage of $ with jQuery so it plays nice with rails.
| Attachment | Size |
|---|---|
| jquery.cluetip.js_.txt | 24.72 KB |
- Login to post comments

Comments
#1
Hi Chris,
Thanks a lot for the fix! I'll look at it and try to integrate asap.
As for replacing $ with jQuery, that shouldn't be necessary, because I use a construct that keeps the $ contained within a closure:
(function($) {
// safely use $ here
})(jQuery);
A lot of plugins use this construct, and I've never heard of it being a problem. Of course, you'll have to do this in your own code as well, or use "jQuery" if you prefer.
#2
Okay, I just did a diff on the files, and it looks like there was only one change (other than changing $ to jQuery). You added a line (around ln 202):
if(tipTitle == undefined){ tipTitle = '';}.Is that it, or have I missed something else? Let me know, because I really want to get this fix in as soon as possible. Thanks again for reporting it!
#3
fixed in 0.9.5
#4