diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-02-19 21:17:35 +0100 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-02-19 21:17:35 +0100 |
commit | daacbaf22180cc269fb730d8652d5ee72389a6d0 (patch) | |
tree | b463fa49a1a3c7fb6a53fcc8047a62a6b1b9224b /ui/jquery.ui.tooltip.js | |
parent | e2ca906141fc5556e06ceccd9c37d91e1116e1ca (diff) | |
download | jquery-ui-daacbaf22180cc269fb730d8652d5ee72389a6d0.tar.gz jquery-ui-daacbaf22180cc269fb730d8652d5ee72389a6d0.zip |
Tooltip: Document why we don't use removeAttr
Diffstat (limited to 'ui/jquery.ui.tooltip.js')
-rw-r--r-- | ui/jquery.ui.tooltip.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js index a006f3bf7..924ce4121 100644 --- a/ui/jquery.ui.tooltip.js +++ b/ui/jquery.ui.tooltip.js @@ -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", "" ); } |