From a3286b12beb939d1b8f69cb20f2dd90341293e4f Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Thu, 25 Mar 2010 15:28:34 -0400 Subject: [PATCH] Tooltip: Added comment about asny response handling --- ui/jquery.ui.tooltip.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js index f19e75360..1fe452450 100644 --- a/ui/jquery.ui.tooltip.js +++ b/ui/jquery.ui.tooltip.js @@ -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); }); -- 2.39.5