From: jzaefferer Date: Thu, 25 Mar 2010 18:46:42 +0000 (-0400) Subject: Tooltip: Replacing mouseover/out with mouseenter/leave, dropping (for now) support... X-Git-Tag: 1.8.1~5^2~49^2~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e285e43d2bcd0c5744b0300b703641cb10b28137;p=jquery-ui.git Tooltip: Replacing mouseover/out with mouseenter/leave, dropping (for now) support for event delegation --- diff --git a/tests/visual/tooltip/tooltip.html b/tests/visual/tooltip/tooltip.html index 5b0f9059a..cac2fbbd1 100644 --- a/tests/visual/tooltip/tooltip.html +++ b/tests/visual/tooltip/tooltip.html @@ -20,10 +20,10 @@ function enable() { // default - $("#context1, form input, #childish").tooltip(); + $("#context1 a, form input, #childish").tooltip(); // custom class, replaces ui-widget-content - $("#context2").tooltip({ + $("#context2 [title]").tooltip({ tooltipClass: "ui-widget-header" }); $("#right1").tooltip({ diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js index 374139264..4d0be6458 100644 --- a/ui/jquery.ui.tooltip.js +++ b/ui/jquery.ui.tooltip.js @@ -43,10 +43,10 @@ $.widget("ui.tooltip", { .appendTo(this.tooltip); this.opacity = this.tooltip.css("opacity"); this.element - .bind("focus.tooltip mouseover.tooltip", function(event) { + .bind("focus.tooltip mouseenter.tooltip", function(event) { self.show($(event.target)); }) - .bind("blur.tooltip mouseout.tooltip", function(event) { + .bind("blur.tooltip mouseleave.tooltip", function(event) { self.close(); }); },