aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2012-03-01 13:32:47 +0100
committerJörn Zaefferer <joern.zaefferer@gmail.com>2012-03-01 13:32:47 +0100
commit59f2e88c58f0018f22b1c3be4bb5e9549a944381 (patch)
tree63818de0747d1cdb61e392e5211c09740d44325b /ui
parente93993c54fd87130061a3ae1832ccb032d20ccfb (diff)
downloadjquery-ui-59f2e88c58f0018f22b1c3be4bb5e9549a944381.tar.gz
jquery-ui-59f2e88c58f0018f22b1c3be4bb5e9549a944381.zip
Update data naming for Tooltip. Partial fix for #7810
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.tooltip.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js
index 6a41f8c4a..08ad19636 100644
--- a/ui/jquery.ui.tooltip.js
+++ b/ui/jquery.ui.tooltip.js
@@ -72,7 +72,7 @@ $.widget( "ui.tooltip", {
var element = $( this );
if ( element.is( "[title]" ) ) {
element
- .data( "tooltip-title", element.attr( "title" ) )
+ .data( "ui-tooltip-title", element.attr( "title" ) )
.attr( "title", "" );
}
});
@@ -82,8 +82,8 @@ $.widget( "ui.tooltip", {
// 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" ) );
}
});
},
@@ -99,8 +99,8 @@ $.widget( "ui.tooltip", {
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 );
@@ -180,8 +180,8 @@ $.widget( "ui.tooltip", {
}
// 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" );