]> source.dussan.org Git - jquery-ui.git/commitdiff
Tooltip: Store the title in ui-tooltip-title data only if the element has a title.
authorScott González <scott.gonzalez@gmail.com>
Fri, 30 Mar 2012 13:06:06 +0000 (09:06 -0400)
committerScott González <scott.gonzalez@gmail.com>
Fri, 30 Mar 2012 13:06:06 +0000 (09:06 -0400)
ui/jquery.ui.tooltip.js

index dd0a746d3e52d1bdfc6860f8d8724ae307cc9ef1..23b3a9b71a123cf2c82f2eb9c018d58597d028e1 100644 (file)
@@ -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" ) );
                }