mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Tooltip: Store the title in ui-tooltip-title data only if the element has a title.
This commit is contained in:
2
ui/jquery.ui.tooltip.js
vendored
2
ui/jquery.ui.tooltip.js
vendored
@@ -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" ) );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user