aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.tooltip.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-05-29 19:41:57 -0400
committerScott González <scott.gonzalez@gmail.com>2011-05-29 19:41:57 -0400
commitb6cda3dfeeca692fd14e5ecbde93286507e5c560 (patch)
treef77727c603a5d3b8a896a9034b494d695499b393 /ui/jquery.ui.tooltip.js
parent0fc41bcc4d7f084463a8b68f225789964b009d0d (diff)
downloadjquery-ui-b6cda3dfeeca692fd14e5ecbde93286507e5c560.tar.gz
jquery-ui-b6cda3dfeeca692fd14e5ecbde93286507e5c560.zip
Tooltip: Added some comments.
Diffstat (limited to 'ui/jquery.ui.tooltip.js')
-rw-r--r--ui/jquery.ui.tooltip.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js
index 7722e6472..8aba5974a 100644
--- a/ui/jquery.ui.tooltip.js
+++ b/ui/jquery.ui.tooltip.js
@@ -83,6 +83,9 @@ $.widget( "ui.tooltip", {
}
// if we have a title, clear it to prevent the native tooltip
+ // we do this before the disabled check to prevent native tooltips
+ // even when disabled
+ // TODO: the above doesn't work since ._bind() does a disabled check
// 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()
@@ -90,7 +93,6 @@ $.widget( "ui.tooltip", {
target.attr( "title", "" );
}
- // TODO: why is this check after we clear the title?
if ( this.options.disabled ) {
return;
}