Tooltip: Store the title in ui-tooltip-title data only if the element has a title.

This commit is contained in:
Scott González 2012-03-30 09:06:06 -04:00
parent 56de22eead
commit 45a5a24dfe

View File

@ -99,7 +99,7 @@ $.widget( "ui.tooltip", {
return;
}
if ( !target.data( "ui-tooltip-title" ) ) {
if ( target.attr( "title" ) ) {
target.data( "ui-tooltip-title", target.attr( "title" ) );
}