diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-03-01 15:19:57 +0100 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-03-01 15:19:57 +0100 |
commit | f65d6b92cc14ee3e829d6e941fcd07a5fb37b278 (patch) | |
tree | 1947006f1b9dbe073daabcfb732b09c52dd0c778 /ui/jquery.ui.tooltip.js | |
parent | 63215a68757c4fa78079a48488d9a91f0ec8cf50 (diff) | |
parent | 2321ae06cbe44b86d14c82ebd452d06e3922dca9 (diff) | |
download | jquery-ui-f65d6b92cc14ee3e829d6e941fcd07a5fb37b278.tar.gz jquery-ui-f65d6b92cc14ee3e829d6e941fcd07a5fb37b278.zip |
Merge branch 'data-naming'
Diffstat (limited to 'ui/jquery.ui.tooltip.js')
-rw-r--r-- | ui/jquery.ui.tooltip.js | 14 |
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" ); |