]> source.dussan.org Git - jquery-ui.git/commitdiff
Tooltip: Added comment about asny response handling
authorjzaefferer <joern.zaefferer@gmail.com>
Thu, 25 Mar 2010 19:28:34 +0000 (15:28 -0400)
committerjzaefferer <joern.zaefferer@gmail.com>
Thu, 25 Mar 2010 19:28:34 +0000 (15:28 -0400)
ui/jquery.ui.tooltip.js

index f19e75360f62d80fa630bd50905869c877eb927b..1fe4524507f0de2604646d8ebfdb5c79ba9503c1 100644 (file)
@@ -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);
                });