@@ -49,10 +49,10 @@ $.widget("ui.tooltip", {
4949 this . opacity = this . tooltip . css ( "opacity" ) ;
5050 this . element
5151 . bind ( "focus.tooltip mouseenter.tooltip" , function ( event ) {
52- self . open ( ) ;
52+ self . open ( event ) ;
5353 } )
5454 . bind ( "blur.tooltip mouseleave.tooltip" , function ( event ) {
55- self . close ( ) ;
55+ self . close ( event ) ;
5656 } ) ;
5757 } ,
5858
@@ -73,7 +73,7 @@ $.widget("ui.tooltip", {
7373 return this . tooltip ;
7474 } ,
7575
76- open : function ( ) {
76+ open : function ( event ) {
7777 var target = this . element ;
7878 // already visible? possible when both focus and mouseover events occur
7979 if ( this . current && this . current [ 0 ] == target [ 0 ] )
@@ -84,14 +84,14 @@ $.widget("ui.tooltip", {
8484 var content = this . options . content . call ( target [ 0 ] , function ( response ) {
8585 // ignore async responses that come in after the tooltip is already hidden
8686 if ( self . current == target )
87- self . _show ( target , response ) ;
87+ self . _show ( event , target , response ) ;
8888 } ) ;
8989 if ( content ) {
90- self . _show ( target , content ) ;
90+ self . _show ( event , target , content ) ;
9191 }
9292 } ,
9393
94- _show : function ( target , content ) {
94+ _show : function ( event , target , content ) {
9595 if ( ! content )
9696 return ;
9797
@@ -116,10 +116,10 @@ $.widget("ui.tooltip", {
116116 else
117117 this . tooltip . is ( ':visible' ) ? this . tooltip . fadeTo ( "normal" , this . opacity ) : this . tooltip . fadeIn ( ) ;
118118
119- this . _trigger ( "open" ) ;
119+ this . _trigger ( "open" , event ) ;
120120 } ,
121121
122- close : function ( ) {
122+ close : function ( event ) {
123123 if ( ! this . current )
124124 return ;
125125
@@ -137,7 +137,7 @@ $.widget("ui.tooltip", {
137137 else
138138 this . tooltip . stop ( ) . fadeOut ( ) ;
139139
140- this . _trigger ( "close" ) ;
140+ this . _trigger ( "close" , event ) ;
141141 }
142142
143143} ) ;
0 commit comments