mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Tooltip: Store the title in ui-tooltip-title data only if the element has a title.
This commit is contained in:
parent
56de22eead
commit
45a5a24dfe
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" ) );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user