diff options
author | Felix Nagel <info@felixnagel.com> | 2013-01-18 19:25:30 +0100 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2013-01-18 19:25:30 +0100 |
commit | f5e65b08194d57c5e2f2b814585298c947f0ceee (patch) | |
tree | f77630beefe256c82b5c07aeb48b55cde256ea68 /ui/jquery.ui.tooltip.js | |
parent | 4d77ca3e2113689bb4e2ce5cf9152dca7f3811d8 (diff) | |
parent | a63c0910a6ebcc45ae2c0af7a5ae0840d4eab903 (diff) | |
download | jquery-ui-f5e65b08194d57c5e2f2b814585298c947f0ceee.tar.gz jquery-ui-f5e65b08194d57c5e2f2b814585298c947f0ceee.zip |
Merge branch 'master' into selectmenu
Diffstat (limited to 'ui/jquery.ui.tooltip.js')
-rw-r--r-- | ui/jquery.ui.tooltip.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js index b911c9960..5df93a002 100644 --- a/ui/jquery.ui.tooltip.js +++ b/ui/jquery.ui.tooltip.js @@ -46,7 +46,9 @@ $.widget( "ui.tooltip", { version: "@VERSION", options: { content: function() { - var title = $( this ).attr( "title" ); + // support: IE<9, Opera in jQuery <1.7 + // .text() can't accept undefined, so coerce to a string + var title = $( this ).attr( "title" ) || ""; // Escape title, since we're going from an attribute to raw HTML return $( "<a>" ).text( title ).html(); }, |