Skip to content

Commit 2e2787d

Browse files
fnagelscottgonzalez
authored andcommitted
Calendar: Fix hover event setting and removing
1 parent b9d8f62 commit 2e2787d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ui/calendar.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ return $.widget( "ui.calendar", {
7373
"keydown .ui-calendar-calendar": "_handleKeydown"
7474
});
7575

76-
// TODO Use hoverable (no delegation support)? convert to _on?
77-
this.element.delegate( ".ui-calendar-header button, .ui-calendar-calendar a", "mouseenter.calendar mouseleave.calendar", function() {
76+
this.element.on( "mouseenter.calendar mouseleave.calendar", ".ui-calendar-header button, .ui-calendar-calendar a", function() {
7877
$( this ).toggleClass( "ui-state-hover" );
7978
});
8079

0 commit comments

Comments
 (0)