Skip to content
Permalink
Browse files

Tooltip: Store the title in ui-tooltip-title data only if the element…

… has a title.
  • Loading branch information
scottgonzalez committed Mar 30, 2012
1 parent 56de22e commit 45a5a24dfe6322cfeb047a2aed566c824f401307
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.tooltip.js
@@ -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" ) );
}

0 comments on commit 45a5a24

Please sign in to comment.
You can’t perform that action at this time.