aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/calendar.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/calendar.js b/ui/calendar.js
index 3b15287eb..8e228146a 100644
--- a/ui/calendar.js
+++ b/ui/calendar.js
@@ -73,8 +73,7 @@ return $.widget( "ui.calendar", {
"keydown .ui-calendar-calendar": "_handleKeydown"
});
- // TODO Use hoverable (no delegation support)? convert to _on?
- this.element.delegate( ".ui-calendar-header button, .ui-calendar-calendar a", "mouseenter.calendar mouseleave.calendar", function() {
+ this.element.on( "mouseenter.calendar mouseleave.calendar", ".ui-calendar-header button, .ui-calendar-calendar a", function() {
$( this ).toggleClass( "ui-state-hover" );
});