mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Tooltip: Document why we don't use removeAttr
This commit is contained in:
parent
e2ca906141
commit
daacbaf221
5
ui/jquery.ui.tooltip.js
vendored
5
ui/jquery.ui.tooltip.js
vendored
@ -123,7 +123,10 @@ $.widget( "ui.tooltip", {
|
||||
// if we have a title, clear it to prevent the native tooltip
|
||||
// we have to check first to avoid defining a title if none exists
|
||||
// (we don't want to cause an element to start matching [title])
|
||||
// TODO: document why we don't use .removeAttr()
|
||||
|
||||
// We don't use removeAttr as that causes the native tooltip to show
|
||||
// up in IE (9 and below, didn't yet test 10). Happens only when removing
|
||||
// inside the mouseover handler.
|
||||
if ( target.is( "[title]" ) ) {
|
||||
target.attr( "title", "" );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user