diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-05-22 18:34:00 +0200 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-05-22 18:34:00 +0200 |
commit | 0c87dd1f4525b506c410f119459d4433a3c0231e (patch) | |
tree | b2fcc8466ef2b9e2e67759f459542a0aca240831 | |
parent | b6cc9dd870836b94d6f82729d56e592c548f24ea (diff) | |
download | jquery-ui-0c87dd1f4525b506c410f119459d4433a3c0231e.tar.gz jquery-ui-0c87dd1f4525b506c410f119459d4433a3c0231e.zip |
Tooltip: Cleanup comments
-rw-r--r-- | ui/jquery.ui.tooltip.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js index 1d6cd32a8..1892d6555 100644 --- a/ui/jquery.ui.tooltip.js +++ b/ui/jquery.ui.tooltip.js @@ -117,7 +117,7 @@ $.widget( "ui.tooltip", { target = $( event ? event.target : this.element ) .closest( this.options.items ); - // if aria-describedby exists, then the tooltip is already open + // if ui-tooltip-id exists, then the tooltip is already open if ( !target.length || target.data( "ui-tooltip-id" ) ) { return; } @@ -152,7 +152,7 @@ $.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]) - + // // We use removeAttr only for key events, to allow IE to export the correct // accessible attributes. For mouse events, set to empty string to avoid // native tooltip showing up (happens only when removing inside mouseover). @@ -208,6 +208,7 @@ $.widget( "ui.tooltip", { // don't close if the element has focus // this prevents the tooltip from closing if you hover while focused + // // we have to check the event type because tabbing out of the document // may leave the element as the activeElement if ( !force && event && event.type !== "focusout" && |