aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.tooltip.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-03-30 09:06:06 -0400
committerScott González <scott.gonzalez@gmail.com>2012-03-30 09:06:06 -0400
commit45a5a24dfe6322cfeb047a2aed566c824f401307 (patch)
treed14146d9cf71eba0346de3b6a279a4a5f105146f /ui/jquery.ui.tooltip.js
parent56de22eeadb5882ad1d78a207b9fb69247e233ee (diff)
downloadjquery-ui-45a5a24dfe6322cfeb047a2aed566c824f401307.tar.gz
jquery-ui-45a5a24dfe6322cfeb047a2aed566c824f401307.zip
Tooltip: Store the title in ui-tooltip-title data only if the element has a title.
Diffstat (limited to 'ui/jquery.ui.tooltip.js')
-rw-r--r--ui/jquery.ui.tooltip.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js
index dd0a746d3..23b3a9b71 100644
--- a/ui/jquery.ui.tooltip.js
+++ b/ui/jquery.ui.tooltip.js
@@ -99,7 +99,7 @@ $.widget( "ui.tooltip", {
return;
}
- if ( !target.data( "ui-tooltip-title" ) ) {
+ if ( target.attr( "title" ) ) {
target.data( "ui-tooltip-title", target.attr( "title" ) );
}