Skip to content

Commit 0c87dd1

Browse files
committed
Tooltip: Cleanup comments
1 parent b6cc9dd commit 0c87dd1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ui/jquery.ui.tooltip.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ $.widget( "ui.tooltip", {
117117
target = $( event ? event.target : this.element )
118118
.closest( this.options.items );
119119

120-
// if aria-describedby exists, then the tooltip is already open
120+
// if ui-tooltip-id exists, then the tooltip is already open
121121
if ( !target.length || target.data( "ui-tooltip-id" ) ) {
122122
return;
123123
}
@@ -152,7 +152,7 @@ $.widget( "ui.tooltip", {
152152
// if we have a title, clear it to prevent the native tooltip
153153
// we have to check first to avoid defining a title if none exists
154154
// (we don't want to cause an element to start matching [title])
155-
155+
//
156156
// We use removeAttr only for key events, to allow IE to export the correct
157157
// accessible attributes. For mouse events, set to empty string to avoid
158158
// native tooltip showing up (happens only when removing inside mouseover).
@@ -208,6 +208,7 @@ $.widget( "ui.tooltip", {
208208

209209
// don't close if the element has focus
210210
// this prevents the tooltip from closing if you hover while focused
211+
//
211212
// we have to check the event type because tabbing out of the document
212213
// may leave the element as the activeElement
213214
if ( !force && event && event.type !== "focusout" &&

0 commit comments

Comments
 (0)