Tooltip: Seperate restoring title attribute from assigning current-variable, in case currentTitle is undefined.

This commit is contained in:
jzaefferer 2010-12-03 18:14:20 +01:00
parent 2c4d4180c3
commit 1fd34199ef

View File

@ -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;