Skip to content

Commit

Permalink
Tooltip: Added comment about asny response handling
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer committed Mar 25, 2010
1 parent 3bd4de2 commit a3286b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/jquery.ui.tooltip.js
Expand Up @@ -81,6 +81,7 @@ $.widget("ui.tooltip", {
this.current = target;
this.currentTitle = target.attr("title");
var content = this.options.content.call(target[0], function(response) {
// ignore async responses that come in after the tooltip is already hidden
if (self.current == target)
self.open(target, response);
});
Expand Down

0 comments on commit a3286b1

Please sign in to comment.