Skip to content
Permalink
Browse files

Tooltip: Replacing mouseover/out with mouseenter/leave, dropping (for…

… now) support for event delegation
  • Loading branch information
jzaefferer committed Mar 25, 2010
1 parent 2766e19 commit e285e43d2bcd0c5744b0300b703641cb10b28137
Showing with 4 additions and 4 deletions.
  1. +2 −2 tests/visual/tooltip/tooltip.html
  2. +2 −2 ui/jquery.ui.tooltip.js
@@ -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({
@@ -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();
});
},

0 comments on commit e285e43

Please sign in to comment.
You can’t perform that action at this time.