mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Tooltip: Replacing mouseover/out with mouseenter/leave, dropping (for now) support for event delegation
This commit is contained in:
parent
2766e1997a
commit
e285e43d2b
@ -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({
|
||||
|
4
ui/jquery.ui.tooltip.js
vendored
4
ui/jquery.ui.tooltip.js
vendored
@ -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();
|
||||
});
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user