mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Tooltip: Seperate restoring title attribute from assigning current-variable, in case currentTitle is undefined.
This commit is contained in:
parent
2c4d4180c3
commit
1fd34199ef
3
ui/jquery.ui.tooltip.js
vendored
3
ui/jquery.ui.tooltip.js
vendored
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user