Permalink
Browse files

Tooltip: Seperate restoring title attribute from assigning current-va…

…riable, in case currentTitle is undefined.
  • Loading branch information...
1 parent 2c4d418 commit 1fd34199efa9ddc35276b415cad8e7e37a6cc856 @jzaefferer jzaefferer committed Dec 3, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 ui/jquery.ui.tooltip.js
View
@@ -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;

0 comments on commit 1fd3419

Please sign in to comment.