aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.tooltip.js15
1 files changed, 8 insertions, 7 deletions
diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js
index f1f919ad3..c05be1d45 100644
--- a/ui/jquery.ui.tooltip.js
+++ b/ui/jquery.ui.tooltip.js
@@ -164,19 +164,20 @@ $.widget( "ui.tooltip", {
// kill parent tooltips, custom or native, for hover
if ( event && event.type === "mouseover" ) {
target.parents().each(function() {
- var blurEvent;
- if ( $( this ).data( "tooltip-open" ) ) {
+ var parent = $( this ),
+ blurEvent;
+ if ( parent.data( "tooltip-open" ) ) {
blurEvent = $.Event( "blur" );
blurEvent.target = blurEvent.currentTarget = this;
that.close( blurEvent, true );
}
- if ( this.title ) {
- $( this ).uniqueId();
+ if ( parent.attr( "title" ) ) {
+ parent.uniqueId();
that.parents[ this.id ] = {
element: this,
- title: this.title
+ title: parent.attr( "title" )
};
- this.title = "";
+ parent.attr( "title", "" );
}
});
}
@@ -334,7 +335,7 @@ $.widget( "ui.tooltip", {
if ( event && event.type === "mouseleave" ) {
$.each( this.parents, function( id, parent ) {
- parent.element.title = parent.title;
+ $( parent.element ).attr( "title", parent.title );
delete that.parents[ id ];
});
}