@@ -59,7 +59,7 @@ $.widget( "ui.tooltip", {
5959 show : true ,
6060 track : false ,
6161
62- // callbacks
62+ // Callbacks
6363 close : null ,
6464 open : null
6565 } ,
@@ -139,14 +139,14 @@ $.widget( "ui.tooltip", {
139139 _disable : function ( ) {
140140 var that = this ;
141141
142- // close open tooltips
142+ // Close open tooltips
143143 $ . each ( this . tooltips , function ( id , tooltipData ) {
144144 var event = $ . Event ( "blur" ) ;
145145 event . target = event . currentTarget = tooltipData . element [ 0 ] ;
146146 that . close ( event , true ) ;
147147 } ) ;
148148
149- // remove title attributes to prevent native tooltips
149+ // Remove title attributes to prevent native tooltips
150150 this . element . find ( this . options . items ) . addBack ( ) . each ( function ( ) {
151151 var element = $ ( this ) ;
152152 if ( element . is ( "[title]" ) ) {
@@ -185,7 +185,7 @@ $.widget( "ui.tooltip", {
185185
186186 target . data ( "ui-tooltip-open" , true ) ;
187187
188- // kill parent tooltips, custom or native, for hover
188+ // Kill parent tooltips, custom or native, for hover
189189 if ( event && event . type === "mouseover" ) {
190190 target . parents ( ) . each ( function ( ) {
191191 var parent = $ ( this ) ,
@@ -232,7 +232,7 @@ $.widget( "ui.tooltip", {
232232 return ;
233233 }
234234
235- // jQuery creates a special event for focusin when it doesn't
235+ // JQuery creates a special event for focusin when it doesn't
236236 // exist natively. To improve performance, the native event
237237 // object is reused and the type is changed. Therefore, we can't
238238 // rely on the type being correct after the event finished
@@ -264,7 +264,7 @@ $.widget( "ui.tooltip", {
264264 return ;
265265 }
266266
267- // if we have a title, clear it to prevent the native tooltip
267+ // If we have a title, clear it to prevent the native tooltip
268268 // we have to check first to avoid defining a title if none exists
269269 // (we don't want to cause an element to start matching [title])
270270 //
@@ -377,7 +377,7 @@ $.widget( "ui.tooltip", {
377377
378378 tooltip = tooltipData . tooltip ;
379379
380- // disabling closes the tooltip, so we need to track when we're closing
380+ // Disabling closes the tooltip, so we need to track when we're closing
381381 // to avoid an infinite loop in case the tooltip becomes disabled on close
382382 if ( tooltipData . closing ) {
383383 return ;
@@ -386,7 +386,7 @@ $.widget( "ui.tooltip", {
386386 // Clear the interval for delayed tracking tooltips
387387 clearInterval ( this . delayedShow ) ;
388388
389- // only set title if we had one before (see comment in _open())
389+ // Only set title if we had one before (see comment in _open())
390390 // If the title attribute has changed since open(), don't restore
391391 if ( target . data ( "ui-tooltip-title" ) && ! target . attr ( "title" ) ) {
392392 target . attr ( "title" , target . data ( "ui-tooltip-title" ) ) ;
@@ -462,7 +462,7 @@ $.widget( "ui.tooltip", {
462462 _destroy : function ( ) {
463463 var that = this ;
464464
465- // close open tooltips
465+ // Close open tooltips
466466 $ . each ( this . tooltips , function ( id , tooltipData ) {
467467 // Delegate to close method to handle common cleanup
468468 var event = $ . Event ( "blur" ) ,
0 commit comments