diff options
author | jzaefferer <joern.zaefferer@gmail.com> | 2010-12-03 18:14:20 +0100 |
---|---|---|
committer | jzaefferer <joern.zaefferer@gmail.com> | 2010-12-03 18:14:20 +0100 |
commit | 1fd34199efa9ddc35276b415cad8e7e37a6cc856 (patch) | |
tree | ff847a4d6eed615e6e5273636440cc1220779495 | |
parent | 2c4d4180c34f81aaf43d683766a71d1c917158aa (diff) | |
download | jquery-ui-1fd34199efa9ddc35276b415cad8e7e37a6cc856.tar.gz jquery-ui-1fd34199efa9ddc35276b415cad8e7e37a6cc856.zip |
Tooltip: Seperate restoring title attribute from assigning current-variable, in case currentTitle is undefined.
-rw-r--r-- | ui/jquery.ui.tooltip.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js index af5bcd07b..ea3cde339 100644 --- a/ui/jquery.ui.tooltip.js +++ b/ui/jquery.ui.tooltip.js @@ -117,8 +117,9 @@ $.widget("ui.tooltip", { if (!this.current) return; - var current = this.current.attr("title", this.currentTitle); + var current = this.current; this.current = null; + current.attr("title", this.currentTitle); if (this.options.disabled) return; |