var element = $( this );
if ( element.is( "[title]" ) ) {
element
- .data( "tooltip-title", element.attr( "title" ) )
+ .data( "ui-tooltip-title", element.attr( "title" ) )
.attr( "title", "" );
}
});
// restore title attributes
this.element.find( this.options.items ).andSelf().each(function() {
var element = $( this );
- if ( element.data( "tooltip-title" ) ) {
- element.attr( "title", element.data( "tooltip-title" ) );
+ if ( element.data( "ui-tooltip-title" ) ) {
+ element.attr( "title", element.data( "ui-tooltip-title" ) );
}
});
},
return;
}
- if ( !target.data( "tooltip-title" ) ) {
- target.data( "tooltip-title", target.attr( "title" ) );
+ if ( !target.data( "ui-tooltip-title" ) ) {
+ target.data( "ui-tooltip-title", target.attr( "title" ) );
}
target.data( "tooltip-open", true );
}
// only set title if we had one before (see comment in _open())
- if ( target.data( "tooltip-title" ) ) {
- target.attr( "title", target.data( "tooltip-title" ) );
+ if ( target.data( "ui-tooltip-title" ) ) {
+ target.attr( "title", target.data( "ui-tooltip-title" ) );
}
target.removeAttr( "aria-describedby" );