Skip to content

Commit 1fd3419

Browse files
committed
Tooltip: Seperate restoring title attribute from assigning current-variable, in case currentTitle is undefined.
1 parent 2c4d418 commit 1fd3419

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/jquery.ui.tooltip.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,9 @@ $.widget("ui.tooltip", {
117117
if (!this.current)
118118
return;
119119

120-
var current = this.current.attr("title", this.currentTitle);
120+
var current = this.current;
121121
this.current = null;
122+
current.attr("title", this.currentTitle);
122123

123124
if (this.options.disabled)
124125
return;

0 commit comments

Comments
 (0)