Craga89/qTip2 — Issue #310: Tooltip does not show on invalid title, improve documentation?
Author: javinto
Created: 2012-02-12 10:31:56+00:00
State: open

Nightly build: Date: Tue Feb 7 13:29:42 2012

The documentation regarding to Title.text states:
* Custom functions that return no valid content will still cause the tooltip to be created! Replace these with an each() loop if this is not the desired behaviour.
* If no valid content is provided, the title will not be created.

My tootlip however is not created when my custom function returns Null.
Example: there is no title attribute. The tooltip will not be created

title: function(api) {return $(this).attr('title');}

The tooltip however is created when it returns False. So my custom function should look like:

title: function(api) {return $(this).attr('title') || false;}

I favour improving the code but improving documentation would help others as well